diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-29 15:46:21 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:43:25 -0400 |
commit | 57c9fff3d0c5d77bc7910717faeca4e8a018b1ee (patch) | |
tree | ce285fab9cb8faeab42b765e8a913fa790c3f46c /net/mac80211/driver-trace.c | |
parent | 0b3acfa71a50a1fa1fcee528aa15404ea4ea0877 (diff) | |
download | kernel_samsung_espresso10-57c9fff3d0c5d77bc7910717faeca4e8a018b1ee.tar.gz kernel_samsung_espresso10-57c9fff3d0c5d77bc7910717faeca4e8a018b1ee.tar.bz2 kernel_samsung_espresso10-57c9fff3d0c5d77bc7910717faeca4e8a018b1ee.zip |
mac80211: fix sparse warnings/errors
sparse complains about a shadowed variable, which
we can just rename, and lots of stuff if the API
tracer is enabled, so kick out the tracer code in
a sparse run -- the macros just confuse it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-trace.c')
-rw-r--r-- | net/mac80211/driver-trace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.c b/net/mac80211/driver-trace.c index 6da6f79932f..8ed8711b1a6 100644 --- a/net/mac80211/driver-trace.c +++ b/net/mac80211/driver-trace.c @@ -1,6 +1,9 @@ /* bug in tracepoint.h, it should include this */ #include <linux/module.h> +/* sparse isn't too happy with all macros... */ +#ifndef __CHECKER__ #include "driver-ops.h" #define CREATE_TRACE_POINTS #include "driver-trace.h" +#endif |