Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-08 Thread Greg KH
On Fri, Dec 09, 2016 at 12:05:53AM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Thursday, December 8, 2016 7:56 AM > > To: KY Srinivasan > > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > > o...@

Re: [PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-08 Thread Greg KH
On Fri, Dec 09, 2016 at 12:36:26AM +, Stuart Yoder wrote: > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Thursday, December 08, 2016 10:05 AM > > To: Stuart Yoder > > Cc: de...@driverdev.osuosl.org; ag...@suse.de; a...@arndb.de; > > linux-ker...

Re: [PATCH] Staging: ks7010: ks7010_sdio.h: Fixed coding style errors

2016-12-08 Thread Greg KH
On Fri, Dec 09, 2016 at 12:29:21PM +, Manoj Sawai wrote: > Errors - Complex macro not a parentheses and trailing whitespace > Also fixed other small checkpatch warnings and checks. If you ever say "also" in a changelog, that's a huge hint that the patch needs to be broken up into multiple patc

[PATCH] Staging: ks7010: ks7010_sdio.h: Fixed coding style errors

2016-12-08 Thread Manoj Sawai
Errors - Complex macro not a parentheses and trailing whitespace Also fixed other small checkpatch warnings and checks. Signed-off-by: Manoj Sawai --- drivers/staging/ks7010/ks7010_sdio.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_s

[PATCH] staging: i4l :fixed coding style

2016-12-08 Thread Tabrez khan
Remove braces {} for single if statement block. Signed-off-by: Tabrez khan --- drivers/staging/i4l/act2000/module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/i4l/act2000/module.c b/drivers/staging/i4l/act2000/module.c index 99c9c0a..fc14de4 100644 ---

RE: [PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-08 Thread Stuart Yoder
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, December 08, 2016 10:05 AM > To: Stuart Yoder > Cc: de...@driverdev.osuosl.org; ag...@suse.de; a...@arndb.de; > linux-ker...@vger.kernel.org; Leo Li > ; Catalin Horghidan ; Ioana > Ciornei > ; Laur

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-08 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, December 8, 2016 7:56 AM > To: KY Srinivasan > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com; lean

Re: [PATCH] staging: sm750fb: update license

2016-12-08 Thread Sudip Mukherjee
On Saturday 26 November 2016 11:02 AM, Greg Kroah-Hartman wrote: On Sat, Nov 26, 2016 at 09:07:42AM +, Sudip Mukherjee wrote: The driver was actually released with BSD license. It also gained GPL when it was submitted to be included in the kernel. Cc: Teddy Wang Cc: gzhou1 Signed-off-by:

[PATCH v2] staging: lustre: Fix variable type declaration after refactoring

2016-12-08 Thread Quentin Lambert
A recent clean-up declared och_flags as a int rather than fmode_t. This lead to the following sparse warning: drivers/staging/lustre/lustre/llite/file.c:106:30: warning: restricted fmode_t degrades to integer This patch fixes this issue. Fixes: 0a1200991234f7 ("staging: lustre: cleanup lustre_li

Re: [PATCH] staging: lustre: Fix variable type declaration after refactoring

2016-12-08 Thread Dan Carpenter
On Thu, Dec 08, 2016 at 05:07:59PM +0100, Quentin Lambert wrote: > A recent clean-up declared och_flags as a int rather than fmode_t. This > lead to the following sparse warning: > > drivers/staging/lustre/lustre/llite/file.c:106:30: warning: restricted > fmode_t degrades to integer > > This patc

Re: staging: comedi: usbduxsigma: Split a condition check in usbduxsigma_alloc_usb_buffers()

2016-12-08 Thread Ian Abbott
On 08/12/16 15:46, SF Markus Elfring wrote: * Reduce memory allocation sizes for two function calls. Is this implementation detail worth for further considerations? I assume you are referring to the allocation of devpriv->ai_urbs and devpriv->ao_urbs? Your patch does not reduce their sizes;

RE: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to hyperv.h

2016-12-08 Thread KY Srinivasan
driverproject.org; leann.ogasaw...@canonical.com > > > Subject: Re: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to > > > hyperv.h > > > > > > Hi Haiyang, > > > > > > [auto build test ERROR on next-20161208] > > > [also build t

[PATCH] staging: lustre: Fix variable type declaration after refactoring

2016-12-08 Thread Quentin Lambert
A recent clean-up declared och_flags as a int rather than fmode_t. This lead to the following sparse warning: drivers/staging/lustre/lustre/llite/file.c:106:30: warning: restricted fmode_t degrades to integer This patch fixes this issue. Fixes: 1200991234f7 ("staging: lustre: cleanup lustre_lib.

Re: [PATCH v3 1/9] staging: fsl-mc: move bus driver out of staging

2016-12-08 Thread Greg KH
On Wed, Dec 07, 2016 at 08:19:20PM +, Stuart Yoder wrote: > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Wednesday, December 07, 2016 9:53 AM > > To: Stuart Yoder > > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; > > ag...@suse.d

Re: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to hyperv.h

2016-12-08 Thread gre...@linuxfoundation.org
cal.com > > Subject: Re: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to > > hyperv.h > > > > Hi Haiyang, > > > > [auto build test ERROR on next-20161208] > > [also build test ERROR on v4.9-rc8] > > [cannot apply to linus/master linux/maste

Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-08 Thread Greg KH
On Thu, Dec 08, 2016 at 12:33:43AM -0800, k...@exchange.microsoft.com wrote: > From: Haiyang Zhang > > We currently use MAC address to match VF and synthetic NICs. Hyper-V > provides a serial number to both devices for this purpose. This patch > implements the matching based on VF serial numbers.

Re: staging: comedi: usbduxsigma: Split a condition check in usbduxsigma_alloc_usb_buffers()

2016-12-08 Thread SF Markus Elfring
>> * Reduce memory allocation sizes for two function calls. Is this implementation detail worth for further considerations? Regards, Markus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driv

Re: staging: comedi: usbdux: Split a condition check in usbdux_alloc_usb_buffers()

2016-12-08 Thread SF Markus Elfring
> Actually, the original code worked fine, I got my doubts when some memory allocations are attempted without checking the desired success immediately. > and these changes will result in an Oops if the allocations fail. I'll > explain why, > since it isn't obvious without some knowledge of the

RE: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to hyperv.h

2016-12-08 Thread KY Srinivasan
ng, > > [auto build test ERROR on next-20161208] > [also build test ERROR on v4.9-rc8] > [cannot apply to linus/master linux/master pci/next v4.9-rc8 v4.9-rc7 v4.9- > rc6] > [if your patch is applied to the wrong git tree, please drop us a note to help > improve the system] &g

Re: staging-COMEDI: Fine-tuning for three functions

2016-12-08 Thread SF Markus Elfring
> You do realize that I no longer take patches from you for any of the > subsystems I maintain, right? Not so far. It seems that you would like to present new information for our challenging collaboration. > This patch series is one reason why... I hope that corresponding disagreements around

[PATCH] staging: comedi: comedidev.h: Document usage of 'detach' handler

2016-12-08 Thread Ian Abbott
Document when the "detach" handler function pointed to by the `detach` member of a `struct comedi_driver` is called by the comedi core, and how the "attach" and "auto_attach" handlers can defer clean-up to it when they return an error to the comedi core. This is already mentioned as part of the do

Re: [PATCH 0/5] staging-COMEDI: Fine-tuning for three functions

2016-12-08 Thread Greg Kroah-Hartman
On Thu, Dec 08, 2016 at 12:30:20PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 8 Dec 2016 11:37:37 +0100 > > Some update suggestions were taken into account > from static source code analysis. > > Markus Elfring (5): > Combine four kcalloc() calls into one in serial2002

Re: [PATCH 4/5] staging: comedi: usbduxsigma: Split a condition check in usbduxsigma_alloc_usb_buffers()

2016-12-08 Thread Ian Abbott
On 08/12/16 11:37, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 8 Dec 2016 11:15:40 +0100 The functions "kcalloc" and "kzalloc" were called in four cases by the function "usbduxsigma_alloc_usb_buffers" without checking immediately if they succeded. This issue was detected by using t

Re: [PATCH 1/5] staging: comedi: serial2002: Combine four kcalloc() calls into one in serial2002_setup_subdevs()

2016-12-08 Thread Dan Carpenter
The original code was simpler. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 2/5] staging: comedi: usbdux: Split a condition check in usbdux_alloc_usb_buffers()

2016-12-08 Thread Ian Abbott
On 08/12/16 11:34, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 8 Dec 2016 10:01:54 +0100 The functions "kcalloc" and "kzalloc" were called in four cases by the function "usbdux_alloc_usb_buffers" without checking immediately if they succeded. This issue was detected by using the Co

Re: [PATCH 2/5] staging: comedi: usbdux: Split a condition check in usbdux_alloc_usb_buffers()

2016-12-08 Thread Dan Carpenter
On Thu, Dec 08, 2016 at 12:34:27PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 8 Dec 2016 10:01:54 +0100 > > The functions "kcalloc" and "kzalloc" were called in four cases by the > function "usbdux_alloc_usb_buffers" without checking immediately > if they succeded. > This

Re: [PATCH 3/5] staging: comedi: usbdux: Move an assignment in usbdux_alloc_usb_buffers()

2016-12-08 Thread Dan Carpenter
This one is pointless. It's just a style issue that you invented. Only Joe Perches is allowed to invent new style guidelines. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/li

Re: [PATCH 2/5] staging: comedi: usbdux: Split a condition check in usbdux_alloc_usb_buffers()

2016-12-08 Thread Dan Carpenter
Same bug. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 10/14] rtlwifi: Add BTC_TRACE_STRING to new btcoex

2016-12-08 Thread Dan Carpenter
On Thu, Dec 08, 2016 at 02:50:49PM +0300, Dan Carpenter wrote: > On Thu, Dec 08, 2016 at 01:43:42PM +0200, Kalle Valo wrote: > > But it would make me very happy if someone would add a similar grouping > > functionality to dyndbg to make it easy to enable a set of debug > > messages in a driver. >

Re: [PATCH 10/14] rtlwifi: Add BTC_TRACE_STRING to new btcoex

2016-12-08 Thread Dan Carpenter
I don't have a problem with the ath debug printks. Larry asked me for examples of better debug functions and the ath code is an example. Literally, any existing debug functions are better than the BTC_TRACE_STRING() stuff. On Thu, Dec 08, 2016 at 01:43:42PM +0200, Kalle Valo wrote: > But it would

[PATCH 1/5] staging: comedi: serial2002: Combine four kcalloc() calls into one in serial2002_setup_subdevs()

2016-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Dec 2016 07:37:29 +0100 The function "kcalloc" was called in three cases by the function "serial2002_setup_subdevs" without checking immediately if it failed. This issue was detected by using the Coccinelle software. * Perform the desired memory allocation (and

[PATCH 5/5] staging: comedi: usbduxsigma: Move an assignment in usbduxsigma_alloc_usb_buffers()

2016-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Dec 2016 11:20:38 +0100 Move one assignment for the local variable "usb" so that its setting will only be performed after some memory allocations succeeded by this function. Signed-off-by: Markus Elfring --- drivers/staging/comedi/drivers/usbduxsigma.c | 3 ++-

Re: [PATCH 10/14] rtlwifi: Add BTC_TRACE_STRING to new btcoex

2016-12-08 Thread Kalle Valo
Dan Carpenter writes: > On Wed, Dec 07, 2016 at 02:16:06PM +0200, Kalle Valo wrote: >> We have disccused this before, but for wireless it's not really that >> simple. AFAIK with dyndbg you can only control the messages per line >> (painful to enable group of messages) or per file (enables too man

[PATCH 4/5] staging: comedi: usbduxsigma: Split a condition check in usbduxsigma_alloc_usb_buffers()

2016-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Dec 2016 11:15:40 +0100 The functions "kcalloc" and "kzalloc" were called in four cases by the function "usbduxsigma_alloc_usb_buffers" without checking immediately if they succeded. This issue was detected by using the Coccinelle software. Allocated memory was

[PATCH 3/5] staging: comedi: usbdux: Move an assignment in usbdux_alloc_usb_buffers()

2016-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Dec 2016 10:13:56 +0100 Move one assignment for the local variable "usb" so that its setting will only be performed after some memory allocations succeeded by this function. Signed-off-by: Markus Elfring --- drivers/staging/comedi/drivers/usbdux.c | 3 ++- 1 f

[PATCH 2/5] staging: comedi: usbdux: Split a condition check in usbdux_alloc_usb_buffers()

2016-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Dec 2016 10:01:54 +0100 The functions "kcalloc" and "kzalloc" were called in four cases by the function "usbdux_alloc_usb_buffers" without checking immediately if they succeded. This issue was detected by using the Coccinelle software. Allocated memory was also

[PATCH 0/5] staging-COMEDI: Fine-tuning for three functions

2016-12-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Dec 2016 11:37:37 +0100 Some update suggestions were taken into account from static source code analysis. Markus Elfring (5): Combine four kcalloc() calls into one in serial2002_setup_subdevs() Split a condition check in usbdux_alloc_usb_buffers() Move an

Re: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to hyperv.h

2016-12-08 Thread kbuild test robot
Hi Haiyang, [auto build test ERROR on next-20161208] [also build test ERROR on v4.9-rc8] [cannot apply to linus/master linux/master pci/next v4.9-rc8 v4.9-rc7 v4.9-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH 1/3] hyperv: Move hv_pci_dev and related structs to hyperv.h

2016-12-08 Thread kbuild test robot
Hi Haiyang, [auto build test ERROR on next-20161208] [also build test ERROR on v4.9-rc8] [cannot apply to linus/master linux/master pci/next v4.9-rc8 v4.9-rc7 v4.9-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com