[PATCH v2] Documentation: coding-style: ask function-like macros to evaluate parameters

2024-03-19 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/

Re: [PATCH] Documentation: coding-style: ask function-like macros to evaluate parameters

2024-03-19 Thread Stephen Rothwell
Hi Barry, On Wed, 20 Mar 2024 16:24:30 +1300 Barry Song <21cn...@gmail.com> wrote: > > On Wed, Mar 20, 2024 at 2:42 PM Stephen Rothwell > wrote: > > > > On Wed, 20 Mar 2024 13:16:56 +1300 Barry Song <21cn...@gmail.com> wrote: > > > > > > diff --git a/Documentation/process/coding-style.rst > >

Re: [PATCH] Documentation: coding-style: ask function-like macros to evaluate parameters

2024-03-19 Thread Barry Song
Hi Stephen, Thanks for reviewing. On Wed, Mar 20, 2024 at 2:42 PM Stephen Rothwell wrote: > > Hi Barry, > > On Wed, 20 Mar 2024 13:16:56 +1300 Barry Song <21cn...@gmail.com> wrote: > > > > diff --git a/Documentation/process/coding-style.rst > > b/Documentation/process/coding-style.rst > > index

Re: [PATCH] Documentation: coding-style: ask function-like macros to evaluate parameters

2024-03-19 Thread Stephen Rothwell
Hi Barry, On Wed, 20 Mar 2024 13:16:56 +1300 Barry Song <21cn...@gmail.com> wrote: > > diff --git a/Documentation/process/coding-style.rst > b/Documentation/process/coding-style.rst > index 9c7cf7347394..8065747fddff 100644 > --- a/Documentation/process/coding-style.rst > +++ b/Documentation/proc

[PATCH] Documentation: coding-style: ask function-like macros to evaluate parameters

2024-03-19 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/