Skip to content

Commit

Permalink
module: add stub for is_module_percpu_address
Browse files Browse the repository at this point in the history
Fix build for CONFIG_MODULES not enabled by providing a stub
for is_module_percpu_address().

kernel/lockdep.c:605: error: implicit declaration of function 'is_module_percpu_address'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Randy Dunlap authored and Tejun Heo committed Mar 31, 2010
1 parent 10fad5e commit d5e50da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,11 @@ static inline bool is_module_address(unsigned long addr)
return false;
}

static inline bool is_module_percpu_address(unsigned long addr)
{
return false;
}

static inline bool is_module_text_address(unsigned long addr)
{
return false;
Expand Down

0 comments on commit d5e50da

Please sign in to comment.