Messages in this thread | | | Subject | Re: 2.6.39-rc6-mmotm0506 and -next - __kfree_rcu breaks third-party kernel code | From | Valdis.Kletnieks@vt ... | Date | Mon, 09 May 2011 13:02:16 -0400 |
| |
On Mon, 09 May 2011 12:56:32 EDT, Valdis.Kletnieks@vt.edu said:
> OK, *now* I'm confused. The magic sauce appears to be "-Os". Adding that makes > the compile work. And for no obvious reason - there's something in there that > causes indigestion, but only if the optimizer isn't invoked.
/lib/modules/2.6.39-rc6-mmotm0506//build/include/linux/rcupdate.h: In function '__kfree_rcu': /lib/modules/2.6.39-rc6-mmotm0506//build/include/linux/rcupdate.h:822:2: error: size of unnamed array is negative
Apparently, it's in fact bad code - but the entire __kfree_rcu() function is being reaped by the optimizer as dead code before the code generator sees the size issue with the array. Without optimization, the code hangs around long enough for the problem to crop up.
[unhandled content-type:application/pgp-signature] | |