[PATCH 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. T

[PATCH 10/14] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-18 Thread Joel Fernandes
From: "Paul E. McKenney" Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. T

[PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-05 Thread Paul E. McKenney
Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. Therefore, mark them depreca

Re: [PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-05 Thread Joe Perches
On Mon, 2025-03-31 at 14:03 -0700, Paul E. McKenney wrote: > Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better > served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. > As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have > happened had I t

Re: [PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-04 Thread Paul E. McKenney
s to prevent > > > > other instances from being added. > > > > > > If those are changed, why not remove the prototypes & functions too? > > > That would stop more instances being added no? > > > > Deprecating it for a cy

Re: [PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-01 Thread Joe Perches
convert the 3 existing instances? > > > > > > Both are needed. The point of these checkpatch.pl changes is to prevent > > > other instances from being added. > > > > If those are changed, why not remove the prototypes & functions too? > > That would

Re: [PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-01 Thread Paul E. McKenney
On Tue, Apr 01, 2025 at 08:48:44PM -0700, Joe Perches wrote: > On Tue, 2025-04-01 at 07:05 -0700, Paul E. McKenney wrote: > > On Mon, Mar 31, 2025 at 11:53:25PM -0700, Joe Perches wrote: > > > On Mon, 2025-03-31 at 14:03 -0700, Paul E. McKenney wrote: > > > > Uses of srcu_read_lock_lite() and srcu_

Re: [PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-01 Thread Joe Perches
On Tue, 2025-04-01 at 07:05 -0700, Paul E. McKenney wrote: > On Mon, Mar 31, 2025 at 11:53:25PM -0700, Joe Perches wrote: > > On Mon, 2025-03-31 at 14:03 -0700, Paul E. McKenney wrote: > > > Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better > > > served by the new srcu_read_lock_

Re: [PATCH v2 10/12] checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()

2025-04-01 Thread Paul E. McKenney
On Mon, Mar 31, 2025 at 11:53:25PM -0700, Joe Perches wrote: > On Mon, 2025-03-31 at 14:03 -0700, Paul E. McKenney wrote: > > Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better > > served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. > > As in srcu_read_lock_l

Re: [PATCH] checkpatch: Remove migrated RCU APIs from deprecated_apis

2025-01-09 Thread Paul E. McKenney
On Thu, Jan 09, 2025 at 07:56:51AM -0800, Joe Perches wrote: > On Wed, 2025-01-08 at 11:24 -0800, David Reaver wrote: > > The deprecated_apis map was created in [1] so checkpatch would flag > > deprecated RCU APIs. These deprecated APIs have since been removed from the > &g

Re: [PATCH] checkpatch: Remove migrated RCU APIs from deprecated_apis

2025-01-09 Thread Joe Perches
On Wed, 2025-01-08 at 11:24 -0800, David Reaver wrote: > The deprecated_apis map was created in [1] so checkpatch would flag > deprecated RCU APIs. These deprecated APIs have since been removed from the > kernel. This patch removes them from this map so checkpatch doesn't waste >

Re: [PATCH] checkpatch: Remove migrated RCU APIs from deprecated_apis

2025-01-08 Thread Kuan-Wei Chiu
On Wed, Jan 08, 2025 at 11:24:54AM -0800, David Reaver wrote: > The deprecated_apis map was created in [1] so checkpatch would flag > deprecated RCU APIs. These deprecated APIs have since been removed from the > kernel. This patch removes them from this map so checkpatch doesn'

Re: [PATCH] checkpatch: Remove migrated RCU APIs from deprecated_apis

2025-01-08 Thread Paul E. McKenney
On Wed, Jan 08, 2025 at 11:24:54AM -0800, David Reaver wrote: > The deprecated_apis map was created in [1] so checkpatch would flag > deprecated RCU APIs. These deprecated APIs have since been removed from the > kernel. This patch removes them from this map so checkpatch doesn'

[PATCH] checkpatch: Remove migrated RCU APIs from deprecated_apis

2025-01-08 Thread David Reaver
The deprecated_apis map was created in [1] so checkpatch would flag deprecated RCU APIs. These deprecated APIs have since been removed from the kernel. This patch removes them from this map so checkpatch doesn't waste time looking for them, and so readers of checkpatch looking for deprecated

Re: [PATCH][next] checkpatch: add a couple new alloc functions to alloc with multiplies check

2023-09-14 Thread Kees Cook
On Tue, Sep 12, 2023 at 10:51:22AM -0700, Joe Perches wrote: > On Tue, 2023-09-12 at 11:04 -0600, Gustavo A. R. Silva wrote: > > vmalloc() and vzalloc() functions have now 2-factor multiplication > > argument forms vmalloc_array() and vcalloc(), correspondingly. > > > Add alloc-with-multiplies che

Re: [PATCH][next] checkpatch: add a couple new alloc functions to alloc with multiplies check

2023-09-12 Thread Joe Perches
On Tue, 2023-09-12 at 11:04 -0600, Gustavo A. R. Silva wrote: > vmalloc() and vzalloc() functions have now 2-factor multiplication > argument forms vmalloc_array() and vcalloc(), correspondingly. > Add alloc-with-multiplies checks for these new functions. > > Link: https://github.com/KSPP/linux/i

[PATCH][next] checkpatch: add a couple new alloc functions to alloc with multiplies check

2023-09-12 Thread Gustavo A. R. Silva
vmalloc() and vzalloc() functions have now 2-factor multiplication argument forms vmalloc_array() and vcalloc(), correspondingly. Add alloc-with-multiplies checks for these new functions. Link: https://github.com/KSPP/linux/issues/342 Signed-off-by: Gustavo A. R. Silva --- scripts/checkpatch.pl

Re: [PATCH v2] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Joe Perches
On Fri, 2021-04-16 at 19:57 +0200, Christophe JAILLET wrote: > The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested > Add the corresponding check. > > Signed-off-by: Christophe JAILLET > --- > v2: use a cleaner regex as proposed by Joe Perches Acked-by: Joe Perches > --- >  sc

Re: [PATCH] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Christophe JAILLET
Le 16/04/2021 à 19:03, Joe Perches a écrit : On Fri, 2021-04-16 at 18:51 +0200, Christophe JAILLET wrote: Le 16/04/2021 à 18:11, Joe Perches a écrit : On Fri, 2021-04-16 at 17:58 +0200, Christophe JAILLET wrote: The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested Add the corr

[PATCH v2] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Christophe JAILLET
The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested Add the corresponding check. Signed-off-by: Christophe JAILLET --- v2: use a cleaner regex as proposed by Joe Perches --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkp

Re: [PATCH] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Joe Perches
On Fri, 2021-04-16 at 18:51 +0200, Christophe JAILLET wrote: > Le 16/04/2021 à 18:11, Joe Perches a écrit : > > On Fri, 2021-04-16 at 17:58 +0200, Christophe JAILLET wrote: > > > The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested > > > Add the corresponding check. > > [] > > > di

Re: [PATCH] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Christophe JAILLET
Le 16/04/2021 à 18:11, Joe Perches a écrit : On Fri, 2021-04-16 at 17:58 +0200, Christophe JAILLET wrote: The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested Add the corresponding check. [] diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] @@ -7006,9 +7006,9 @@

Re: [PATCH] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Joe Perches
On Fri, 2021-04-16 at 17:58 +0200, Christophe JAILLET wrote: > The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested > Add the corresponding check. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -7006,9 +7006,9 @@ sub process { >   } >   > >  #

[PATCH] checkpatch: Improve ALLOC_ARRAY_ARGS test

2021-04-16 Thread Christophe JAILLET
The devm_ variant of 'kcalloc()' and 'kmalloc_array()' are not tested Add the corresponding check. Signed-off-by: Christophe JAILLET --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 44b9dc330ac6.

Re: [Outreachy kernel] [PATCH] Staging: Remove line to fix checkpatch error

2021-04-12 Thread Julia Lawall
On Sun, 11 Apr 2021, tawahpeggy wrote: > remove one empty line.CHECK: Please don't use multiple blank lines Did something go wrong with the patch generation? You say that you are removing one line, but the diff information looks like you are adding a file. Normally a patch has only the chang

Re: [PATCH] Staging: Remove line to fix checkpatch error

2021-04-12 Thread Ian Abbott
On 11/04/2021 21:49, tawahpeggy wrote: remove one empty line.CHECK: Please don't use multiple blank lines Signed-off-by: tawahpeggy --- drivers/staging/comedi/comedi_pcmcia.mod.c | 1 - 1 file changed, 0 insertion(+), 1 deletion(-) create mode 100644 drivers/staging/comedi/comedi_pcmcia.m

Re: [PATCH] Staging: Remove line to fix checkpatch error

2021-04-12 Thread Greg Kroah-Hartman
On Sun, Apr 11, 2021 at 04:49:38PM -0400, tawahpeggy wrote: > remove one empty line.CHECK: Please don't use multiple blank lines > > Signed-off-by: tawahpeggy > > --- > drivers/staging/comedi/comedi_pcmcia.mod.c | 1 - > 1 file changed, 0 insertion(+), 1 deletion(-) > create mode 100644 driver

[PATCH] Staging: Remove line to fix checkpatch error

2021-04-11 Thread tawahpeggy
remove one empty line.CHECK: Please don't use multiple blank lines Signed-off-by: tawahpeggy --- drivers/staging/comedi/comedi_pcmcia.mod.c | 1 - 1 file changed, 0 insertion(+), 1 deletion(-) create mode 100644 drivers/staging/comedi/comedi_pcmcia.mod.c diff --git a/drivers/staging/comedi/co

[PATCH 01/14] phy: cadence-torrent: Remove use of CamelCase to fix checkpatch CHECK message

2021-04-08 Thread Swapnil Jakhade
Script checkpatch with --strict option gives message: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: Fix this by removing CamelCase usage. No functional change. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 24 +++ 1 file changed, 12

Re: [RESEND PATCH v1] checkpatch: exclude four preprocessor sub-expressions from MACRO_ARG_REUSE

2021-04-07 Thread Joe Perches
> > Exclude those so that they can pass checkpatch. > > Signed-off-by: Vincent Mailhol Acked-by: Joe Perches > --- >  scripts/checkpatch.pl | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index

[RESEND PATCH v1] checkpatch: exclude four preprocessor sub-expressions from MACRO_ARG_REUSE

2021-04-07 Thread Vincent Mailhol
__must_be_array, offsetof, sizeof_field and __stringify are all preprocessor macros and do not evaluate their arguments. As such, it is safe not to warn when arguments are being reused in those four sub-expressions. Exclude those so that they can pass checkpatch. Signed-off-by: Vincent Mailhol

[PATCH] checkpatch: Warn when missing newline in return sysfs_emit() formats

2021-03-30 Thread Joe Perches
return sysfs_emit() uses should include a newline. Suggest adding a newline when one is missing. Add one using --fix too. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 11 +++ 1 file changed, 11 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d67

[PATCH] checkpatch: Use python3 by default with spdxcheck.py

2021-03-28 Thread Ismael Luceno
Allow to override this via the PYTHON environment variable. Some systems still provide Python 2.x under the python name for compatibility reasons; plus the spdxcheck.py script already specifies python3 as it's interpreter. Signed-off-by: Ismael Luceno --- scripts/checkpatch.pl | 5 +++-- 1 file

[PATCH v2 00/20] fix checkpatch error on macros

2021-03-27 Thread Fabio Aiuto
this patchset fixes, where possible, some checkpatch errors on macros. Delete unused macros and some unused struct fields tied to removed macros. Changes in v2: - deleted unused macros - ignored following checkpatch issues on macro: * issues requiring to add

[PATCH 00/15] staging: rtl8723bs: fix checkpatch errors on macros

2021-03-26 Thread Fabio Aiuto
Fix all checkpatch errors on macros but the following: ERROR: Macros with complex values should be enclosed in parentheses #41: FILE: drivers/staging/rtl8723bs/include/hal_pwr_seq.h:41: +#define RTL8723B_TRANS_CARDEMU_TO_ACT

[PATCH 3/3] checkpatch: Ignore labels when checking indentation

2021-03-25 Thread Julius Werner
Goto labels are commonly written in the leftmost column (sometimes with one space in front), regardless of indentation level. Sometimes they're on a line of their own, but sometimes the same line is shared with a normal code statement that then starts at the expected indentation level. When checkin

[PATCH 1/3] checkpatch: ctx_statement_block: Fix preprocessor guard tracking

2021-03-25 Thread Julius Werner
The preprocessor guard tracking in ctx_statement_block() is (and seems to have always been) subtly broken whenever tracking over an #else: the code is supposed to restore state from the current top of the stack (like and #endif just without removing it). However, it indexes the stack at [$#stack -

Re: [PATCH -next v4] docs: document all error message types in checkpatch

2021-03-25 Thread Jonathan Corbet
Dwaipayan Ray writes: > All the error message types now have a verbose description. > > Also there are two new groups of message types: > > - Macros, Attributes and Symbols > - Functions and Variables > > Rearrange the message types to fit these new groups as needed. > > Reviewed-by: Lukas Bulwah

Re: CHECKPATCH: missing a warning soon after include files decl -c

2021-03-24 Thread Fabio Aiuto
On Sat, Mar 20, 2021 at 04:28:51AM -0700, Joe Perches wrote: > > Actually, these would seem to be better as one or multiple functions with > local statics or even as static inlines functions in the .h file > > $ git grep -w RTW_WPA_OUI drivers/staging/rtl8723bs/core > drivers/staging/rtl8723bs/co

Re: [PATCH v2 0/9] fix extern declarations checkpatch issues

2021-03-23 Thread Greg KH
On Tue, Mar 23, 2021 at 01:56:27PM +0100, Fabio Aiuto wrote: > Fix extern declaration issues warned by checkpatch. Nit, we have a new mailing list, you might want to use that now instead of driverdev in the future, thanks! greg k-h

[PATCH v2 0/9] fix extern declarations checkpatch issues

2021-03-23 Thread Fabio Aiuto
Fix extern declaration issues warned by checkpatch. Changes in v2: - removal of prototypes when function can be static - move of static function defs inside file to let the code compile - split last patch in two patches (one patch for blank line removal) Fabio Aiuto (9

[PATCH 00/11] staging: rtl8723bs: fix extern declaration checkpatch issues

2021-03-22 Thread Fabio Aiuto
Fix extern declaration issues warned by checkpatch Fabio Aiuto (11): staging: rtl8723bs: delete extern declarations in core/rtw_ap.c staging: rtl8723bs: moved function prototypes out of core/rtw_efuse.c staging: rtl8723bs: moved function prototype out of core/rtw_ioctl_set.c and core

[PATCH -next v4] docs: document all error message types in checkpatch

2021-03-22 Thread Dwaipayan Ray
All the error message types now have a verbose description. Also there are two new groups of message types: - Macros, Attributes and Symbols - Functions and Variables Rearrange the message types to fit these new groups as needed. Reviewed-by: Lukas Bulwahn Signed-off-by: Dwaipayan Ray --- Ch

[RESEND PATCH v1] checkpatch: exclude four preprocessor sub-expressions from MACRO_ARG_REUSE

2021-03-21 Thread Vincent Mailhol
__must_be_array, offsetof, sizeof_field and __stringify are all preprocessor macros and do not evaluate their arguments. As such, it is safe not to warn when arguments are being reused in those four sub-expressions. Exclude those so that they can pass checkpatch. Signed-off-by: Vincent Mailhol

Re: CHECKPATCH: missing a warning soon after include files decl -c

2021-03-21 Thread Greg KH
On Sat, Mar 20, 2021 at 03:49:12PM +0100, Fabio Aiuto wrote: > On Sat, Mar 20, 2021 at 11:59:44AM +0100, Greg KH wrote: > > On Sat, Mar 20, 2021 at 11:54:24AM +0100, Fabio Aiuto wrote: > > > Hi, > > > > > > here's an issue in checkpatch.pl > > > > > > $ perl script/checkpatch.pl -f drivers/stagin

Re: CHECKPATCH: missing a warning soon after include files decl -c

2021-03-20 Thread Fabio Aiuto
On Sat, Mar 20, 2021 at 11:59:44AM +0100, Greg KH wrote: > On Sat, Mar 20, 2021 at 11:54:24AM +0100, Fabio Aiuto wrote: > > Hi, > > > > here's an issue in checkpatch.pl > > > > $ perl script/checkpatch.pl -f drivers/staging/rtl8723bs/core/rtw_ap.c > > > > I get three warning related to an extern

Re: CHECKPATCH: missing a warning soon after include files decl -c

2021-03-20 Thread Fabio Aiuto
On Sat, Mar 20, 2021 at 04:28:51AM -0700, Joe Perches wrote: > On Sat, 2021-03-20 at 11:59 +0100, Greg KH wrote: > > On Sat, Mar 20, 2021 at 11:54:24AM +0100, Fabio Aiuto wrote: > > > Hi, > > > > > > here's an issue in checkpatch.pl > > > > > > $ perl script/checkpatch.pl -f drivers/staging/rtl87

Re: CHECKPATCH: missing a warning soon after include files decl -c

2021-03-20 Thread Joe Perches
On Sat, 2021-03-20 at 11:59 +0100, Greg KH wrote: > On Sat, Mar 20, 2021 at 11:54:24AM +0100, Fabio Aiuto wrote: > > Hi, > > > > here's an issue in checkpatch.pl > > > > $ perl script/checkpatch.pl -f drivers/staging/rtl8723bs/core/rtw_ap.c > > > > I get three warning related to an extern declar

CHECKPATCH: missing a warning soon after include files decl -c

2021-03-20 Thread Fabio Aiuto
Hi, here's an issue in checkpatch.pl $ perl script/checkpatch.pl -f drivers/staging/rtl8723bs/core/rtw_ap.c I get three warning related to an extern declaration WARNING: externs should be avoided in .c files #14: FILE: drivers/staging/rtl8723bs/core/rtw_ap.c:14: +extern unsigned char WMM_OUI[];

Re: CHECKPATCH: missing a warning soon after include files decl -c

2021-03-20 Thread Greg KH
On Sat, Mar 20, 2021 at 11:54:24AM +0100, Fabio Aiuto wrote: > Hi, > > here's an issue in checkpatch.pl > > $ perl script/checkpatch.pl -f drivers/staging/rtl8723bs/core/rtw_ap.c > > I get three warning related to an extern declaration > > WARNING: externs should be avoided in .c files > #14: F

[PATCH] checkpatch: remove check for include/asm modifications

2021-03-18 Thread Dwaipayan Ray
include/asm/ got removed over a decade back. checkpatch still has a check for it: MODIFIED_INCLUDE_ASM Remove the check as it is no longer useful. Signed-off-by: Dwaipayan Ray --- scripts/checkpatch.pl | 4 1 file changed, 4 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts

Re: Checkpatch still worries about include/asm/ ?

2021-03-18 Thread Dwaipayan Ray
On Thu, Mar 18, 2021 at 10:33 PM Lukas Bulwahn wrote: > > On Thu, Mar 18, 2021 at 5:47 PM Dwaipayan Ray wrote: > > > > Hello, > > include/asm/ got removed a long time back (probably v1.1.45). > > Checkpatch still worries about that: > > > > if (

Re: Checkpatch still worries about include/asm/ ?

2021-03-18 Thread Lukas Bulwahn
On Thu, Mar 18, 2021 at 5:47 PM Dwaipayan Ray wrote: > > Hello, > include/asm/ got removed a long time back (probably v1.1.45). > Checkpatch still worries about that: > > if ($realfile =~ m@^include/asm/@) { > ERROR("MODIFIED_INCLUDE_ASM", > "do

Checkpatch still worries about include/asm/ ?

2021-03-18 Thread Dwaipayan Ray
Hello, include/asm/ got removed a long time back (probably v1.1.45). Checkpatch still worries about that: if ($realfile =~ m@^include/asm/@) { ERROR("MODIFIED_INCLUDE_ASM", "do not modify files in include/asm, change architecture specific files in include/asm-\n" . "$he

Re: [PATCH v2] kunit: fix checkpatch warning

2021-03-10 Thread Shuah Khan
ike to see what is being fixed in the subject line. Can you update the subject line. The current one doesn't say anything about the nature of the fix. Also please run the checkpatch script on your patches. This tool useful and can offer you tips on improving your commit log as well as code. thanks, -- Shuah

[PATCH v1] checkpatch: exclude four preprocessor sub-expressions from MACRO_ARG_REUSE

2021-03-05 Thread Vincent Mailhol
__must_be_array, offsetof, sizeof_field and __stringify are all preprocessor macros and do not evaluate their arguments. As such, it is safe not to warn when arguments are being reused in those four sub-expressions. Exclude those so that they can pass checkpatch. Signed-off-by: Vincent Mailhol

Re: [PATCH v2] kunit: fix checkpatch warning

2021-03-04 Thread Shuah Khan
On 3/3/21 9:35 PM, Lucas Stankus wrote: On Wed, Mar 03, 2021 at 12:56:05PM -0800, Brendan Higgins wrote: Did you change anything other than fixing the Signed-off-by that Shuah requested? No, I only fixed the Signed-off-by warning. Generally when you make a small change after receiving a Revi

Re: [PATCH v2] kunit: fix checkpatch warning

2021-03-03 Thread Lucas Stankus
On Wed, Mar 03, 2021 at 12:56:05PM -0800, Brendan Higgins wrote: > Did you change anything other than fixing the Signed-off-by that Shuah > requested? No, I only fixed the Signed-off-by warning. > Generally when you make a small change after receiving a Reviewed-by > (especially one so small as h

Re: [PATCH v2] kunit: fix checkpatch warning

2021-03-03 Thread Brendan Higgins
On Tue, Mar 2, 2021 at 6:03 PM Lucas Stankus wrote: > > Tidy up code by fixing the following checkpatch warnings: > CHECK: Alignment should match open parenthesis > CHECK: Lines should not end with a '(' > > Signed-off-by: Lucas Stankus Did you change anything othe

[PATCH v2] kunit: fix checkpatch warning

2021-03-03 Thread Lucas Stankus
Tidy up code by fixing the following checkpatch warnings: CHECK: Alignment should match open parenthesis CHECK: Lines should not end with a '(' Signed-off-by: Lucas Stankus --- Change log v1 -> v2 fixed signed-off-by tag lib/kunit/assert.c | 31 --- 1

Re: [PATCH v8 0/3] checkpatch: add verbose mode

2021-03-01 Thread Jonathan Corbet
Joe Perches writes: > On Mon, 2021-03-01 at 14:22 -0700, Jonathan Corbet wrote: >> Dwaipayan Ray writes: >> >> > Add a new verbose mode to checkpatch. The verbose test >> > descriptions are read from the new checkpatch documentation >> > file at `Docu

Re: [PATCH] kunit: fix checkpatch warning

2021-03-01 Thread Shuah Khan
On 2/26/21 2:05 PM, Brendan Higgins wrote: On Fri, Feb 26, 2021 at 12:54 PM Lucas Pires Stankus wrote: Tidy up code by fixing the following checkpatch warnings: CHECK: Alignment should match open parenthesis CHECK: Lines should not end with a '(' Signed-off-by: Lucas Stankus R

Re: [PATCH v8 0/3] checkpatch: add verbose mode

2021-03-01 Thread Joe Perches
On Mon, 2021-03-01 at 14:22 -0700, Jonathan Corbet wrote: > Dwaipayan Ray writes: > > > Add a new verbose mode to checkpatch. The verbose test > > descriptions are read from the new checkpatch documentation > > file at `Documentation/dev-tools/checkpatch.rst`, which &

Re: [PATCH v8 0/3] checkpatch: add verbose mode

2021-03-01 Thread Jonathan Corbet
Dwaipayan Ray writes: > Add a new verbose mode to checkpatch. The verbose test > descriptions are read from the new checkpatch documentation > file at `Documentation/dev-tools/checkpatch.rst`, which > is also added by this series. So I can certainly take the doc change, as requested

Re: [PATCH] kunit: fix checkpatch warning

2021-02-26 Thread Brendan Higgins
On Fri, Feb 26, 2021 at 12:54 PM Lucas Pires Stankus wrote: > > Tidy up code by fixing the following checkpatch warnings: > CHECK: Alignment should match open parenthesis > CHECK: Lines should not end with a '(' > > Signed-off-by: Lucas Stankus Reviewed-by: Brendan Higgins Thanks!

[PATCH] kunit: fix checkpatch warning

2021-02-26 Thread Lucas Pires Stankus
Tidy up code by fixing the following checkpatch warnings: CHECK: Alignment should match open parenthesis CHECK: Lines should not end with a '(' Signed-off-by: Lucas Stankus --- lib/kunit/assert.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-)

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-26 Thread Joe Perches
> > > > Add a new verbose mode to checkpatch. The verbose test > > > > descriptions are read from the checkpatch documentation > > > > file at `Documentation/dev-tools/checkpatch.rst`. > > > > > > > > The verbose mode is optional and can be

[PATCH v8 3/3] MAINTAINERS: clarify responsibility for checkpatch documentation

2021-02-26 Thread Dwaipayan Ray
From: Lukas Bulwahn As discussed, Dwaipayan and Lukas take the responsibility for maintaining the checkpatch documentation that is currently being built up. To be sure that the checkpatch maintainers and the corresponding documentation maintainers can keep the content synchronized, add them as

[PATCH v8 2/3] checkpatch: add verbose mode

2021-02-26 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch.pl to emit additional verbose test descriptions. The verbose mode is optional and can be enabled by the flag -v or --verbose. The test descriptions are parsed from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The test

[PATCH v8 0/3] checkpatch: add verbose mode

2021-02-26 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch. The verbose test descriptions are read from the new checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`, which is also added by this series. The verbose mode is optional and can be enabled by the flag -v or --verbose. The documentation

[PATCH v8 1/3] docs: add documentation for checkpatch

2021-02-26 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. The checkpatch message types are grouped by usage. Under each group the types are described briefly. 34 of such types are documented. Signed-off-by: Dwaipayan Ray

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-26 Thread Dwaipayan Ray
On Fri, Feb 26, 2021 at 11:29 AM Lukas Bulwahn wrote: > > On Thu, Feb 25, 2021 at 7:08 PM Dwaipayan Ray wrote: > > > > On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > > > > > > On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > > >

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-26 Thread Dwaipayan Ray
> > > I could take it up if everybody is okay with it! > > > >> Ideally, the patch order would be reversed so the .rst file > >> is added first, then checkpatch updated to use it. > >> > > > > Sure, if Jonathan or Mauro has no objections to it, I

Re: [PATCH for Dwaipayan] MAINTAINERS: clarify responsibility for checkpatch documentation

2021-02-26 Thread Dwaipayan Ray
On Fri, Feb 26, 2021 at 12:10 PM Lukas Bulwahn wrote: > > As discussed, Dwaipayan and Lukas take the responsibility for maintaining > the checkpatch documentation that is currently being built up. > > To be sure that the checkpatch maintainers and the corresponding > documentati

[PATCH for Dwaipayan] MAINTAINERS: clarify responsibility for checkpatch documentation

2021-02-25 Thread Lukas Bulwahn
As discussed, Dwaipayan and Lukas take the responsibility for maintaining the checkpatch documentation that is currently being built up. To be sure that the checkpatch maintainers and the corresponding documentation maintainers can keep the content synchronized, add them as reviewers to the

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-25 Thread Lukas Bulwahn
On Thu, Feb 25, 2021 at 7:08 PM Dwaipayan Ray wrote: > > On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > > > > On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > > > Add a new verbose mode to checkpatch. The verbose test > > > descriptions are re

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-25 Thread Jonathan Corbet
might have >> some opinion. >> >> Also I do not want to be a maintainer of this .rst file and >> likely neither Jon nor Mauro would either. Perhaps you? >> > > I could take it up if everybody is okay with it! > >> Ideally, the patch order would be reverse

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-25 Thread Mauro Carvalho Chehab
Em Thu, 25 Feb 2021 23:38:03 +0530 Dwaipayan Ray escreveu: > On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > > > > On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > > > Add a new verbose mode to checkpatch. The verbose test > > > descript

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-25 Thread Dwaipayan Ray
On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > > On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > > Add a new verbose mode to checkpatch. The verbose test > > descriptions are read from the checkpatch documentation > > file at `Documentation/dev-tools/chec

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-25 Thread Joe Perches
On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > Add a new verbose mode to checkpatch. The verbose test > descriptions are read from the checkpatch documentation > file at `Documentation/dev-tools/checkpatch.rst`. > > The verbose mode is optional and can be enabled by t

Re: checkpatch warnings for references to earlier commits

2021-02-22 Thread Joe Perches
On Mon, 2021-02-22 at 13:14 -0800, Luck, Tony wrote: > Would it be possible to teach checkpatch not to warn about > canonical references to earlier commits? E.g. > > WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per > line) > #7: > commit e80

checkpatch warnings for references to earlier commits

2021-02-22 Thread Luck, Tony
Would it be possible to teach checkpatch not to warn about canonical references to earlier commits? E.g. WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line) #7: commit e80634a75aba ("EDAC, skx: Retrieve and print retry_rd_err_log registers") Thanks -Tony

[PATCH 4.9 29/49] usb: dwc3: ulpi: fix checkpatch warning

2021-02-22 Thread Greg Kroah-Hartman
From: Felipe Balbi commit 2a499b45295206e7f3dc76edadde891c06cc4447 upstream no functional changes. Signed-off-by: Felipe Balbi Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/ulpi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers

[PATCH 4.4 17/35] usb: dwc3: ulpi: fix checkpatch warning

2021-02-22 Thread Greg Kroah-Hartman
From: Felipe Balbi commit 2a499b45295206e7f3dc76edadde891c06cc4447 upstream no functional changes. Signed-off-by: Felipe Balbi Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/ulpi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers

[PATCH 4.14 33/57] usb: dwc3: ulpi: fix checkpatch warning

2021-02-22 Thread Greg Kroah-Hartman
From: Felipe Balbi commit 2a499b45295206e7f3dc76edadde891c06cc4447 upstream no functional changes. Signed-off-by: Felipe Balbi Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/ulpi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers

[PATCH 4.19 27/50] usb: dwc3: ulpi: fix checkpatch warning

2021-02-22 Thread Greg Kroah-Hartman
From: Felipe Balbi commit 2a499b45295206e7f3dc76edadde891c06cc4447 upstream no functional changes. Signed-off-by: Felipe Balbi Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/ulpi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers

[PATCH v7 2/2] docs: add documentation for checkpatch

2021-02-21 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. The checkpatch message types are grouped by usage. Under each group the types are described briefly. 34 of such types are documented. Signed-off-by: Dwaipayan Ray

[PATCH v7 1/2] checkpatch: add verbose mode

2021-02-21 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch.pl to emit additional verbose test descriptions. The verbose mode is optional and can be enabled by the flag -v or --verbose. The test descriptions are parsed from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The test

[PATCH v7 0/2] checkpatch: add verbose mode

2021-02-21 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch. The verbose test descriptions are read from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The verbose mode is optional and can be enabled by the flag -v or --verbose. The documentation file is only parsed by checkpatch.pl if

Re: [PATCH v6 1/2] checkpatch: add verbose mode

2021-02-21 Thread Dwaipayan Ray
On Mon, Feb 22, 2021 at 8:14 AM Joe Perches wrote: > > On Mon, 2021-02-22 at 00:05 +0530, Dwaipayan Ray wrote: > > On Sun, Feb 21, 2021 at 11:36 PM Joe Perches wrote: > > > > > > On Sun, 2021-02-21 at 17:28 +0530, Dwaipayan Ray wrote: > > > > Add a new verbose mode to checkpatch.pl to emit additi

Re: [PATCH v6 1/2] checkpatch: add verbose mode

2021-02-21 Thread Joe Perches
On Mon, 2021-02-22 at 00:05 +0530, Dwaipayan Ray wrote: > On Sun, Feb 21, 2021 at 11:36 PM Joe Perches wrote: > > > > On Sun, 2021-02-21 at 17:28 +0530, Dwaipayan Ray wrote: > > > Add a new verbose mode to checkpatch.pl to emit additional verbose > > > test descriptions. The verbose mode is optio

Re: [PATCH v6 1/2] checkpatch: add verbose mode

2021-02-21 Thread Dwaipayan Ray
On Sun, Feb 21, 2021 at 11:36 PM Joe Perches wrote: > > On Sun, 2021-02-21 at 17:28 +0530, Dwaipayan Ray wrote: > > Add a new verbose mode to checkpatch.pl to emit additional verbose > > test descriptions. The verbose mode is optional and can be enabled > > by the flag -v or --verbose. > > OK, may

Re: [PATCH v6 1/2] checkpatch: add verbose mode

2021-02-21 Thread Joe Perches
On Sun, 2021-02-21 at 17:28 +0530, Dwaipayan Ray wrote: > Add a new verbose mode to checkpatch.pl to emit additional verbose > test descriptions. The verbose mode is optional and can be enabled > by the flag -v or --verbose. OK, maybe add color coding to the list_types output. Something like: ---

[PATCH v6 1/2] checkpatch: add verbose mode

2021-02-21 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch.pl to emit additional verbose test descriptions. The verbose mode is optional and can be enabled by the flag -v or --verbose. The test descriptions are parsed from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The test

[PATCH v6 0/2] checkpatch: add verbose mode

2021-02-21 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch. The verbose test descriptions are read from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The verbose mode is optional and can be enabled by the flag -v or --verbose. The documentation file is only parsed by checkpatch.pl if

[PATCH v6 2/2] docs: add documentation for checkpatch

2021-02-21 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. The checkpatch message types are grouped by usage. Under each group the types are described briefly. 34 of such types are documented. Signed-off-by: Dwaipayan Ray

[PATCH] lib: genalloc: fix warning generated by checkpatch

2021-02-21 Thread Hassan Shahbazi
Add missing blank line after declarations. Signed-off-by: Hassan Shahbazi --- lib/genalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/genalloc.c b/lib/genalloc.c index dab97bb69df6..3e901fd93b00 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -757,6 +757,7 @@ unsigned long gen

Re: [PATCH v5 0/2] checkpatch: add verbose mode

2021-02-20 Thread Joe Perches
On Sat, 2021-02-20 at 17:32 +0530, Dwaipayan Ray wrote: > Add a new verbose mode to checkpatch. The verbose test > descriptions are read from the checkpatch documentation > file at `Documentation/dev-tools/checkpatch.rst`. > > The verbose mode is optional and can be enabled by t

[PATCH v5 2/2] docs: add documentation for checkpatch

2021-02-20 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. The checkpatch message types are grouped by usage. Under each group the types are described briefly. 34 of such types are documented. Signed-off-by: Dwaipayan Ray

[PATCH v5 1/2] checkpatch: add verbose mode

2021-02-20 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch.pl to emit additional verbose test descriptions. The verbose mode is optional and can be enabled by the flag -v or --verbose. The test descriptions are parsed from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The test

  1   2   3   4   5   6   7   8   9   10   >