Skip to contentSkip to conversation

Fix check-kerneldoc for out of tree builds

PATCH In review Nicholas Piggin 2 participants 2 messages May 3, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix check-kerneldoc for out of tree builds

Search the source path rather than cwd.

---
I leave ctags and cscope targets not working, since I don't use those tools and so don't have a test at hand. Being dev tools maybe(?) they would only get used in the source directory anyway, whereas check targets are useful for CI, etc.

It should be trivial to fix them up if we want though.

Thanks,
Nick
---

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index b0f7ad08b..5b7998b79 100644
@@ -150,4 +150,4 @@ tags:
 	ctags -R
 
 check-kerneldoc:
-	find . -name '*.[ch]' -exec scripts/kernel-doc -none {} +
+	find $(SRCDIR) -name '*.[ch]' -exec scripts/kernel-doc -none {} +
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Nicholas Piggin

Search the source path rather than cwd.

---
I leave ctags and cscope targets not working, since I don't use those tools and so don't have a test at hand. Being dev tools maybe(?) they would only get used in the source directory anyway, whereas check targets are useful for CI, etc.

It should be trivial to fix them up if we want though.

Thanks,
Nick
---

  Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +0 -0
index b0f7ad08b..5b7998b79 100644

Makefile tags: · line 153

Quoted 5 lines
Makefile +1 -1
@@ -150,4 +150,4 @@ tags:
  	ctags -R
 
  check-kerneldoc:
-	find . -name '*.[ch]' -exec scripts/kernel-doc -none {} +
+	find $(SRCDIR) -name '*.[ch]' -exec scripts/kernel-doc -none {} +