]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scripts/tags.sh: Don't tag usages of DECLARE_BITMAP
authorCosta Shulyupin <costa.shul@redhat.com>
Mon, 13 Jan 2025 08:55:47 +0000 (10:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jan 2025 13:03:10 +0000 (14:03 +0100)
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>
Link: https://lore.kernel.org/r/20250113085554.649141-1-costa.shul@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/tags.sh

index 7102f14fc775de300752ff45e7aeb4ecc4968f2b..dba0bb0213eb2c25a0aa64409bd780c39308d84a 100755 (executable)
@@ -261,6 +261,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