Subject: [PATCH -next] module.h: add stub for is_module_percpu_address

From: Randy Dunlap <[email-masked]>
Date: Tue, 30 Mar 2010 10:31:55 -0700

From: Randy Dunlap <[email-masked]>

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 <[email-masked]>
---
 include/linux/module.h |    5 +++++
 1 file changed, 5 insertions(+)

--- linux-next-20100330.orig/include/linux/module.h
+++ linux-next-20100330/include/linux/module.h
@@ -567,6 +567,11 @@ static inline bool is_module_address(uns
 	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;