mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Omer El Idrissi <omer.e.idrissi@gmail.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	Omer El Idrissi <omer.e.idrissi@gmail.com>
Subject: [PATCH 2/2] mac80211: hide drv_get_stats tracepoint with ifdef guard
Date: Sat, 17 Oct 2026 17:55:09 +0200	[thread overview]
Message-ID: <20261017155509.128114-3-omer.e.idrissi@gmail.com> (raw)
In-Reply-To: <20261017155509.128114-1-omer.e.idrissi@gmail.com>

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 <omer.e.idrissi@gmail.com>
---
 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


  parent reply	other threads:[~2026-10-17 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-17 15:55 [PATCH 0/2] mac80211: hide tracepoint definition Omer El Idrissi
2026-10-17 15:55 ` [PATCH 1/2] mac80211: move static function from header to referenced file Omer El Idrissi
2026-10-17 15:55 ` Omer El Idrissi [this message]
2026-10-24 14:31 ` [PATCH 0/2] mac80211: hide tracepoint definition Omer El Idrissi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261017155509.128114-3-omer.e.idrissi@gmail.com \
    --to=omer.e.idrissi@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®