tools/lib/lockdep: Add empty __is_[module,kernel]_percpu_address
authorLevin, Alexander (Sasha Levin) <alexander.levin@verizon.com>
Thu, 25 May 2017 12:58:55 +0000 (12:58 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Jun 2017 07:28:12 +0000 (09:28 +0200)
This would fix the build error caused by:

383776fa7 ("locking/lockdep: Handle statically initialized
PER_CPU locks properly")

Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
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 <mingo@kernel.org>
tools/lib/lockdep/uinclude/linux/lockdep.h
tools/lib/lockdep/uinclude/linux/module.h

index d988fba9945426f31569c316077d87437e276099..f026d4545e97c49e7d071a06a3fb69cc49de3088 100644 (file)
@@ -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
index 09c7a7be8ccc6cf5365dfb59a715822abd96ea3f..07055db296f30a107b9ffd3acd5846a5afd0693d 100644 (file)
@@ -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