workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] codingstyle: avoid unused parameters for a function-like macro
@ 2024-03-22  8:49 Barry Song
  2024-03-22  8:49 ` [PATCH v3 1/2] Documentation: coding-style: ask function-like macros to evaluate parameters Barry Song
  2024-03-22  8:49 ` [PATCH v3 2/2] scripts: checkpatch: Check unused parameters for function-like macro Barry Song
  0 siblings, 2 replies; 4+ messages in thread
From: Barry Song @ 2024-03-22  8:49 UTC (permalink / raw)
  To: corbet, workflows, linux-doc, apw, joe, dwaipayanray1, lukas.bulwahn
  Cc: linux-kernel, Barry Song

From: Barry Song <v-songbaohua@oppo.com>


A function-like macro could result in build warnings such as
"unused variable." This patchset updates the guidance to
recommend always using a static inline function instead
and also provides checkpatch support for this new rule.

Barry Song (1):
  Documentation: coding-style: ask function-like macros to evaluate
    parameters

Xining Xu (1):
  scripts: checkpatch: Check unused parameters for function-like macro

 Documentation/process/coding-style.rst | 16 ++++++++++++++++
 scripts/checkpatch.pl                  | 24 ++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2024-03-22 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22  8:49 [PATCH v3 0/2] codingstyle: avoid unused parameters for a function-like macro Barry Song
2024-03-22  8:49 ` [PATCH v3 1/2] Documentation: coding-style: ask function-like macros to evaluate parameters Barry Song
2024-03-22 14:33   ` Mark Brown
2024-03-22  8:49 ` [PATCH v3 2/2] scripts: checkpatch: Check unused parameters for function-like macro Barry Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox