Skip to content

RFC practical auto-QA de-noiser or -E_TOO_UGLY ?

Jim Cromie lkml 1 version NAK

Status from this message: nack.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/2checkpatch: add __no_side_effects() hint/assertion macroinclude/linux/compiler.h scripts/checkpatch.pl+54 -40 replies
2/2checkpatch: cosmetic-style tweakscripts/checkpatch.pl+5 -31 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] practical auto-QA de-noiser or -E_TOO_UGLY ?

Can I haz (in compiler.h)

  #define __no_side_effects(...)    /* checkpatch hint only */

module_param_named() if submitted now, would draw several warnings from checkpatch --strict, on name, value (but not type).

CHECK: Macro argument reuse '_var' - possible side-effects?

This macro allows an author to suppress that complaint, clearly and declaratively, and strongly suggests that they used --strict, saw the complaint, and silenced it. So they know not to pass i++.

Do the possible QA/CI benefits suffice for the mild "hackish" flavor ?

Jim Cromie (2):
checkpatch: add __no_side_effects() hint/assertion macro
checkpatch: cosmetic-style tweak

 include/linux/compiler.h | 12 +++++++++
 scripts/checkpatch.pl    | 54 ++++++++++++++++++++++++++++++++++------
 2 files changed, 59 insertions(+), 7 deletions(-)
Signature · 1 line
2.51.0