From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751711AbdFEJOW (ORCPT ); Mon, 5 Jun 2017 05:14:22 -0400 Received: from terminus.zytor.com ([65.50.211.136]:39113 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbdFEJOU (ORCPT ); Mon, 5 Jun 2017 05:14:20 -0400 Date: Mon, 5 Jun 2017 02:10:48 -0700 From: "tip-bot for Levin, Alexander (Sasha Levin)" Message-ID: Cc: hpa@zytor.com, linux-kernel@vger.kernel.org, alexander.levin@verizon.com, mingo@kernel.org, torvalds@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org Reply-To: tglx@linutronix.de, torvalds@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, alexander.levin@verizon.com, mingo@kernel.org, hpa@zytor.com In-Reply-To: <20170525130005.5947-19-alexander.levin@verizon.com> References: <20170525130005.5947-19-alexander.levin@verizon.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] tools/lib/lockdep: Add empty __is_[module,kernel]_percpu_address Git-Commit-ID: 3156cbaeda991f6b330dd8260d863bfad71b358e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3156cbaeda991f6b330dd8260d863bfad71b358e Gitweb: http://git.kernel.org/tip/3156cbaeda991f6b330dd8260d863bfad71b358e Author: Levin, Alexander (Sasha Levin) AuthorDate: Thu, 25 May 2017 12:58:55 +0000 Committer: Ingo Molnar CommitDate: Mon, 5 Jun 2017 09:28:12 +0200 tools/lib/lockdep: Add empty __is_[module,kernel]_percpu_address This would fix the build error caused by: 383776fa7 ("locking/lockdep: Handle statically initialized PER_CPU locks properly") Signed-off-by: Sasha Levin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: a.p.zijlstra@chello.nl Cc: ben@decadent.org.uk Link: http://lkml.kernel.org/r/20170525130005.5947-19-alexander.levin@verizon.com Signed-off-by: Ingo Molnar --- tools/lib/lockdep/uinclude/linux/lockdep.h | 5 +++++ tools/lib/lockdep/uinclude/linux/module.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tools/lib/lockdep/uinclude/linux/lockdep.h b/tools/lib/lockdep/uinclude/linux/lockdep.h index d988fba..f026d45 100644 --- a/tools/lib/lockdep/uinclude/linux/lockdep.h +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h @@ -51,4 +51,9 @@ static inline int debug_locks_off(void) #define debug_show_all_locks() extern void debug_check_no_locks_held(void); +static __used bool __is_kernel_percpu_address(unsigned long addr, void *can_addr) +{ + return false; +} + #endif diff --git a/tools/lib/lockdep/uinclude/linux/module.h b/tools/lib/lockdep/uinclude/linux/module.h index 09c7a7b..07055db 100644 --- a/tools/lib/lockdep/uinclude/linux/module.h +++ b/tools/lib/lockdep/uinclude/linux/module.h @@ -3,4 +3,9 @@ #define module_param(name, type, perm) +static inline bool __is_module_percpu_address(unsigned long addr, unsigned long *can_addr) +{ + return false; +} + #endif