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 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 parenth

Re: [PATCH] staging: hikey9xx: fix checkpatch error and warning

2021-02-08 Thread Greg KH
On Tue, Feb 09, 2021 at 11:27:04AM +0530, Atul Gopinathan wrote: > Fix the following types of checkpatch error and warning: > > ERROR: code indent should use tabs where possible > WARNING: struct phy_ops should normally be const That is 2 different things, which means this should be

[PATCH] staging: hikey9xx: fix checkpatch error and warning

2021-02-08 Thread Atul Gopinathan
Fix the following types of checkpatch error and warning: ERROR: code indent should use tabs where possible WARNING: struct phy_ops should normally be const Signed-off-by: Atul Gopinathan --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 2 +- drivers/staging/hikey9xx/hi6421v600-regulator.c

Re: [f2fs-dev] [PATCH] f2fs: avoid checkpatch error

2020-06-17 Thread Chao Yu
On 2020/6/17 3:02, Jaegeuk Kim wrote: > ERROR:INITIALISED_STATIC: do not initialise statics to NULL > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

[PATCH] f2fs: avoid checkpatch error

2020-06-16 Thread Jaegeuk Kim
ERROR:INITIALISED_STATIC: do not initialise statics to NULL Signed-off-by: Jaegeuk Kim --- fs/f2fs/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 1e02a8c106b0a..4dca9e4567348 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2

Re: checkpatch error

2019-10-08 Thread Joe Perches
On Tue, 2019-10-08 at 12:02 +0800, Zhenzhong Duan wrote: > Hi, > > When I run checkpatch.pl with a patch doing reverting operation, it > reports a false positive error, Should I ignore the error or it's a bug? Ignore it.

checkpatch error

2019-10-07 Thread Zhenzhong Duan
Hi, When I run checkpatch.pl with a patch doing reverting operation, it reports a false positive error, Should I ignore the error or it's a bug? 0001-Revert-KVM-X86-Fix-setup-the-virt_spin_lock_key-befo.patch --- ERROR: Please use git

[PATCH v4 1/3] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver

2019-06-18 Thread Shobhit Kukreti
Cleaned up the code from the following files to get rid of check patch error "that open brace { should be on the previous line" drivers/staging/rtl8723bs/os_dep/mlme_linux.c drivers/staging/rtl8723bs/os_dep/recv_linux.c drivers/staging/rtl8723bs/os_dep/rtw_proc.c drivers/staging/rtl8723bs/os_dep/s

[PATCH v4 2/3] staging: rtl8723bs: Resolve the checkpatch error: else should follow close brace '}'

2019-06-18 Thread Shobhit Kukreti
Cleaned up the code to resolve the checkpatch error else should follow close brace '}' from the following files: mlme_linux.c recv_linux.c sdio_intf.c Signed-off-by: Shobhit Kukreti --- drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 6 ++ drivers/staging/rtl8723bs/os_dep/re

Re: [PATCH v3 1/3] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver

2019-06-18 Thread Greg Kroah-Hartman
On Sun, Jun 16, 2019 at 09:19:49AM -0700, Shobhit Kukreti wrote: > Cleaned up the code from the following files to get rid of > check patch error "that open brace { should be on the previous line" > > drivers/staging/rtl8723bs/os_dep/mlme_linux.c > drivers/staging/rtl8723bs/os_dep/recv_linux.c > d

[PATCH v3 2/3] staging: rtl8723bs: Resolve the checkpatch error: else should follow close brace '}'

2019-06-16 Thread Shobhit Kukreti
Cleaned up the code to resolve the checkpatch error else should follow close brace '}' from the following files: mlme_linux.c recv_linux.c sdio_intf.c Signed-off-by: Shobhit Kukreti --- drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 6 ++ drivers/staging/rtl8723bs/os_dep/re

[PATCH v3 1/3] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver

2019-06-16 Thread Shobhit Kukreti
Cleaned up the code from the following files to get rid of check patch error "that open brace { should be on the previous line" drivers/staging/rtl8723bs/os_dep/mlme_linux.c drivers/staging/rtl8723bs/os_dep/recv_linux.c drivers/staging/rtl8723bs/os_dep/rtw_proc.c drivers/staging/rtl8723bs/os_dep/s

