summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-09-23 01:44:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 16:39:30 +0200
commit2a9ad18deb2870a9968f50351a0d4b8cc2a04099 (patch)
treee56747b3dc8dd825515d61524c91129f92aed134 /kernel
parentkallsyms: use new arch_is_kernel_text() (diff)
downloadlinux-2a9ad18deb2870a9968f50351a0d4b8cc2a04099.tar.xz
linux-2a9ad18deb2870a9968f50351a0d4b8cc2a04099.zip
lockdep: use new arch_is_kernel_data()
This allows lockdep to locate symbols that are in arch-specific data sections (such as data in Blackfin on-chip SRAM regions). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Robin Getz <rgetz@blackfin.uclinux.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/lockdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index f74d2d7aa605..3815ac1d58b2 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -578,6 +578,9 @@ static int static_obj(void *obj)
if ((addr >= start) && (addr < end))
return 1;
+ if (arch_is_kernel_data(addr))
+ return 1;
+
#ifdef CONFIG_SMP
/*
* percpu var?