Skip to contentSkip to conversation

pci/controller/pcie-apple: remove the indentation beside arguments of DECLARE_BITMAP

PATCH In review Zhaoyu Liu 2 participants 2 messages Oct 31, 2021 – Nov 1, 2021

Subsystems (3)
lore
Share & tools
lore

Zhaoyu Liu

author
#0 lore raw

PATCH 1/1 pci/controller/pcie-apple: remove the indentation beside arguments of DECLARE_BITMAP

When "make tags", it prompts a warning:

ctags: Warning: drivers/pci/controller/pcie-apple.c:150:
null expansion of name pattern "\1"

Ctags regular can not be matched due to indentation, so remove it. Same fix as in commit 5fdf876d30ce ("KVM: arm: Do not indent the arguments of DECLARE_BITMAP")

---
 drivers/pci/controller/pcie-apple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-apple.c +1 -1
index b665d29af77a..955134464d84 100644
@@ -147,7 +147,7 @@ struct apple_pcie_port {
 	void __iomem		*base;
 	struct irq_domain	*domain;
 	struct list_head	entry;
-	DECLARE_BITMAP(		sid_map, MAX_RID2SID);
+	DECLARE_BITMAP(sid_map, MAX_RID2SID);
 	int			sid_map_sz;
 	int			idx;
 };
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 20 lines · Zhaoyu Liu

When "make tags", it prompts a warning:

ctags: Warning: drivers/pci/controller/pcie-apple.c:150:
null expansion of name pattern "\1"

Ctags regular can not be matched due to indentation, so remove it. Same fix as in commit 5fdf876d30ce ("KVM: arm: Do not indent the arguments of DECLARE_BITMAP")

---
 drivers/pci/controller/pcie-apple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-apple.c +0 -0
index b665d29af77a..955134464d84 100644

drivers/pci/controller/pcie-apple.c struct apple_pcie_port { · line 153

Quoted 8 lines
drivers/pci/controller/pcie-apple.c +1 -1
@@ -147,7 +147,7 @@ struct apple_pcie_port {
 	void __iomem		*base;
 	struct irq_domain	*domain;
 	struct list_head	entry;
-	DECLARE_BITMAP(		sid_map, MAX_RID2SID);
+	DECLARE_BITMAP(sid_map, MAX_RID2SID);
 	int			sid_map_sz;
 	int			idx;
 };

This really feels like we're papering over a tooling bug. Other tagging systems do not seem to suffer from this (I use gtags myself).

It is easily fixed with the following patch, at least with my setup. Can you please give it a go?

Thanks,

	M.
scripts/tags.sh +1 -1
index b24bfaec6290..7e5f19391f20 100755
@@ -186,7 +186,7 @@ regex_c=(
 	'/\<DEFINE_\(RT_MUTEX\|MUTEX\|SEMAPHORE\|SPINLOCK\)(\([[:alnum:]_]*\)/\2/v/'
 	'/\<DEFINE_\(RAW_SPINLOCK\|RWLOCK\|SEQLOCK\)(\([[:alnum:]_]*\)/\2/v/'
 	'/\<DECLARE_\(RWSEM\|COMPLETION\)(\([[:alnum:]_]\+\)/\2/v/'
-	'/\<DECLARE_BITMAP(\([[:alnum:]_]*\)/\1/v/'
+	'/\<DECLARE_BITMAP([[:space:]]*\([[:alnum:]_]*\)/\1/v/'
 	'/\(^\|\s\)\(\|L\|H\)LIST_HEAD(\([[:alnum:]_]*\)/\3/v/'
 	'/\(^\|\s\)RADIX_TREE(\([[:alnum:]_]*\)/\2/v/'
 	'/\<DEFINE_PER_CPU([^,]*, *\([[:alnum:]_]*\)/\1/v/'
Signature · 1 line
Without deviation from the norm, progress is not possible.