diff options
author | John Stultz <[email protected]> | 2011-01-03 18:59:43 -0800 |
---|---|---|
committer | John Stultz <[email protected]> | 2011-04-26 14:01:42 -0700 |
commit | 88d19cf37952a7e1e38b2bf87a00f0e857e63180 (patch) | |
tree | fdd409b1588005bb71b3cd0bf5fbe55a3dd68643 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 304529b1b6f8612ccbb4582e997051b48b94f4a4 (diff) |
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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions