aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-11-09 05:10:47 -0500
committerJohannes Berg <johannes.berg@intel.com>2018-11-09 05:11:36 -0500
commit140d905b256165ae22c12837c046665a8d0aa599 (patch)
tree1c0693927cd1f149ed7d0149c88e412417a79199
parentaaaa10e01d30e7d4cd3ddc0ff4cb82ed73632d9b (diff)
mac80211: tracing: avoid 'idx' variable
This variable shadows something that gets generated inside the tracing macros, which causes sparse to warn. Avoid it so sparse output is more readable, even if it doesn't seem to cause any trouble. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/trace.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h
index 588c51a67c89..a152263478dc 100644
--- a/net/mac80211/trace.h
+++ b/net/mac80211/trace.h
@@ -1052,10 +1052,10 @@ TRACE_EVENT(drv_ampdu_action,
1052); 1052);
1053 1053
1054TRACE_EVENT(drv_get_survey, 1054TRACE_EVENT(drv_get_survey,
1055 TP_PROTO(struct ieee80211_local *local, int idx, 1055 TP_PROTO(struct ieee80211_local *local, int _idx,
1056 struct survey_info *survey), 1056 struct survey_info *survey),
1057 1057
1058 TP_ARGS(local, idx, survey), 1058 TP_ARGS(local, _idx, survey),
1059 1059
1060 TP_STRUCT__entry( 1060 TP_STRUCT__entry(
1061 LOCAL_ENTRY 1061 LOCAL_ENTRY
@@ -1064,7 +1064,7 @@ TRACE_EVENT(drv_get_survey,
1064 1064
1065 TP_fast_assign( 1065 TP_fast_assign(
1066 LOCAL_ASSIGN; 1066 LOCAL_ASSIGN;
1067 __entry->idx = idx; 1067 __entry->idx = _idx;
1068 ), 1068 ),
1069 1069
1070 TP_printk( 1070 TP_printk(