summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_nop.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-05-11 23:28:49 -0400
committerSteven Rostedt <rostedt@goodmis.org>2012-05-16 16:18:57 -0400
commit6edb2a8a385f0cdef51dae37ff23e74d76d8a6ce (patch)
tree80a8bf8b301984907bd8773ca31748e82e136638 /kernel/trace/trace_nop.c
parent978da300c7a65494692b329a6a4cbf364afc37c5 (diff)
tracing: Clean up tracing_mark_write()
On gcc 4.5 the function tracing_mark_write() would give a warning of page2 being uninitialized. This is due to a bug in gcc because the logic prevents page2 from being used uninitialized, and gcc 4.6+ does not complain (correctly). Instead of adding a "unitialized" around page2, which could show a bug later on, I combined page1 and page2 into an array map_pages[]. This binds the two and the two are modified according to nr_pages (what gcc 4.5 seems to ignore). This no longer gives a warning with gcc 4.5 nor with gcc 4.6. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_nop.c')
0 files changed, 0 insertions, 0 deletions