Re: [PATCH v2] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver

2019-06-16 Thread Shobhit Kukreti
On Sun, Jun 16, 2019 at 01:13:11AM -0700, Joe Perches wrote: > On Sat, 2019-06-15 at 14:29 -0700, Shobhit Kukreti wrote: > > Cleaned up the code from the following files to get rid of > > check patch error "that open brace { should be on the previous line" > > It's fine you are modifying brace sty

Re: [PATCH v2] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver

2019-06-16 Thread Joe Perches
On Sat, 2019-06-15 at 14:29 -0700, Shobhit Kukreti wrote: > Cleaned up the code from the following files to get rid of > check patch error "that open brace { should be on the previous line" It's fine you are modifying brace styles, but: > diff --git a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c

[PATCH v2] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver

2019-06-15 Thread Shobhit Kukreti
Cleaned up the code from the following files to get rid of check patch error "that open brace { should be on the previous line" drivers/staging/rtl8723bs/os_dep/mlme_linux.c drivers/staging/rtl8723bs/os_dep/recv_linux.c drivers/staging/rtl8723bs/os_dep/rtw_proc.c drivers/staging/rtl8723bs/os_dep/s

Re: [PATCH] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723bs driver

2019-06-15 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 07:12:10PM -0700, Shobhit Kukreti wrote: > Cleaned up the code from the following files to get rid of > check patch error "that open brace { should be on the previous line" > > drivers/staging/rtl8723bs/os_dep/mlme_linux.c > drivers/staging/rtl8723bs/os_dep/recv_linux.c > d

[PATCH] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723bs driver

2019-06-13 Thread Shobhit Kukreti
Cleaned up the code from the following files to get rid of check patch error "that open brace { should be on the previous line" drivers/staging/rtl8723bs/os_dep/mlme_linux.c drivers/staging/rtl8723bs/os_dep/recv_linux.c drivers/staging/rtl8723bs/os_dep/rtw_proc.c drivers/staging/rtl8723bs/os_dep/s

Re: [PATCH] drivers: cpuidle: Fix checkpatch error and warnings

2017-09-08 Thread gaurav jindal
This patch fixes the below checkpatch errors and warnings in drivers/cpuidle/cpuidle.c WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable #343: FILE: drivers/cpuidle/cpuidle.c:343: +EXPORT_SYMBOL_GPL(cpuidle_pause_and_lock); WARNING: EXPORT_SYMBOL(foo); should immediate

Re: [PATCH] drivers: cpuidle: Fix checkpatch error and warnings

2017-09-07 Thread Rafael J. Wysocki
On Thu, Sep 7, 2017 at 2:40 PM, gaurav jindal wrote: > this patch fixes the below checkpatch errors and warnings in > drivers/cpuidle/cpuidle.c > > WARNING: line over 80 characters > #311: FILE: drivers/cpuidle/cpuidle.c:311: > + /* Make sure all changes finished before we switch to

Re: [PATCH] drivers: cpuidle: Fix checkpatch error and warnings

2017-09-07 Thread gaurav jindal
this patch fixes the below checkpatch errors and warnings in drivers/cpuidle/cpuidle.c WARNING: line over 80 characters #311: FILE: drivers/cpuidle/cpuidle.c:311: + /* Make sure all changes finished before we switch to new idle */ WARNING: EXPORT_SYMBOL(foo); should immediately fol

Re: [PATCH] drivers: cpuidle: Fix checkpatch error and warnings

2017-09-07 Thread Joe Perches
On Thu, 2017-09-07 at 15:53 +0530, gaurav jindal wrote: > This patch fixes the below checkpatch errors and warnings in > drivers/cpuidle/cpuidle.c If you are going to propose a checkpatch only patch, please run your proposed patch through checkpatch. > diff --git a/drivers/cpuidle/cpuidle.c b/dri

[PATCH] drivers: cpuidle: Fix checkpatch error and warnings

2017-09-07 Thread gaurav jindal
This patch fixes the below checkpatch errors and warnings in drivers/cpuidle/cpuidle.c WARNING: line over 80 characters #311: FILE: drivers/cpuidle/cpuidle.c:311: + /* Make sure all changes finished before we switch to new idle */ WARNING: EXPORT_SYMBOL(foo); should immediately fol

