summaryrefslogtreecommitdiff
path: root/arch/blackfin/kernel/kgdb_test.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2011-08-12 13:57:57 +0400
committerMike Frysinger <vapier@gentoo.org>2011-10-26 03:51:38 +0400
commita9930fd234b64ac0fcdb3e6a626d9ba44fc250fb (patch)
tree26a4bba9c894674f9ff8ebdb8a5037bedcb35953 /arch/blackfin/kernel/kgdb_test.c
parentc91e09b6838f514a9a162a715a75241214258270 (diff)
downloadlinux-a9930fd234b64ac0fcdb3e6a626d9ba44fc250fb.tar.xz
Blackfin: kgdb_test: rework code to avoid -O0 usage
__kfree_rcu() in rcupdate.h bugs when parameter offset is not a constant at compile time. Since we build the kgdb_test module with -O0 and it includes this header file, we hit the bug. So drop the -O0 and mark the one func we need for the test as noinline (so we can set a breakpoint on it and have it be hit). Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel/kgdb_test.c')
-rw-r--r--arch/blackfin/kernel/kgdb_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/kgdb_test.c b/arch/blackfin/kernel/kgdb_test.c
index 2a6e9dbb62a5..4a7dcfea98af 100644
--- a/arch/blackfin/kernel/kgdb_test.c
+++ b/arch/blackfin/kernel/kgdb_test.c
@@ -50,8 +50,7 @@ void kgdb_l2_test(void)
#endif
-
-int kgdb_test(char *name, int len, int count, int z)
+noinline int kgdb_test(char *name, int len, int count, int z)
{
pr_alert("kgdb name(%d): %s, %d, %d\n", len, name, count, z);
count = z;