[PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Joe Perches
A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't changed, and git commits it too. You must have the necessary develo

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Joe Perches
x/lnet/api.h has no obvious style problems > and is ready for submission. [] > Is that expected? No, I haven't seen that. Can you tell me what git tree you're working on? Also, can you use the scripts/checkpatch from -next tag next-20140711 My system has: $ perl --version This is

RE: [PATCH 4/8] Drivers: scsi: storvsc: Filter WRITE_SAME_16

2014-07-11 Thread KY Srinivasan
> -Original Message- > From: Martin K. Petersen [mailto:martin.peter...@oracle.com] > Sent: Friday, July 11, 2014 5:54 AM > To: h...@infradead.org > Cc: James Bottomley; KY Srinivasan; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; a...@canonical.com; sta...@vger.kernel.org

RE: [PATCH 4/8] Drivers: scsi: storvsc: Filter WRITE_SAME_16

2014-07-11 Thread KY Srinivasan
> -Original Message- > From: h...@infradead.org [mailto:h...@infradead.org] > Sent: Thursday, July 10, 2014 11:32 PM > To: James Bottomley > Cc: KY Srinivasan; linux-ker...@vger.kernel.org; m...@mkp.net; > h...@infradead.org; de...@linuxdriverproject.org; a...@canonical.com; > sta...@vger

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:40:16PM -0700, Joe Perches wrote: > On Fri, 2014-07-11 at 18:34 -0700, Greg KH wrote: > > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > > A simple script to run checkpatch --fix for various types of > > > of cleanups. > > > > > > This script is useful

[PATCH] checkpatch: Remove unnecessary + after {8,8}

2014-07-11 Thread Joe Perches
There's a useless "+" use that needs to be removed as perl 5.20 emits a "Useless use of greediness modifier '+'" message each time it's hit. Reported-by: Greg KH Signed-off-by: Joe Perches --- On Fri, 2014-07-11 at 19:05 -0700, Greg KH wrote: > Ok, with linux-next I get the same thing: Thanks G

Re: [PATCH] checkpatch: Remove unnecessary + after {8,8}

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 07:09:30PM -0700, Joe Perches wrote: > There's a useless "+" use that needs to be removed as perl 5.20 > emits a "Useless use of greediness modifier '+'" message each > time it's hit. > > Reported-by: Greg KH > Signed-off-by: Joe Perches > --- > On Fri, 2014-07-11 at 19:0

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Joe Perches
On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > A simple script to run checkpatch --fix for various types of > > of cleanups. [] > Anyway, try running this script on > drivers/staging/lustre/lnet/lnet/acceptor.c to see how this bu

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:57:24PM -0700, Joe Perches wrote: > On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: > > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > > A simple script to run checkpatch --fix for various types of > > > of cleanups. > [] > > Anyway, try running this s

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Joe Perches
On Fri, 2014-07-11 at 18:43 -0700, Greg KH wrote: > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > A simple script to run checkpatch --fix for various types of > > of cleanups. [] > If I pick drivers/staging/lustre/include/linux/lnet/types.h, then I get: > > staging: lnet:

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
eady for submission. > > [] > > > Is that expected? > > > > No, I haven't seen that. > > > > Can you tell me what git tree you're working on? > > My staging-next branch of staging.git on git.kernel.org > > > Also, can you u

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Joe Perches
On Fri, 2014-07-11 at 18:34 -0700, Greg KH wrote: > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > A simple script to run checkpatch --fix for various types of > > of cleanups. > > > > This script is useful primarily for staging. > > > > This reformats code to a more CodingStyle

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
what git tree you're working on? My staging-next branch of staging.git on git.kernel.org > Also, can you use the scripts/checkpatch from -next > tag next-20140711 that will take a bit to checkout, I'll do that afterward. > My system has: > > $ perl --version > > This i

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > A simple script to run checkpatch --fix for various types of > of cleanups. > > This script is useful primarily for staging. > > This reformats code to a more CodingStyle conforming style, > compiles it, verifies that the object code

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > A simple script to run checkpatch --fix for various types of > of cleanups. > > This script is useful primarily for staging. > > This reformats code to a more CodingStyle conforming style, > compiles it, verifies that the object code

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > A simple script to run checkpatch --fix for various types of > of cleanups. > > This script is useful primarily for staging. > > This reformats code to a more CodingStyle conforming style, > compiles it, verifies that the object code

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > A simple script to run checkpatch --fix for various types of > of cleanups. > > This script is useful primarily for staging. > > This reformats code to a more CodingStyle conforming style, > compiles it, verifies that the object code

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 03:39:48PM +0100, Ian Abbott wrote: > On 2014-07-11 15:38, Ian Abbott wrote: > >From: Andrey Utkin > > > >From: Andrey Utkin > > Dammit! Greg, do you want to sort that out or should I have another go? Heh, no worries, I can fix it up, thanks. greg k-h _

Re: [PATCH] staging: unisys: added virtpci info entry

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 07:11:45PM -0400, Erik Arfvidson wrote: > This patch adds the virtpci debugfs directory and the info entry > inside of it. > > Signed-off-by: Erik Arfvidson > Signed-off-by: Benjamin Romer > --- > v3: Fixed formating and comments. Also added debufs_remove_recursive() and

[PATCH] staging: unisys: added virtpci info entry

2014-07-11 Thread Erik Arfvidson
This patch adds the virtpci debugfs directory and the info entry inside of it. Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v3: Fixed formating and comments. Also added debufs_remove_recursive() and simple simple_read_from_buffer() v2: fixed comments and applied Dan Carpen

RE: [PATCH 7/8] drivers: scsi: storvsc: Set srb_flags in all cases

2014-07-11 Thread KY Srinivasan
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Thursday, July 10, 2014 3:19 AM > To: KY Srinivasan > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > oher...@suse.com; jbottom...@parallels.com; jasow...@redhat.com; > a...@canonical.com;

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 08:54:01PM +0300, Andrey Utkin wrote: > 2014-07-11 17:38 GMT+03:00 Ian Abbott : > > Signed-off-by: Andrey Utkin > > I think it's incorrect that you have instantly placed my signoff > statement on this new patch. Ian gave you credit but also wrote in the changelog that he

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Andrey Utkin
2014-07-11 17:38 GMT+03:00 Ian Abbott : > Signed-off-by: Andrey Utkin I think it's incorrect that you have instantly placed my signoff statement on this new patch. Anyway, thanks for your work on the issue. -- Andrey Utkin ___ devel mailing list de...

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 06:06:36PM +0100, Ian Abbott wrote: > On 2014-07-11 16:34, Dan Carpenter wrote: > >On Fri, Jul 11, 2014 at 03:38:30PM +0100, Ian Abbott wrote: > >>From: Andrey Utkin > >> > >>From: Andrey Utkin > >> > >>The issue was discovered with static analysis and has two instances in

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Ian Abbott
On 2014-07-11 16:34, Dan Carpenter wrote: On Fri, Jul 11, 2014 at 03:38:30PM +0100, Ian Abbott wrote: From: Andrey Utkin From: Andrey Utkin The issue was discovered with static analysis and has two instances in this file. The code looks like this if (x < 65536000) { ... } else if (x

RE: [BISECTED][REGRESSION] Loading Hyper-V network drivers is racy in 3.14+ on Hyper-V 2012 R2

2014-07-11 Thread Haiyang Zhang
> -Original Message- > From: Sitsofe Wheeler [mailto:sits...@gmail.com] > Sent: Friday, July 11, 2014 1:53 AM > To: Haiyang Zhang > Cc: KY Srinivasan; David S. Miller; de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org; net...@vger.kernel.org > Subject: Re: [BISECTED][REGRESSIO

Re: [PATCH 9/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digisetcustombaud()

2014-07-11 Thread DaeSeok Youn
2014-07-12 0:37 GMT+09:00, Dan Carpenter : > On Sat, Jul 12, 2014 at 12:23:16AM +0900, DaeSeok Youn wrote: >> Can I modify the MAINTAINERS file for adding myself? > > Yes. Just send a patch to add yourself. OK. I will. Thanks. Regards, Daeseok Youn. > > git log -p MAINTAINERS > > regards, > dan

Re: [PATCH 9/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digisetcustombaud()

2014-07-11 Thread Dan Carpenter
On Sat, Jul 12, 2014 at 12:23:16AM +0900, DaeSeok Youn wrote: > Can I modify the MAINTAINERS file for adding myself? Yes. Just send a patch to add yourself. git log -p MAINTAINERS regards, dan carpenter ___ devel mailing list de...@linuxdriverproject

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 03:38:30PM +0100, Ian Abbott wrote: > From: Andrey Utkin > > From: Andrey Utkin > > The issue was discovered with static analysis and has two instances in > this file. The code looks like this > if (x < 65536000) { > ... > } else if (x < 65536) { > ... >

Re: [PATCH 9/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digisetcustombaud()

2014-07-11 Thread DaeSeok Youn
Hi, Dan 2014-07-11 22:20 GMT+09:00, Dan Carpenter : > Looks good to me. You should be CC'ing Mark as well. He's in > MAINTAINERS now. I'd added Mark to cc list. All of maintainers including open mailing lists from get_maintainer.pl were added in my patches. :-) > > I wish the two of you would C

Re: [PATCH v3 04/12] staging: ced1401: ced_ioc.c fix checkpatch warning

2014-07-11 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 04:44:32PM +0200, Luca Ellero wrote: > Il 11/07/2014 16:17, Dan Carpenter ha scritto: > >You have a lot of patches with the exact same subject. Use different > >subjects like: > > > >[patch] staging: ced1401: ced_ioc.c: change spaces to tabs > > > >or whatever. > > > >regar

[PATCH v4 08/12] staging: ced1401: usb1401.c: add blank line after declarations

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "Missing a blank line after declarations" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index

[PATCH v4 09/12] staging: ced1401: usb1401.c: fix code indent

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "suspect code indent for conditional statements" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401

[PATCH v4 03/12] staging: ced1401: ced_ioc.c: add blank line after declarations

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "Missing a blank line after declarations" in file ced_ioc.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_

[PATCH v4 12/12] staging: ced1401: usb1401.c: join quoted strings

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "quoted string split across lines" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced140

[PATCH v4 04/12] staging: ced1401: ced_ioc.c: remove space before tabs

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "please, no space before tabs" in file ced_ioc.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c index 397df43..a4

[PATCH v4 00/12] staging: ced1401: rename camel case function and vars

2014-07-11 Thread Luca Ellero
This patchset renames all camel case and Hungarian notation names in ced1401. It fixes as well some checkpatch warnings and errors. I've not modified any logic in the driver. Please note that I've tryed to not add any checkpatch warning/error. If some patches give warnings or errors they were prese

[PATCH v4 10/12] staging: ced1401: usb1401.c rename camel case variable

2014-07-11 Thread Luca Ellero
Rename camel case variable dwCount in function ced_writechar_callback Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index

[PATCH v4 11/12] staging: ced1401: usb1401.c: split long lines

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "line over 80 characters" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 168 +++-- 1 file changed, 105 insertions(+), 63 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging

[PATCH v4 05/12] staging: ced1401: ced_ioc.c: remove else branch in ced_set_event

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "else is not generally useful after a break or return" in file ced_ioc.c, function ced_set_event() Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/

[PATCH v4 01/12] staging: ced1401: usb1401.c: change spaces to tabs

2014-07-11 Thread Luca Ellero
Fix checkpatch errors "code indent should use tabs where possible" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb140

[PATCH v4 07/12] staging: ced1401: ced_ioc.c : split long lines

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "line over 80 characters" in file ced_ioc.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 66 +++-- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/

[PATCH v4 06/12] staging: ced1401: ced_ioc.c: remove else branch in ced_wait_event

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "else is not generally useful after a break or return" in file ced_ioc.c, function ced_wait_event() Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 65 +++-- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git

[PATCH v4 02/12] staging: ced1401: usb1401.h: fix "foo * bar"

2014-07-11 Thread Luca Ellero
Fix checkpatch error "foo * bar" should be "foo *bar" in file usb1401.h Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ced1401/usb1401.h b/drivers/staging/ced1401/usb1401.h index 8e800c3..da

RE: [PATCH 6/8] Drivers: scsi: storvsc: Implement an abort handler

2014-07-11 Thread KY Srinivasan
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Friday, July 11, 2014 2:53 AM > To: KY Srinivasan; Christoph Hellwig > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > oher...@suse.com; jbottom...@parallels.com; jasow...@redhat.com; > a...@canon

Re: [PATCH v3 04/12] staging: ced1401: ced_ioc.c fix checkpatch warning

2014-07-11 Thread Luca Ellero
Il 11/07/2014 16:17, Dan Carpenter ha scritto: You have a lot of patches with the exact same subject. Use different subjects like: [patch] staging: ced1401: ced_ioc.c: change spaces to tabs or whatever. regards, dan carpeneter Hi Dan, OK, I'll resend regards Luca Ellero _

Re: [PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Ian Abbott
On 2014-07-11 15:38, Ian Abbott wrote: From: Andrey Utkin From: Andrey Utkin Dammit! Greg, do you want to sort that out or should I have another go? -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- _

[PATCH v3] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Ian Abbott
From: Andrey Utkin From: Andrey Utkin The issue was discovered with static analysis and has two instances in this file. The code looks like this if (x < 65536000) { ... } else if (x < 65536) { ... } else if (x <= 0x /* 655360 */) { ... } else if (x <= 0xf

Re: [PATCH v2] From: Andrey Utkin

2014-07-11 Thread Ian Abbott
On 2014-07-11 15:32, Ian Abbott wrote: From: Andrey Utkin drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition Sorry, I messed up the subject line. Let me try that again! -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 7

[PATCH v2] From: Andrey Utkin

2014-07-11 Thread Ian Abbott
From: Andrey Utkin drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition The issue was discovered with static analysis and has two instances in this file. The code looks like this if (x < 65536000) { ... } else if (x < 65536) { ... } else if (x <= 0xfff

Re: [PATCH v3 04/12] staging: ced1401: ced_ioc.c fix checkpatch warning

2014-07-11 Thread Dan Carpenter
You have a lot of patches with the exact same subject. Use different subjects like: [patch] staging: ced1401: ced_ioc.c: change spaces to tabs or whatever. regards, dan carpeneter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.l

Re: [PATCH] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Bernd Petrovitsch
Hi! On Fre, 2014-07-11 at 15:30 +0300, Andrey Utkin wrote: [...] > Could you please substantiate this? I see that convert_arg has type > "unsigned int" which may be 8 bytes on 64-bit platform. I haven't At least in the x86_64 world, "unsigned int" has 32bit. TTBOMK, it is similar on all other 64b

Re: [PATCH 2/2] staging: silicom: function return fixes

2014-07-11 Thread Dan Carpenter
Some of these functions aren't called and can just be deleted. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 2/2] staging: unisys: added virtpci info entry

2014-07-11 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 08:00:57AM -0500, Romer, Benjamin M wrote: > On Thu, 2014-07-10 at 07:51 -0700, Greg KH wrote: > > On Thu, Jul 10, 2014 at 10:34:14AM -0400, Erik Arfvidson wrote: > > > This patch adds the virtpci debugfs directory and the info entry > > > inside of it. > > > > > > Signed-o

Re: [PATCH 9/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digisetcustombaud()

2014-07-11 Thread Dan Carpenter
Looks good to me. You should be CC'ing Mark as well. He's in MAINTAINERS now. I wish the two of you would CC each other and review each other's work. Daeseok, add yourself to the MAINTAINERS file for this driver as well so everyone CC's you on their dgap patches. You're doing good work. regar

Re: [PATCH] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 03:30:15PM +0300, Andrey Utkin wrote: > 2014-07-11 15:01 GMT+03:00 Ian Abbott : > > On 2014-07-11 11:13, Andrey Utkin wrote: > >> > >> The issue was discovered with static analysis and has two instances in > >> this file. The code looks like this > >> if (x < 65536000) { > >

Re: [PATCH 2/2] staging: unisys: added virtpci info entry

2014-07-11 Thread Romer, Benjamin M
On Thu, 2014-07-10 at 07:51 -0700, Greg KH wrote: > On Thu, Jul 10, 2014 at 10:34:14AM -0400, Erik Arfvidson wrote: > > This patch adds the virtpci debugfs directory and the info entry > > inside of it. > > > > Signed-off-by: Erik Arfvidson > > Signed-off-by: Benjamin Romer > > 2/2? Where is p

Re: [PATCH 4/8] Drivers: scsi: storvsc: Filter WRITE_SAME_16

2014-07-11 Thread Martin K. Petersen
> "hch" == hch@infradead org writes: (Back from vacation: Bear with me while I'm catching up on two weeks of linux-scsi stuff...) hch> I think the problem is a differnet one. If we have the logical hch> provisioning EVPD it configures what method to use, but if we don't hch> have one we sim

Re: [PATCH] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Andrey Utkin
2014-07-11 15:01 GMT+03:00 Ian Abbott : > On 2014-07-11 11:13, Andrey Utkin wrote: >> >> The issue was discovered with static analysis and has two instances in >> this file. The code looks like this >> if (x < 65536000) { >> ... >> } else if (x < 65536) { >> ... >> } else if (x

Re: [PATCH] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Ian Abbott
On 2014-07-11 11:13, Andrey Utkin wrote: The issue was discovered with static analysis and has two instances in this file. The code looks like this if (x < 65536000) { ... } else if (x < 65536) { ... } else if (x <= 0x /* 655360 */) { ... } else if (x <= 0x

[PATCH 8/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digigetcustombaud()

2014-07-11 Thread Daeseok Youn
Null checks in dgap_tty_digigetcustombaud() are already done by dgap_tty_ioctl() and change "tty" as a paramter of this function to "ch" and "un". Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c | 23 +-- 1 files changed, 5 insertions(+), 18 deletions(-) diff -

[PATCH 9/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digisetcustombaud()

2014-07-11 Thread Daeseok Youn
Null checks in dgap_tty_digisetcustombaud() are already done by dgap_tty_ioctl() and change "tty" as a paramter of this function to "ch", "bd and "un". Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c | 29 + 1 files changed, 5 insertions(+), 24 deletions

Re: [PATCH 0/4] staging: comedi: addi_apci_1564: small fixes in apci1564_auto_attach() and apci1564_detach()

2014-07-11 Thread Ian Abbott
On 2014-07-11 05:00, Chase Southwood wrote: This is a small patchset containing a handful of fixes to the ADDI-DATA APCI1564 driver that I would like to get out of the way before I forget to take care of them. From here, I will move to start fixing the digital input/timer/counters/watchdog funct

[PATCH v3 02/12] staging: ced1401: usb1401.h fix checkpatch errors

2014-07-11 Thread Luca Ellero
Fix checkpatch error "foo * bar" should be "foo *bar" in file usb1401.h Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ced1401/usb1401.h b/drivers/staging/ced1401/usb1401.h index 8e800c3..da

[PATCH 7/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digisetedelay()

2014-07-11 Thread Daeseok Youn
Null checks in dgap_tty_digisetedelay() are already done by dgap_tty_ioctl() and change "tty" as a paramter of this function to "ch", "bd and "un". Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c | 26 +- 1 files changed, 5 insertions(+), 21 deletions(-) di

[PATCH v3 05/12] staging: ced1401: ced_ioc.c fix checkpatch warning

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "else is not generally useful after a break or return" in file ced_ioc.c, function ced_set_event() Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/

[PATCH v3 12/12] staging: ced1401: usb1401.c fix checkpatch warnings

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "quoted string split across lines" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced140

[PATCH v3 10/12] staging: ced1401: rename camel case varialble

2014-07-11 Thread Luca Ellero
Rename camel case variable dwCount in function ced_writechar_callback Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index

[PATCH v3 08/12] staging: ced1401: usb1401.c fix checkpatch warnings

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "Missing a blank line after declarations" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index

[PATCH v3 03/12] staging: ced1401: ced_ioc.c fix checkpatch warnings

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "Missing a blank line after declarations" in file ced_ioc.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_

[PATCH v3 01/12] staging: ced1401: usb1401.c fix checkpatch errors

2014-07-11 Thread Luca Ellero
Fix checkpatch errors "code indent should use tabs where possible" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb140

[PATCH v3 11/12] staging: ced1401: usb1401.c fix checkpatch warnings

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "line over 80 characters" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c | 168 +++-- 1 file changed, 105 insertions(+), 63 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging

[PATCH 6/9] staging: dgap: removes redundant null check and change paramter for dgap_set_modem_info()

2014-07-11 Thread Daeseok Youn
Null checks in dgap_set_modem_info() are already done by dgap_tty_ioctl() and change "tty" as a paramter of this function to "ch", "bd" and "un". Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c | 36 1 files changed, 8 insertions(+), 28 deletion

[PATCH v3 00/12] staging: ced1401: rename camel case function and vars

2014-07-11 Thread Luca Ellero
This patchset renames all camel case and Hungarian notation names in ced1401. It fixes as well some checkpatch warnings and errors. I've not modified any logic in the driver. Please note that I've tryed to not add any checkpatch warning/error. If some patches give warnings or errors they were prese

[PATCH v3 07/12] staging: ced1401: ced_ioc.c fix checkpatch warnings

2014-07-11 Thread Luca Ellero
Fix checkpatch warnings "line over 80 characters" in file ced_ioc.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 66 +++-- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/

[PATCH v3 04/12] staging: ced1401: ced_ioc.c fix checkpatch warning

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "please, no space before tabs" in file ced_ioc.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c index 397df43..a4

[PATCH 5/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digigeta()

2014-07-11 Thread Daeseok Youn
Null checks in dgap_tty_digigeta() are already done by dgap_tty_ioctl() and change "tty" as a paramter of this function to "ch" and "un". Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c | 23 +-- 1 files changed, 5 insertions(+), 18 deletions(-) diff --git a/dr

[PATCH v3 09/12] staging: ced1401: usb1401.c fix checkpatch warning

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "suspect code indent for conditional statements" in file usb1401.c Signed-off-by: Luca Ellero --- drivers/staging/ced1401/usb1401.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401

[PATCH v3 06/12] staging: ced1401: ced_ioc.c fix checkpatch warning

2014-07-11 Thread Luca Ellero
Fix checkpatch warning "else is not generally useful after a break or return" in file ced_ioc.c, function ced_wait_event() Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 65 +++-- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git

[PATCH 4/9] staging: dgap: removes redundant null check and change paramter for dgap_tty_digiseta()

2014-07-11 Thread Daeseok Youn
Null checks in dgap_tty_digiseta() are already done by dgap_tty_ioctl() and change "tty" as a paramter of this function to "ch" and "bd" which are used in dgap_tty_digiseta(). Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c | 28 +--- 1 files changed, 5 inse

[PATCH 2/9] staging: dgap: remove unused variable in dgap_param()

2014-07-11 Thread Daeseok Youn
The "ts" is not used in dgap_param(). Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 79ea116..ad7b462 100644 --- a/drivers/staging/dgap/dgap.c +

[PATCH 3/9] staging: dgap: removes redundant null check and change the paramter for dgap_param()

2014-07-11 Thread Daeseok Youn
The dgap_param() has a paramter which is tty_struct and use variables in that struct. That variables which are "ch", "bd", "bs" and "un" do not need to check NULL so these statements are removed. And also change the parameter of this function because it is possible to let someone know what paramte

[PATCH 1/9] staging: dgap: redundant NULL and magic check in dgap_get_modem_info()

2014-07-11 Thread Daeseok Youn
The "ch" is already checking in caller. Signed-off-by: Daeseok Youn --- drivers/staging/dgap/dgap.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 9affc5b..79ea116 100644 --- a/drivers/staging/dgap/dgap.c

[PATCH] drivers/staging/comedi/drivers/ni_atmio16d.c: remove pointless condition

2014-07-11 Thread Andrey Utkin
The issue was discovered with static analysis and has two instances in this file. The code looks like this if (x < 65536000) { ... } else if (x < 65536) { ... } else if (x <= 0x /* 655360 */) { ... } else if (x <= 0x /* 6553600 */) { ... }

Re: [PATCH v2 59/60] staging: ced1401: ced_ioc.c fix checkpatch warnings

2014-07-11 Thread Luca Ellero
On 11/07/2014 00:12, Greg KH wrote: On Thu, Jul 10, 2014 at 11:04:15AM +0200, Luca Ellero wrote: Signed-off-by: Luca Ellero --- drivers/staging/ced1401/ced_ioc.c | 212 +++-- 1 file changed, 131 insertions(+), 81 deletions(-) That's a lot of changes all in

Re: [PATCH 6/8] Drivers: scsi: storvsc: Implement an abort handler

2014-07-11 Thread Christoph Hellwig
On Fri, Jul 11, 2014 at 11:52:55AM +0200, Hannes Reinecke wrote: > Something like this should be sufficient: Right. That plus a detailed comment explaining why it's there.. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriver

Re: [PATCH 6/8] Drivers: scsi: storvsc: Implement an abort handler

2014-07-11 Thread Hannes Reinecke
On 07/11/2014 12:26 AM, KY Srinivasan wrote: -Original Message- From: Christoph Hellwig [mailto:h...@infradead.org] Sent: Thursday, July 10, 2014 3:13 AM To: KY Srinivasan Cc: Christoph Hellwig; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; oher...@suse.com; jbottom...@pa

Re: [PATCH 2/2] staging: silicom: function return fixes

2014-07-11 Thread Davide Gianforte
On Wed, Jul 09, 2014 at 11:59:14, Greg Kroah-Hartman wrote: > On Tue, Jul 01, 2014 at 02:33:43PM +0200, Davide Gianforte wrote: > > + uint32_t ctrl_ext = BPCTL_READ_REG(pbpctl_dev, CTRL_EXT); > > > > - ctrl_ext = BPCTL_READ_REG(pbpctl_dev, CTRL_EXT); > > How about just removing the " = 0;" p