]> git.baikalelectronics.ru Git - kernel.git/commit
Blackfin: kgdb_test: rework code to avoid -O0 usage
authorSonic Zhang <sonic.zhang@analog.com>
Fri, 12 Aug 2011 09:57:57 +0000 (17:57 +0800)
committerMike Frysinger <vapier@gentoo.org>
Tue, 25 Oct 2011 23:51:38 +0000 (19:51 -0400)
commit2312c15e4bdc1a065bd0aacd21db9ddf23e937c4
tree26a4bba9c894674f9ff8ebdb8a5037bedcb35953
parentc296ddbc4e747287ed25cc5777f7006d8f5f6029
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>
arch/blackfin/kernel/Makefile
arch/blackfin/kernel/kgdb_test.c