[PATCH]drivers: cpuidle: remove checkpatch error

2017-09-01 Thread gaurav jindal
this commit removes the checkpatch error in cpuidle_enable_device function. With removal of error, this commit makes the calling of cpuidle_curr_governor->enable more smooth. Signed-off-by: gaurav jindal --- diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 60bb

Re: [PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error

2017-02-05 Thread Greg KH
On Sat, Feb 04, 2017 at 01:42:48PM +0900, Youngdo Lee wrote: > Fix checkpatch error: > ERROR: space prohibited before that close parenthesis ')' > > Signed-off-by: Youngdo Lee > --- > drivers/staging/fbtft/fbtft-bus.c | 5 +++-- > 1 file changed, 3 insertions(+),

[PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error

2017-02-03 Thread Youngdo Lee
Fix checkpatch error: ERROR: space prohibited before that close parenthesis ')' Signed-off-by: Youngdo Lee --- drivers/staging/fbtft/fbtft-bus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-b

Re: [PATCH] drivers: staging: fbtft: fix checkpatch error and udelay

2017-01-03 Thread Greg KH
On Mon, Dec 19, 2016 at 07:44:42PM +0200, Ozgur Karatas wrote: > 19.12.2016, 08:35, "Greg KH" : > > On Sun, Dec 18, 2016 at 11:47:30AM -0600, Scott Matheina wrote: > >>  These changes where identified by checkpatch.pl as needed changes to > >>  align the code with the linux development coding style

Re: [PATCH] drivers: staging: fbtft: fix checkpatch error and udelay

2016-12-19 Thread Ozgur Karatas
19.12.2016, 08:35, "Greg KH" : > On Sun, Dec 18, 2016 at 11:47:30AM -0600, Scott Matheina wrote: >>  These changes where identified by checkpatch.pl as needed changes to >>  align the code with the linux development coding style. The several >>  lines of text where aligned with the precending paren

Re: [PATCH 1/1] Fixed checkpatch error to mmu.c

2016-12-12 Thread Marc Zyngier
Hi Ozgur, On 12/12/16 10:46, Ozgur Karatas wrote: > Hello all, > > I tested to mmu.c and I have fixed to some errors. > > mmu.c:510: ERROR: "(foo*)" should be "(foo *)" > > Signed-off-by: Ozgur Karatas > --- > arch/arm/kvm/mmu.c | 2 +- > > diff --git a/arch/arm/kvm/mmu.

[PATCH 1/1] Fixed checkpatch error to mmu.c

2016-12-12 Thread Ozgur Karatas
Hello all, I tested to mmu.c and I have fixed to some errors. mmu.c:510: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Ozgur Karatas --- arch/arm/kvm/mmu.c | 2 +- diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index a5265ed..a83cf47 100644 --- a/arch/arm/kvm/m

[PATCH] usb: gadget: Fix checkpatch error for braces

2016-11-11 Thread Anson Jacob
Fix error message by checkpath.pl open brace '{' following struct/enum go on the same line Patch applied by running fix inplace capability of checkpatch: checkpatch.pl -f *.[ch] --types OPEN_BRACE --fix-inplace Signed-off-by: Anson Jacob --- drivers/usb/gadget/function/rndis.c| 3 +- drive

[PATCH] staging: lustre: fix checkpatch error

2016-08-16 Thread Anson Jacob
convert spaces to tab fix the following error messages from checkpatch.pl ERROR: code indent should use tabs where possible WARNING: please, no spaces at the start of a line Signed-off-by: Anson Jacob --- drivers/staging/lustre/lustre/include/cl_object.h | 2 +- 1 file changed, 1 insertion(+),

[PATCH V7 1/5] rtc: max77686: fix checkpatch error

2016-02-09 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

[PATCH V6 2/6] rtc: max77686: fix checkpatch error

2016-02-09 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

[PATCH V4 2/6] rtc: max77686: fix checkpatch error

2016-02-06 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

[PATCH V3 1/5] rtc: max77686: fix checkpatch error

2016-02-03 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

[PATCH V2 1/5] rtc: max77686: fix checkpatch error

2016-02-03 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

Re: [PATCH 1/4] rtc: max77686: fix checkpatch error

2016-02-02 Thread Javier Martinez Canillas
Hello Laxman, On 02/02/2016 10:16 AM, Laxman Dewangan wrote: Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan --- Reviewed-b

Re: [PATCH 1/4] rtc: max77686: fix checkpatch error

2016-02-02 Thread Krzysztof Kozlowski
On 02.02.2016 22:16, Laxman Dewangan wrote: > Fix following check patch error in rtc-max77686 driver: > - Alignment should match open parenthesis. > - braces {} should be used on all arms of this statement. > - Prefer using the BIT macro > > Signed-off-by: Laxman Dewangan > --- > drivers/rtc/rtc

[PATCH 1/4] rtc: max77686: fix checkpatch error

2016-02-02 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan --- drivers/rtc/rtc-max77686.c | 25 + 1 file changed,

[PATCH v3 1/2] staging: comedi: fix checkpatch error

2015-05-25 Thread Geliang Tang
Fixed an error found by checkpatch.pl. ERROR: space required after that ',' (ctx:VxV) ./drivers/ni_mio_common.c:3764 Signed-off-by: Geliang Tang Reviewed-by: Ian Abbott --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re:[PATCH] staging: comedi: drivers: das16m1.c: checkpatch error fix

2015-05-07 Thread Jaime Arrocha
On 05/07/2015 09:27 AM, Jaime Arrocha wrote: -- Forwarded message -- From: Jaime Arrocha Date: Wed, May 6, 2015 at 4:08 PM Subject: [PATCH] staging: comedi: drivers: das16m1.c: checkpatch error fix To: g...@kroah.com Cc: abbo...@mev.co.uk, hswee...@visionengravers.com, de

[PATCH] staging: comedi: drivers: das16m1.c: checkpatch error fix

2015-05-06 Thread Jaime Arrocha
Errors found by checkpatch.pl. ERROR: code indent should use tabs where possible /drivers/staging/comedi/drivers/das16m1.c:49 /drivers/staging/comedi/drivers/das16m1.c:50 Signed-off-by: Jaime Arrocha --- drivers/staging/comedi/drivers/das16m1.c |4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH v3] adm8211: fix checkpatch error for trailing statements on next line

2015-05-05 Thread Okash Khawaja
On Mon, May 04, 2015 at 11:44:58PM -0700, Joe Perches wrote: > On Tue, 2015-05-05 at 07:01 +0100, Okash Khawaja wrote: > > This patch fixes the checkpatch.pl error: > > Please fix the space/tab use too. > > Your email client seems to have converted all the tabs > to spaces. > > default should us

[PATCH] adm8211: fix checkpatch error for trailing statements on next line

2015-05-05 Thread Okash Khawaja
This patch fixes these checkpatch.pl errors: ERROR: trailing statements should be on next line ERROR: switch and case should be at the same indent More specifically, the fix has been applied to the five occurances of the errors listed below. ERROR: trailing statements should be on next line #11

Re: [PATCH v3] adm8211: fix checkpatch error for trailing statements on next line

2015-05-04 Thread Joe Perches
On Tue, 2015-05-05 at 07:01 +0100, Okash Khawaja wrote: > This patch fixes the checkpatch.pl error: Please fix the space/tab use too. Your email client seems to have converted all the tabs to spaces. default should use the same indent as the case statements > diff --git a/drivers/net/wireless/

[PATCH v3] adm8211: fix checkpatch error for trailing statements on next line

2015-05-04 Thread Okash Khawaja
This patch fixes the checkpatch.pl error: ERROR: trailing statements should be on next line More specifically, the fix has been applied to the four occurances of the error listed below. ERROR: trailing statements should be on next line #1101: FILE: drivers/net/wireless/adm8211.c:1101: +

Re: [PATCH v2] adm8211: fix checkpatch error for trailing statements on next line

2015-05-04 Thread Kalle Valo
Okash Khawaja writes: > On Mon, May 04, 2015 at 03:42:04PM +0300, Kalle Valo wrote: >> Okash Khawaja writes: >> >> > This patch fixes the checkpatch.pl error: >> > >> > ERROR: trailing statements should be on next line >> > >> > More specifically, the fix has been applied to the four occurances

Re: [PATCH v2] adm8211: fix checkpatch error for trailing statements on next line

2015-05-04 Thread Okash Khawaja
On Mon, May 04, 2015 at 03:42:04PM +0300, Kalle Valo wrote: > Okash Khawaja writes: > > > This patch fixes the checkpatch.pl error: > > > > ERROR: trailing statements should be on next line > > > > More specifically, the fix has been applied to the four occurances of the > > error listed below.

Re: [PATCH] staging: adm8211: fix checkpatch error for trailing statements on next line

2015-05-04 Thread Kalle Valo
Okash Khawaja writes: > This patch fixes the checkpatch.pl error: > > ERROR: trailing statements should be on next line > > More specifically, the fix has been applied to the four occurances of the > error listed below. > > ERROR: trailing statements should be on next line > #1101: FILE: drivers

[PATCH] staging: adm8211: fix checkpatch error for trailing statements on next line

2015-05-03 Thread Okash Khawaja
This patch fixes the checkpatch.pl error: ERROR: trailing statements should be on next line More specifically, the fix has been applied to the four occurances of the error listed below. ERROR: trailing statements should be on next line #1101: FILE: drivers/net/wireless/adm8211.c:1101: +

[PATCH] stagging: media: tlg2300: Fixes Checkpatch error

2015-02-02 Thread Pushpendra Singh
Error: Missing a blank line after declarations Singed-off-by: pushpendra.si...@smartplayin.com to: pramod.gu...@smartplayin.com cc: kiran.pad...@smartplayin.com cc: chowdegowda...@smartplayin.com --- drivers/staging/media/tlg2300/pd-alsa.c | 2 ++ 1 file changed,

Re: [PATCH 2/3] comedi: checkpatch error/warning: spaces

2014-12-30 Thread Ian Abbott
On 28/12/14 18:56, Andreas Siegling wrote: This patch will fix the following checkpatch errors/warnings in drivers/staging/comedi/ which are brought by wrong spacing: ERROR: trailing whitespace ERROR: space prohibited before that ',' (ctx:WxW) WARNING: please, no space bef

Re: [PATCH 1/3] comedi: checkpatch error: tabs instead of spaces

2014-12-30 Thread Ian Abbott
On 28/12/14 18:56, Andreas Siegling wrote: This patch fixes all occurrences of 8 whitespaces instead of a tab. It will remove the 8 whitespaces and replace them with a tab, thereby the checkpatch-error: ERROR: code indent should use tabs where possible is removed from all files

[PATCH 2/3] comedi: checkpatch error/warning: spaces

2014-12-28 Thread Andreas Siegling
This patch will fix the following checkpatch errors/warnings in drivers/staging/comedi/ which are brought by wrong spacing: ERROR: trailing whitespace ERROR: space prohibited before that ',' (ctx:WxW) WARNING: please, no space before tabs Signed-off-by: Andreas Siegling Si

[PATCH 1/3] comedi: checkpatch error: tabs instead of spaces

2014-12-28 Thread Andreas Siegling
This patch fixes all occurrences of 8 whitespaces instead of a tab. It will remove the 8 whitespaces and replace them with a tab, thereby the checkpatch-error: ERROR: code indent should use tabs where possible is removed from all files in drivers/staging/comedi/ It also brings some

Re: [PATCH] Drivers:staging:rtl8723au:core: Fixed checkpatch error

2014-11-28 Thread Jes Sorensen
Athira Lekshmi writes: > Fixed the checkpatch error: > ERROR: spaces required around that '>' > > Signed-off-by: Athira Lekshmi > --- > drivers/staging/rtl8723au/core/rtw_cmd.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > dif

[PATCH] Drivers:staging:rtl8723au:core: Fixed checkpatch error

2014-11-28 Thread Athira Lekshmi
Fixed the checkpatch error: ERROR: spaces required around that '>' Signed-off-by: Athira Lekshmi --- drivers/staging/rtl8723au/core/rtw_cmd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/r

Re: [PATCH] staging:rtl8723au: core: fix checkpatch error: that open brace { should be on the previous line

2014-11-26 Thread Greg KH
On Tue, Nov 11, 2014 at 03:28:57PM +0530, Sanjeev Sharma wrote: > This is a patch to the rtw_cmd.c file that fixes following > Error. > > ERROR: that open brace { should be on the previous line This patch does much more than that :( -- To unsubscribe from this list: send the line "unsubscribe lin

[PATCH] staging:rtl8723au: core: fix checkpatch error: that open brace { should be on the previous line

2014-11-11 Thread Sanjeev Sharma
This is a patch to the rtw_cmd.c file that fixes following Error. ERROR: that open brace { should be on the previous line Signed-off-by: Sanjeev Sharma --- drivers/staging/rtl8723au/core/rtw_cmd.c | 79 +++- 1 file changed, 38 insertions(+), 41 deletions(-) diff --g

Re: [PATCH v2] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 09:55:58AM -0500, Morgan Phillips wrote: > Change array initialization format to fix style error. > from: > u8 foo[] = > {1, 2, 3}; > to: checkpatch is giving a warning here , but looks like a false positive. thanks sudip >

[PATCH v2] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Morgan Phillips
Change array initialization format to fix style error. from: u8 foo[] = {1, 2, 3}; to: u8 foo[] = { 1, 2, 3 }; Signed-off-by: Morgan Phillips --- Changes since v2: * adds a more ver

Re: [PATCH] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 08:51:18AM -0500, Morgan Reece wrote: > Hi Sudip, > > I searched through the logs for examples of messages where people had just > fixed checkpatch errors. I found lots like this, so went the format, ex: > > commit 588a12d789e1a9b8193465c09f32024c0d43a849 > Author: Filipe

Re: [PATCH] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Sudip Mukherjee
On Mon, Sep 08, 2014 at 07:32:22AM -0500, Morgan Phillips wrote: > Signed-off-by: Morgan Phillips no commit message ? thanks sudip > --- > drivers/media/usb/gspca/sn9c20x.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/media/usb/gspca/sn9c20x.c >

[PATCH] [media]: sn9c20x.c: fix checkpatch error: that open brace { should be on the previous line

2014-09-08 Thread Morgan Phillips
Signed-off-by: Morgan Phillips --- drivers/media/usb/gspca/sn9c20x.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/gspca/sn9c20x.c b/drivers/media/usb/gspca/sn9c20x.c index 41a9a89..95467f0 100644 --- a/drivers/media/usb/gspca/sn9c20x.c +++ b/dr

[PATCH] staging: Remove checkpatch error from ion.c

2014-07-23 Thread Nicholas Krause
This patch removes a checkpatch error by adding a line below the definitions of the character array buf and the pointer path. Signed-off-by: Nicholas Krause --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers

[PATCH 06/19] mfd: dm355evm_msp: Fix checkpatch error: insert space after ','

2014-07-22 Thread Lee Jones
This is part of an effort to clean-up the MFD subsystem. ERROR: space required after that ',' (ctx:VxV) +#define MSP_GPIO(bit,reg) ((DM355EVM_MSP_ ## reg) << 3 | (bit)) ^ total: 1 errors, 0 warnings, 437 lines checked Signed-off-by: Lee Jones --- drivers/mfd/dm355evm_

[PATCH 4/4] alpha: Remove checkpatch error in mkk.b

2014-07-15 Thread Nicholas Krause
This removes a error I get when I run checkpatch on this file, relating to the asterisk for declaritations needing to be next to the name of the variable/structure and not the type of variable/structure. --- arch/alpha/boot/tools/mkbb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

Re: [PATCH] staging: rtl8192u: fix checkpatch error/warning in r819xU_phy.c

2014-07-08 Thread Dan Carpenter
parate patches ? patch 1: remove useless returns patch 2: too long lines patch 3: fix sleep ranges etc. > > > /* TODO: we should not delay such a long time. Ask for help from > > SD3 */ > > > - usleep_range(1000, 1000); > > > + usleep_range(1000, 2

Re: [PATCH] staging: rtl8192u: fix checkpatch error/warning in r819xU_phy.c

2014-07-08 Thread Dan Carpenter
On Tue, Jul 08, 2014 at 11:34:18AM +0530, sanjeev sharma wrote: > From: sanjeevs1 ^ No. > > This is a patch to the r819xU_phy.c file that fixes up all the Error/Warning > found by the checkpatch.pl tool Split it into one thing per patch. > > Signed-off-by: Sanjeev Sharma > -

[PATCH] staging: rtl8192u: fix checkpatch error/warning in r819xU_phy.c

2014-07-07 Thread sanjeev sharma
From: sanjeevs1 This is a patch to the r819xU_phy.c file that fixes up all the Error/Warning found by the checkpatch.pl tool Signed-off-by: Sanjeev Sharma --- drivers/staging/rtl8192u/r819xU_phy.c | 76 +-- 1 file changed, 36 insertions(+), 40 deletions(-) dif

[PATCH v5 24/49] media: davinci; vpif_display: fix checkpatch error

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch fixes following checkpatch warning, and alongside renames the DAVINCIHD_DISPLAY_H to VPIF_DISPLAY_H. WARNING: Unnecessary space before function pointer arguments Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.h |8

[char-misc-next 4/5] mei: amthif: fix checkpatch error

2014-03-16 Thread Tomas Winkler
ERROR: else should follow close brace '}' + } + else { Signed-off-by: Tomas Winkler --- drivers/misc/mei/amthif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index 2052609..b8deb34 100644 --- a/drivers/mi

[PATCH 1/4] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-06 Thread Daeseok Youn
checkpatch.pl error in linux.c: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/

Re: [PATCH 4/7 v3] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-06 Thread DaeSeok Youn
Sorry for confusing you. Actually 1-3 patches already merged to staging-next branch. And then I had a request resending the rest of the series. So I just sent 4-7 again. Sorry, I should rebase these patches and make a series newly. I will send patches again properly. I think this patches need to

Re: [PATCH 4/7 v3] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-06 Thread Greg KH
On Wed, Mar 05, 2014 at 10:21:01AM +0900, Daeseok Youn wrote: > > checkpatch.pl error in linux.c: > ERROR: do not use assignment in if condition > > Signed-off-by: Daeseok Youn > --- > drivers/staging/cxt1e1/linux.c | 31 +++ > 1 files changed, 19 insertions(+), 1

[PATCH 4/7 v3] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread Daeseok Youn
checkpatch.pl error in linux.c: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/

[PATCH 4/7 v2] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread Daeseok Youn
checkpatch.pl error in linux.c: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/

Re: [PATCH 4/7] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread DaeSeok Youn
Yes, it need to add brace in inner loop. I will send again. Thanks for review. Daeseok Youn 2014-03-04 18:04 GMT+09:00, Dan Carpenter : > On Tue, Mar 04, 2014 at 11:09:39AM +0900, Daeseok Youn wrote: >> @@ -1174,7 +1179,8 @@ cleanup_hdlc(void) >> ci = (ci_t *)(netdev_priv(hi-

Re: [PATCH 4/7] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread Dan Carpenter
On Tue, Mar 04, 2014 at 11:09:39AM +0900, Daeseok Youn wrote: > @@ -1174,7 +1179,8 @@ cleanup_hdlc(void) > ci = (ci_t *)(netdev_priv(hi->ndev)); > for (j = 0; j < ci->max_port; j++) > for (k = 0; k < MUSYCC_NCHANS; k++) > -

[PATCH 4/7] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-03 Thread Daeseok Youn
checkpatch.pl error in linux.c: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 28 +--- 1 files changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt

[PATCH 4/5 v2] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-02 Thread Daeseok Youn
checkpatch.pl error: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/hwprobe.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c index

[PATCH 4/5] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-02-27 Thread Daeseok Youn
checkpatch.pl error: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/hwprobe.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c index

[PATCH 2/2] staging: bcm: fix checkpatch error 'assignment in if condition'

2014-02-27 Thread Daeseok Youn
clean up checkpatch errors and bClassificationSucceed is set to "TRUE" proper location. If protocal is not TCP or UDP, when it checks protocal, bClassificationSucceed must be set to TRUE. Also the end of do-while(0) loop, bClassificationSucceed is set to TRUE. Signed-off-by: Daeseok Youn --- d

Re: [PATCH 2/3] Staging rtl8192e: Fixing checkpatch error in rtllib_debug.h

2014-01-06 Thread Dan Carpenter
On Sun, Jan 05, 2014 at 01:25:36PM +0100, Andreas Frembs wrote: > In rtllib_debug.h we fixed the following checkpatch error: > ERROR: Macros with complex values should be enclosed in parenthesis > > We fixed this with a do {} while (0), because otherwise the compiler

[PATCH 1/3] Staging rtl8192e: Fixing checkpatch error in rtllib_crypt_tkip.c

2014-01-05 Thread Andreas Frembs
In rtllib_crypt_tkip.c we fixed the following checkpatch error: ERROR: space required after that ',' Signed-off-by: Andreas Frembs Signed-off-by: Matthias Schoepe --- drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 2/3] Staging rtl8192e: Fixing checkpatch error in rtllib_debug.h

2014-01-05 Thread Andreas Frembs
In rtllib_debug.h we fixed the following checkpatch error: ERROR: Macros with complex values should be enclosed in parenthesis We fixed this with a do {} while (0), because otherwise the compiler complained. Signed-off-by: Andreas Frembs Signed-off-by: Matthias Schoepe --- drivers

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 11:10, Joe Perches wrote: > On Tue, 2013-07-30 at 11:04 +0800, Li Zefan wrote: >> On 2013/7/30 10:36, Joe Perches wrote: >>> On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: On 2013/7/30 9:58, Joe Perches wrote: > So what are these TRACE_ defines that need > excluding fr

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Tue, 2013-07-30 at 11:04 +0800, Li Zefan wrote: > On 2013/7/30 10:36, Joe Perches wrote: > > On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: > >> On 2013/7/30 9:58, Joe Perches wrote: > >>> So what are these TRACE_ defines that need > >>> excluding from the "complex values" check? > >>> > >>>

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 10:36, Joe Perches wrote: > On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: >> On 2013/7/30 9:58, Joe Perches wrote: >>> So what are these TRACE_ defines that need >>> excluding from the "complex values" check? >>> >>> Anything other than >>> >>> TRACE_SYSTEM >>> TRACE_INCLUDE_FILE

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: > On 2013/7/30 9:58, Joe Perches wrote: > > So what are these TRACE_ defines that need > > excluding from the "complex values" check? > > > > Anything other than > > > > TRACE_SYSTEM > > TRACE_INCLUDE_FILE > > TRACE_INCLUDE_PATH > > > > ? > >

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 9:58, Joe Perches wrote: > On Tue, 2013-07-30 at 09:30 +0800, Li Zefan wrote: >> On 2013/7/30 3:52, Sarah Sharp wrote: >>> Hi Andy and Joe, >>> >>> Checkpatch is complaining when code adds new trace events macros: >>> >>> sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Tue, 2013-07-30 at 09:30 +0800, Li Zefan wrote: > On 2013/7/30 3:52, Sarah Sharp wrote: > > Hi Andy and Joe, > > > > Checkpatch is complaining when code adds new trace events macros: > > > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/.to-apply > > Applying: xhci: add trace

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 3:52, Sarah Sharp wrote: > Hi Andy and Joe, > > Checkpatch is complaining when code adds new trace events macros: > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/.to-apply > Applying: xhci: add traces for debug messages in xhci_address_device() > ERROR: Macros wit

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Mon, 2013-07-29 at 14:23 -0700, Sarah Sharp wrote: > On Mon, Jul 29, 2013 at 01:02:44PM -0700, Joe Perches wrote: > > On Mon, 2013-07-29 at 12:52 -0700, Sarah Sharp wrote: [] > > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/.to-apply > > > Applying: xhci: add traces for debu

Re: Checkpatch error on trace events macros

2013-07-29 Thread Sarah Sharp
On Mon, Jul 29, 2013 at 01:02:44PM -0700, Joe Perches wrote: > On Mon, 2013-07-29 at 12:52 -0700, Sarah Sharp wrote: > > Hi Andy and Joe, > > Hi Sarah. > > > Checkpatch is complaining when code adds new trace events macros: > > > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Mon, 2013-07-29 at 12:52 -0700, Sarah Sharp wrote: > Hi Andy and Joe, Hi Sarah. > Checkpatch is complaining when code adds new trace events macros: > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/.to-apply > Applying: xhci: add traces for debug messages in xhci_address_dev

  1   2   >