mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] scripts/tags.sh: Don't tag usages of DECLARE_BITMAP
@ 2025-01-13  8:55 Costa Shulyupin
  0 siblings, 0 replies; only message in thread
From: Costa Shulyupin @ 2025-01-13  8:55 UTC (permalink / raw)
  To: Costa Shulyupin, Greg Kroah-Hartman, Peter Zijlstra,
	Steven Rostedt, linux-kernel

For all bitmap declarations like
  DECLARE_BITMAP(x, y);
ctags generates multiple DECLARE_BITMAP tags for each usage
because it doesn't expand the DECLARE_BITMAP macro.

Configure ctags to skip generating tags for DECLARE_BITMAP in such cases.

The #define DECLARE_BITMAP itself and declared bitmaps are
tagged correctly.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
---
 scripts/tags.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index 736609a4a469d..45eaf35f5bff8 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -268,6 +268,7 @@ exuberant()
 	# identifiers to ignore by ctags
 	local ign=(
 		ACPI_EXPORT_SYMBOL
+		DECLARE_BITMAP
 		DEFINE_{TRACE,MUTEX,TIMER}
 		EXPORT_SYMBOL EXPORT_SYMBOL_GPL
 		EXPORT_TRACEPOINT_SYMBOL EXPORT_TRACEPOINT_SYMBOL_GPL
-- 
2.47.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-13  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-13  8:55 [PATCH v1] scripts/tags.sh: Don't tag usages of DECLARE_BITMAP Costa Shulyupin

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®