From: John Stultz Date: Tue, 4 Jan 2011 02:59:43 +0000 (-0800) Subject: timers: Add rb_init_node() to allow for stack allocated rb nodes X-Git-Tag: v3.0-rc1~400^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d19cf37952a7e1e38b2bf87a00f0e857e63180;p=pandora-kernel.git timers: Add rb_init_node() to allow for stack allocated rb nodes In cases where a timerqueue_node or some structure that utilizes a timerqueue_node is allocated on the stack, gcc would give warnings caused by the timerqueue_init()'s calling RB_CLEAR_NODE, which self-references the nodes uninitialized data. The solution is to create an rb_init_node() function that zeros the rb_node structure out and then calls RB_CLEAR_NODE(), and then call the new init function from timerqueue_init(). CC: Thomas Gleixner Acked-by: Arnd Bergmann Signed-off-by: John Stultz --- Reading git-diff-tree failed