Skip to content

Commit 3156cba

Browse files
Levin, Alexander (Sasha Levin)ingomolnar
authored andcommitted
tools/lib/lockdep: Add empty __is_[module,kernel]_percpu_address
This would fix the build error caused by: 383776f ("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>
1 parent f9155dd commit 3156cba

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎tools/lib/lockdep/uinclude/linux/lockdep.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,9 @@ static inline int debug_locks_off(void)
5151
#define debug_show_all_locks()
5252
extern void debug_check_no_locks_held(void);
5353

54+
static __used bool __is_kernel_percpu_address(unsigned long addr, void *can_addr)
55+
{
56+
return false;
57+
}
58+
5459
#endif

‎tools/lib/lockdep/uinclude/linux/module.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33

44
#define module_param(name, type, perm)
55

6+
static inline bool __is_module_percpu_address(unsigned long addr, unsigned long *can_addr)
7+
{
8+
return false;
9+
}
10+
611
#endif

0 commit comments

Comments
 (0)