Commit 6edb2a8
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>1 parent 978da30 commit 6edb2a8
1 file changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3875 | 3875 | | |
3876 | 3876 | | |
3877 | 3877 | | |
| 3878 | + | |
3878 | 3879 | | |
3879 | 3880 | | |
3880 | | - | |
3881 | | - | |
3882 | 3881 | | |
3883 | 3882 | | |
3884 | 3883 | | |
3885 | 3884 | | |
| 3885 | + | |
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
| |||
3921 | 3921 | | |
3922 | 3922 | | |
3923 | 3923 | | |
3924 | | - | |
3925 | | - | |
3926 | | - | |
| 3924 | + | |
| 3925 | + | |
3927 | 3926 | | |
3928 | 3927 | | |
3929 | 3928 | | |
| |||
3941 | 3940 | | |
3942 | 3941 | | |
3943 | 3942 | | |
3944 | | - | |
3945 | | - | |
| 3943 | + | |
| 3944 | + | |
3946 | 3945 | | |
3947 | | - | |
| 3946 | + | |
3948 | 3947 | | |
3949 | 3948 | | |
3950 | 3949 | | |
| |||
3959 | 3958 | | |
3960 | 3959 | | |
3961 | 3960 | | |
3962 | | - | |
3963 | | - | |
3964 | | - | |
3965 | | - | |
3966 | | - | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
3967 | 3965 | | |
3968 | 3966 | | |
3969 | 3967 | | |
| |||
0 commit comments