[PATCH] docs: submitting-patches: describe additional tags

2024-03-31 Thread Dmitry Baryshkov
Described tags do not fully cover development needs. For example the LKP robot insists on using Reported-by: tag, but that's not fully correct. The robot reports an issue with the patch, not the issue that is being fixed by the patch. Describe additional tags to be used while submitting patches. S

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,

[PATCH v5 1/2] Documentation: coding-style: ask function-like macros to evaluate parameters

2024-03-31 Thread Barry Song
From: Barry Song Recent commit 77292bb8ca69c80 ("crypto: scomp - remove memcpy if sg_nents is 1 and pages are lowmem") leads to warnings on xtensa and loongarch, In file included from crypto/scompress.c:12: include/crypto/scatterwalk.h: In function 'scatterwalk_pagedone': include/crypto/

[PATCH v5 0/2] codingstyle: avoid unused parameters for a function-like macro

2024-03-31 Thread Barry Song
From: Barry Song -v5: * Simplify the code for Patch 2 according to Joe's suggestions. * add s-o-b of Barry according to Jeff Johnson -v4: * fix Xining's email address, s/ma@outlook.com/mac@outlook.com/g * fix some false positives of checkpatch.pl * downgrade from ERROR to WARN in ch

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

2024-03-31 Thread Mac Xu
> On Sun, 2024-03-31 at 13:46 +, Mac Xu wrote: > > > On Thu, 2024-03-28 at 15: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 v4 2/2] scripts: checkpatch: check unused parameters for function-like macro

2024-03-31 Thread Joe Perches
On Sun, 2024-03-31 at 13:46 +, Mac Xu wrote: > > On Thu, 2024-03-28 at 15: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 v4 2/2] scripts: checkpatch: check unused parameters for function-like macro

2024-03-31 Thread Mac Xu
> On Thu, 2024-03-28 at 15: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 v4 2/2] scripts: checkpatch: check unused parameters for function-like macro

2024-03-31 Thread Mac Xu
> On Thu, 2024-03-28 at 15: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