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

2024-04-02 Thread Mac Xu
> On Tue, 2024-04-02 at 00:16 +, Mac Xu wrote: > > > On Mon, 2024-04-01 at 14:21 +1300, Barry Song 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, we advocate for

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

2024-04-01 Thread Joe Perches
On Tue, 2024-04-02 at 00:16 +, Mac Xu wrote: > > On Mon, 2024-04-01 at 14:21 +1300, Barry Song 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, we advocate for utilizing > >

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

2024-04-01 Thread Mac Xu
> On Mon, 2024-04-01 at 14:21 +1300, Barry Song 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, we advocate for utilizing > > static inline functions to replace such macros. This patch

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

2024-03-31 Thread Joe Perches
On Mon, 2024-04-01 at 14:21 +1300, Barry Song 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, we advocate for utilizing > static inline functions to replace such macros. This patch verifies >

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

2024-03-31 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,