[PATCH v5 0/5] checkpatch: userspace improvements

From: Petr Vorel

Date: Tue Sep 01 2026 - 07:00:32 EST


Changes v4->v5 (all by sashiko):
* Explicitly match the directory separator in new entries for
is_userspace()
* Allow --no-userspace to override setup in the config (using undef
instead of 0, separate checks in is_userspace())
* 2 new commits:
- checkpatch: Factor out the check for UAPI files
- checkpatch: Skip kernel specific checks for userspace

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

Petr Vorel (5):
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: Factor out the check for UAPI files
checkpatch: Skip kernel specific checks for userspace

scripts/checkpatch.pl | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)

--
2.55.0