Re: [PATCH v6 2/2] scripts: checkpatch: check unused parameters for function-like macro

2024-04-26 Thread Barry Song
Hi Joe, any further comment for this ? May this patch get your reviewed / acked? On Thu, Apr 4, 2024 at 6:43 AM Barry Song <21cn...@gmail.com> wrote: > > From: Xining Xu > > If function-like macros do not utilize a parameter, it might result in a > build warning. In our coding style guidelines,

[PATCH v6 2/2] scripts: checkpatch: check unused parameters for function-like macro

2024-04-03 Thread Barry Song
From: Xining Xu If function-like macros do not utilize a parameter, it might result in a build warning. In our coding style guidelines, we advocate for utilizing static inline functions to replace such macros. This patch verifies compliance with the new rule. For a macro such as the one below,