Hide drv_get_stats tracepoint definition with CONFIG_MAC80211_DEBUGFS which is the same config that enables net/mac80211/debugfs.c, where the tracepoint is used in order to remove unused tracepoint warning from UT=1. Signed-off-by: Omer El Idrissi --- net/mac80211/trace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index 562a4964afa3..6d80d23b7c4b 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h @@ -756,6 +756,8 @@ DEFINE_EVENT(local_sdata_evt, drv_sw_scan_complete, TP_ARGS(local, sdata) ); +#ifdef CONFIG_MAC80211_DEBUGFS + TRACE_EVENT(drv_get_stats, TP_PROTO(struct ieee80211_local *local, struct ieee80211_low_level_stats *stats, @@ -787,6 +789,8 @@ TRACE_EVENT(drv_get_stats, ) ); +#endif /* CONFIG_MAC80211_DEBUGFS */ + TRACE_EVENT(drv_get_key_seq, TP_PROTO(struct ieee80211_local *local, struct ieee80211_key_conf *key), -- 2.53.0