diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-11-09 11:10:47 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-11-09 11:11:36 +0100 |
commit | 140d905b256165ae22c12837c046665a8d0aa599 (patch) | |
tree | 1c0693927cd1f149ed7d0149c88e412417a79199 | |
parent | cfg80211: tracing: avoid 'idx' variable (diff) | |
download | linux-140d905b256165ae22c12837c046665a8d0aa599.tar.xz linux-140d905b256165ae22c12837c046665a8d0aa599.zip |
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.h | 6 |
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, ); TRACE_EVENT(drv_get_survey, - TP_PROTO(struct ieee80211_local *local, int idx, + TP_PROTO(struct ieee80211_local *local, int _idx, struct survey_info *survey), - TP_ARGS(local, idx, survey), + TP_ARGS(local, _idx, survey), TP_STRUCT__entry( LOCAL_ENTRY @@ -1064,7 +1064,7 @@ TRACE_EVENT(drv_get_survey, TP_fast_assign( LOCAL_ASSIGN; - __entry->idx = idx; + __entry->idx = _idx; ), TP_printk( |