mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/4] checkpatch: userspace improvements
@ 2026-09-04 11:02 Petr Vorel
  2026-09-04 11:02 ` [PATCH v6 1/4] checkpatch: Add more userspace directories to is_userspace() Petr Vorel
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Petr Vorel @ 2026-09-04 11:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: Petr Vorel, Andrew Morton, Andy Whitcroft, Joe Perches,
	Dwaipayan Ray, Lukas Bulwahn, Cryolitia PukNgae

Few improvements for user space code + --userspace option for projects
which vendored checkpatch.pl.

There could be probably more checks which are kernel space only.

v6:
- Remove 4th commit "checkpatch: Factor out the check for UAPI files"
  which added is_uapi(), which was wrong. I overlook that regex on BIT()
  macro is different from the others, matching only ^include/uapi/.
- Fix 5th commit which wrongly called is_uapi() instead of
  is_userspace().

Link to v5:
https://lore.kernel.org/lkml/20260901105642.851234-1-pvorel@suse.cz/

Link to v4:
https://lore.kernel.org/lkml/20260810164552.1049483-1-pvorel@suse.cz/


Petr Vorel (4):
  checkpatch: Add more userspace directories to is_userspace()
  checkpatch: Ignore <inttypes.h> format macros for userspace tools
  checkpatch: Add --userspace to force userspace rules
  checkpatch: Skip kernel specific checks for userspace

 scripts/checkpatch.pl | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-06  1:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 11:02 [PATCH v6 0/4] checkpatch: userspace improvements Petr Vorel
2026-09-04 11:02 ` [PATCH v6 1/4] checkpatch: Add more userspace directories to is_userspace() Petr Vorel
2026-09-04 11:02 ` [PATCH v6 2/4] checkpatch: Ignore <inttypes.h> format macros for userspace tools Petr Vorel
2026-09-04 11:02 ` [PATCH v6 3/4] checkpatch: Add --userspace to force userspace rules Petr Vorel
2026-09-04 11:02 ` [PATCH v6 4/4] checkpatch: Skip kernel specific checks for userspace Petr Vorel
2026-09-06  1:22 ` [PATCH v6 0/4] checkpatch: userspace improvements Andrew Morton

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®