module: add stub for is_module_percpu_address
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 31 Mar 2010 02:33:42 +0000 (11:33 +0900)
committerTejun Heo <tj@kernel.org>
Wed, 31 Mar 2010 02:33:42 +0000 (11:33 +0900)
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>
include/linux/module.h

index f0e2659f4e3ec7224b672540cda24a7cdca3303d..8bd399a00343ab42eee6557dae15e1ad92a5f82e 100644 (file)
@@ -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;