[PATCH 3/4] lockdep: use new arch_is_kernel_data()

From: Mike Frysinger
Date: Wed Jun 17 2009 - 12:23:20 EST


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@xxxxxxxxxx>
---
kernel/lockdep.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 8bbeef9..8dc9b6a 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -636,6 +636,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?
--
1.6.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/