Skip to content

checkpatch: userspace improvements

Petr Vorel lkml 4 versions – Applied

Status from this message: [merged mm-nonmm-stable] checkpatch-skip-kernel-specific-checks-for-userspace.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyApplied 4/4
  2. v55 patches 4 repliesSuperseded
  3. v43 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v33 patches3 repliesSuperseded

Changes in v6 from the cover letter

- 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().

Patches in v6 All 4 applied

#Subject and filesSizeRepliesApplied
1/4checkpatch: Add more userspace directories to is_userspace()scripts/checkpatch.pl+3 -10 repliesApplied
2/4checkpatch: Ignore <inttypes.h> format macros for userspace toolsscripts/checkpatch.pl+2 -00 repliesApplied
3/4checkpatch: Add --userspace to force userspace rulesscripts/checkpatch.pl+6 -00 repliesApplied
4/4checkpatch: Skip kernel specific checks for userspacescripts/checkpatch.pl+7 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/4] checkpatch: userspace improvements

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/[email protected]/

Link to v4:
https://lore.kernel.org/lkml/[email protected]/

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(-)
Signature · 1 line
2.55.0