[rfc PATCH] checkpatch: allow multiple const * types

2014-04-25 Thread Joe Perches
On Fri, 2014-04-25 at 10:50 +0300, Dan Carpenter wrote: > On Fri, Apr 25, 2014 at 01:06:44AM -0300, Nicolas Del Piano wrote: > > diff --git a/drivers/staging/comedi/drivers.c > > b/drivers/staging/comedi/drivers.c [] > > @@ -439,6 +439,7 @@ static void *comedi_recognize(struct comedi_driver > > *

[PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread K. Y. Srinivasan
Do checksum offload only if the client of the driver wants checksum to be offloaded. In this version of the patch, I have addressed comments from Stephen Hemminger and Eric Dumazet . This patch fixes a bug that is exposed in gateway scenarios. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiy

RE: [PATCH net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread KY Srinivasan
> -Original Message- > From: driverdev-devel-boun...@linuxdriverproject.org [mailto:driverdev- > devel-boun...@linuxdriverproject.org] On Behalf Of KY Srinivasan > Sent: Friday, April 25, 2014 7:24 PM > To: Eric Dumazet; Stephen Hemminger > Cc: o...@aepfle.de; net...@vger.kernel.org; jaso

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread DaeSeok Youn
Hi, please check below my comments. 2014-04-25 23:41 GMT+09:00 Mark Hounschell : > On 04/25/2014 08:59 AM, Dan Carpenter wrote: >> On Fri, Apr 25, 2014 at 08:29:41AM -0400, Mark Hounschell wrote: >>> On 04/25/2014 07:02 AM, DaeSeok Youn wrote: Hi, Dan. 2014-04-25 18:26 GMT+09:00 Da

RE: [PATCH net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread KY Srinivasan
> -Original Message- > From: Eric Dumazet [mailto:eric.duma...@gmail.com] > Sent: Friday, April 25, 2014 6:15 PM > To: Stephen Hemminger > Cc: KY Srinivasan; da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@

RE: [PATCH net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread KY Srinivasan
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, April 25, 2014 5:43 PM > To: KY Srinivasan > Cc: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.

Re: [PATCH net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread Eric Dumazet
On Fri, 2014-04-25 at 17:43 -0700, Stephen Hemminger wrote: > On Fri, 25 Apr 2014 11:45:14 -0700 > "K. Y. Srinivasan" wrote: > > > @@ -474,6 +477,9 @@ static int netvsc_start_xmit(struct sk_buff *skb, > > struct net_device *net) > > csum_info = (struct ndis_tcp_ip_checksum_info *)((void *)pp

Re: [PATCH net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread Stephen Hemminger
On Fri, 25 Apr 2014 11:45:14 -0700 "K. Y. Srinivasan" wrote: > @@ -474,6 +477,9 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct > net_device *net) > csum_info = (struct ndis_tcp_ip_checksum_info *)((void *)ppi + > ppi->ppi_offset); > > + ip_hdr(skb)-

Re: [PATCH] staging: silicom: Add appropriate ifdef conditions in bpctl_mod.c

2014-04-25 Thread DaeSeok Youn
2014-04-26 7:33 GMT+09:00, Greg KH : > On Mon, Apr 07, 2014 at 12:03:41PM +0900, Daeseok Youn wrote: >> >> The bp_proc_create() can be called if BP_PROC_SUPPORT is defined. >> >> Signed-off-by: Daeseok Youn >> --- >> drivers/staging/silicom/bpctl_mod.c |5 + >> 1 files changed, 5 insertio

Re: [PATCH] Staging: xgifb: Coding style cleanup, newline added after declarations

2014-04-25 Thread Greg KH
On Wed, Apr 02, 2014 at 11:25:19AM +0200, Martin Berglund wrote: > Added newlines after declarations. > > Signed-off-by: Martin Berglund > --- > drivers/staging/xgifb/XGI_main_26.c | 2 ++ > drivers/staging/xgifb/vb_init.c | 2 ++ > drivers/staging/xgifb/vb_setmode.c | 2 ++ > 3 files chang

Re: [PATCH 1/1] Fix some lines over 80 characters in imx-drm staging driver

2014-04-25 Thread Greg Kroah-Hartman
On Fri, Apr 18, 2014 at 11:18:44PM +0200, Antoine Schweitzer-Chaput wrote: > >From 73eb48f2b376c56f0a354ea0e6c2c71972aaffae Mon Sep 17 00:00:00 2001 > From: Antoine Schweitzer-Chaput > Date: Wed, 16 Apr 2014 09:59:26 +0200 > Subject: [PATCH 1/1] Fix some lines over 80 characters in imx-drm > stagi

Re: [PATCH] imx-hdmi: Make checkpatch happy

2014-04-25 Thread Greg KH
On Sat, Apr 05, 2014 at 12:50:22PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Fix the following checkpatch warnings: > > WARNING: Missing a blank line after declarations > #162: FILE: drivers/staging/imx-drm/imx-hdmi.c:162: > + u8 val = hdmi_readb(hdmi, reg) & ~mask; > + val |

Re: [PATCH] staging: rtl8192u: fix checkpatch braces warning

2014-04-25 Thread Greg KH
On Wed, Mar 26, 2014 at 01:08:23AM +, Rui Miguel Silva wrote: > fix some code style related to the use of braces in a one statement block > > Signed-off-by: Rui Miguel Silva > --- > drivers/staging/rtl8192u/r8192U_dm.c | 7 +++ > drivers/staging/rtl8192u/r8192U_wx.c | 3 +-- >

Re: [PATCH] staging: silicom: Add appropriate ifdef conditions in bpctl_mod.c

2014-04-25 Thread Greg KH
On Mon, Apr 07, 2014 at 12:03:41PM +0900, Daeseok Youn wrote: > > The bp_proc_create() can be called if BP_PROC_SUPPORT is defined. > > Signed-off-by: Daeseok Youn > --- > drivers/staging/silicom/bpctl_mod.c |5 + > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/driv

Re: [PATCH 4/4] Staging: unisys: visorutil: Add MODULE_LICENSE("GPL")

2014-04-25 Thread Greg KH
On Thu, Apr 24, 2014 at 01:57:12PM -0500, Ken Cox wrote: > The visorutil module was lacking license info. > > Signed-off-by: Ken Cox > --- > drivers/staging/unisys/visorutil/visorkmodutils.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/staging/unisys/visorutil/visorkmoduti

Re: [PATCH 1/4] staging: unisys: detect s-Par firmware

2014-04-25 Thread Greg KH
On Thu, Apr 24, 2014 at 01:57:09PM -0500, Ken Cox wrote: > From: Benjamin Romer > > This patch adds support for detection of s-Par firmware by checking for the > hypervisor bit in the CPU capabilities, and then querying the hypervisor ID > cpuid leaf. No linewrap? > > This functionality will

Re: [PATCH 2/4] Staging: unisys: Added check for s-Par platform in each init function.

2014-04-25 Thread Greg KH
On Thu, Apr 24, 2014 at 01:57:10PM -0500, Ken Cox wrote: > This fixes a problem reported from upstream where a panic occurs if the > unisys drivers are loaded on a non s-Par system. > > Reported-by: Fengguang Wu > Signed-off-by: Ken Cox > Tested by: Ken Cox > --- > drivers/staging/unisys/chann

Re: [PATCH 2/2] Staging:keucr:scsiglue.c-no semicolon terminated

2014-04-25 Thread Greg KH
On Tue, Apr 08, 2014 at 05:32:45PM +0100, Paul McQuade wrote: > WARNING: do {} while (0) macros should not be semicolon terminated > > Signed-off-by: Paul McQuade > --- > drivers/staging/keucr/scsiglue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/ke

Re: [PATCH 1/1] staging: android: Fix warning cast removes address space of expression

2014-04-25 Thread Greg KH
On Sun, Apr 20, 2014 at 11:10:57AM +0200, Camille Bordignon wrote: > Fix sparse warning "cast removes address space of expression" > Add lost flag "__user" due to cast > > Signed-off-by: Camille Bordignon > --- > diff --git a/drivers/staging/android/binder.c > b/drivers/staging/android/binder.c

Re: [PATCH] staging: comedi: fix coding style issues in comedi_fops.c

2014-04-25 Thread Greg KH
On Fri, Apr 25, 2014 at 11:18:55PM +0530, RAGHAVENDRA GANIGA wrote: > >From 7bdc654b12895889a539450528b52328901e6dc0 Mon Sep 17 00:00:00 2001 > From: Raghavendra Ganiga > Date: Fri, 25 Apr 2014 23:11:22 +0530 > Subject: [PATCH] staging: comedi: fix coding style issues in comedi_fops.c Why is all

[PATCH] staging: dgap: Get rid of CamelCase

2014-04-25 Thread Mark Hounschell
This patch gets rid of the obvious CamelCases from both dgap.c and dgap.h Signed-off-by: Mark Hounschell Tested-by: Mark Hounschell Suggested-by: Dan Carpenter Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 228 ++-- drivers/staging/dgap/dgap.

[RFC] staging: dgap: sparse warning question

2014-04-25 Thread Mark Hounschell
I get the sparse warning: drivers/staging/dgap/dgap.c:367:25: warning: too long initializer-string for array of char It's referring to INIT_C_CC in the following code segment. static struct ktermios DgapDefaultTermios = { .c_iflag = (DEFAULT_IFLAGS), /* iflags */ .c_of

[PATCH] staging: dgap: Add Mark Hounschell to maintainers list for dgap

2014-04-25 Thread Mark Hounschell
Add Mark Hounschell to the MAINTAINERs list for the dgap driver Signed-off-by: Mark Hounschell Suggested-by: Dan Carpenter Cc: Greg Kroah-Hartman --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e67ea24..1bf556a 100644 --- a/MAINTAINERS +++ b/

[PATCH] staging: dgap: refactor ugly dgap_init_one function

2014-04-25 Thread Mark Hounschell
This patch just cleans up the ugly dgap_init_one function Signed-off-by: Mark Hounschell Suggested-by: Dan Carpenter Tested-by: Mark Hounschell --- drivers/staging/dgap/dgap.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b

RE: [PATCH] hv: Remove unnecessary comparison of unsigned against 0

2014-04-25 Thread KY Srinivasan
> -Original Message- > From: Tobias Klauser [mailto:tklau...@distanz.ch] > Sent: Friday, April 25, 2014 8:04 AM > To: KY Srinivasan; Haiyang Zhang > Cc: de...@linuxdriverproject.org > Subject: [PATCH] hv: Remove unnecessary comparison of unsigned against 0 > > pfncount is of type u32 and

[PATCH net-next 1/1] hyperv: Properly handle checksum offload

2014-04-25 Thread K. Y. Srinivasan
Do checksum offload only if the client of the driver wants checksum to be offloaded. Also Windows hosts support ip header checksum offload as well - take advantage of that. This patch fixes a bug that is exposed in gateway scenarios. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang C

[PATCH] staging: comedi: fix coding style issues in comedi_fops.c

2014-04-25 Thread RAGHAVENDRA GANIGA
>From 7bdc654b12895889a539450528b52328901e6dc0 Mon Sep 17 00:00:00 2001 From: Raghavendra Ganiga Date: Fri, 25 Apr 2014 23:11:22 +0530 Subject: [PATCH] staging: comedi: fix coding style issues in comedi_fops.c This is a patch to fix coding style warnings found by the checkpatch.pl tool Signed-of

[PATCH] Staging: vt6655: tether: fixed a brace coding style issue

2014-04-25 Thread Nicolas Del Piano
Fixed a coding style issue. Signed-off-by: Nicolas Del Piano --- drivers/staging/vt6655/tether.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/tether.c b/drivers/staging/vt6655/tether.c index a5dc3c09..1e7d3e2 100644 --- a/drivers/staging/vt665

[PATCH 00/03] staging: dgap: Digi International dgap driver

2014-04-25 Thread Mark Hounschell
patch 1: check return values of dgap_tty_register and dgap_finalize_board_init patch 2: removes 2 unnecessary conditionals patch 3: only allow driver to configure MAXBOARDS (32) -- 1.8.1.4 ___ devel mailing list de...@linuxdriverproject.org http://dr

[PATCH 02/03] staging: dgap: remove two unnecessary conditionals

2014-04-25 Thread Mark Hounschell
Remove 2 unnessessary conditionals. They are always false in this code path. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b

[PATCH 01/03] staging: dgap: check unchecked return values

2014-04-25 Thread Mark Hounschell
Check the return values of dgap_tty_register and dgap_finalize_board_init. If they fail for a particular board we should not be able to try to use that board. IE. no device entries shall be created for that board. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dg

[PATCH 03/03] staging: dgap: Add check for MAXBOARDS in .probe (dgap_init_one)

2014-04-25 Thread Mark Hounschell
Insure we don't allow configuring more than MAXBOARDS (32). Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index b834c83..f597432 100644 --- a/

Re: [PATCH] Staging: octeon-usb: fixed a macro coding style issue

2014-04-25 Thread David Daney
On 04/25/2014 07:21 AM, Greg KH wrote: On Fri, Apr 25, 2014 at 10:48:22AM -0300, Nicolas Del Piano wrote: Fixed a coding style error, macros with complex values should be enclosed in parentheses. Signed-off-by: Nicolas Del Piano --- drivers/staging/octeon-usb/octeon-hcd.c |2 +- 1 file

RE: [PATCH 2/2] staging: comedi: addi_apci_1564: board does not have analog outputs

2014-04-25 Thread Hartley Sweeten
On Friday, April 25, 2014 1:18 AM, Chase Southwood wrote: > The board supported by this driver does not have analog outputs. Remove > the subdevice init for it. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley Sweeten Looks good. Reviewed-by: H Hartley Sweeten ___

RE: [PATCH 1/2] staging: comedi: addi_apci_1564: board does not have analog inputs

2014-04-25 Thread Hartley Sweeten
On Friday, April 25, 2014 1:17 AM, Chase Southwood wrote: > This board does not have analog inputs. Remove the subdevice init for > them. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley Sweeten Looks good. Reviewed-by: H Hartley Sweeten As Ian mentioned, after you have r

[PATCH] hv: Remove unnecessary comparison of unsigned against 0

2014-04-25 Thread Tobias Klauser
pfncount is of type u32 and thus can never be smaller than 0. Found by the coverity scanner, CID 143213. Signed-off-by: Tobias Klauser --- drivers/hv/channel.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 602ca86..17c

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread Mark Hounschell
On 04/25/2014 08:59 AM, Dan Carpenter wrote: > On Fri, Apr 25, 2014 at 08:29:41AM -0400, Mark Hounschell wrote: >> On 04/25/2014 07:02 AM, DaeSeok Youn wrote: >>> Hi, Dan. >>> >>> 2014-04-25 18:26 GMT+09:00 Dan Carpenter : Mark, maybe you should add yourself to the MAINTAINERS entry for this >

Re: [PATCH] Staging: octeon-usb: fixed a macro coding style issue

2014-04-25 Thread Greg KH
On Fri, Apr 25, 2014 at 10:48:22AM -0300, Nicolas Del Piano wrote: > Fixed a coding style error, macros with complex values should be enclosed in > parentheses. > > Signed-off-by: Nicolas Del Piano > --- > drivers/staging/octeon-usb/octeon-hcd.c |2 +- > 1 file changed, 1 insertion(+), 1 de

[PATCH v2] staging: dgap: fix a few more sparse warnings

2014-04-25 Thread Mark Hounschell
This patch fixes a few more sparse warnings related to __iomem version 2 excludes a change that actually caused a new sparse warning. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 37 +++-- 1 file changed, 19 insertions(+

Re: [PATCH] staging: dgap: back out a previous change causing a new sparse warning

2014-04-25 Thread Mark Hounschell
On 04/25/2014 09:44 AM, Dan Carpenter wrote: > On Fri, Apr 25, 2014 at 09:38:48AM -0400, Mark Hounschell wrote: >> This patch just backs out a change in a previous patch >> that generated a new sparse warning. >> > > Could you redo the previous change instead? Or has it already been > applied? >

[PATCH] Staging: octeon-usb: fixed a macro coding style issue

2014-04-25 Thread Nicolas Del Piano
Fixed a coding style error, macros with complex values should be enclosed in parentheses. Signed-off-by: Nicolas Del Piano --- drivers/staging/octeon-usb/octeon-hcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/stagin

Re: [PATCH] staging: dgap: back out a previous change causing a new sparse warning

2014-04-25 Thread Dan Carpenter
On Fri, Apr 25, 2014 at 09:38:48AM -0400, Mark Hounschell wrote: > This patch just backs out a change in a previous patch > that generated a new sparse warning. > Could you redo the previous change instead? Or has it already been applied? regards, dan carpenter

Re: [PATCH] Staging: octeon-usb: fixed a macro coding style issue

2014-04-25 Thread Levente Kurusa
Hi, On 04/25/2014 03:40 PM, Nicolas Del Piano wrote: > Fixed a coding style error, macros with comples values should be enclosed in > parenthesis. > > Signed-off-by: Nicolas Del Piano > --- > drivers/staging/octeon-usb/octeon-hcd.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[PATCH] Staging: octeon-usb: fixed a macro coding style issue

2014-04-25 Thread Nicolas Del Piano
Fixed a coding style error, macros with comples values should be enclosed in parenthesis. Signed-off-by: Nicolas Del Piano --- drivers/staging/octeon-usb/octeon-hcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/stagin

[PATCH] staging: vt6656: Remove unnecesssary NULL check

2014-04-25 Thread Tobias Klauser
pFifoHead points to tx_buffer->fifo_head which can never be NULL. We also don't need to check for tx_buffer being NULL instead, since it always points to ->Data of struct vnt_usb_send_context - the pointer to which was checked before calling s_vGenerateTxParameter(). Silences a dereference before

[PATCH] staging: dgap: back out a previous change causing a new sparse warning

2014-04-25 Thread Mark Hounschell
This patch just backs out a change in a previous patch that generated a new sparse warning. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dga

Re: [PATCH] staging: vt6656: Fix dereference before NULL check

2014-04-25 Thread Tobias Klauser
On 2014-04-25 at 15:11:05 +0200, Dan Carpenter wrote: > On Fri, Apr 25, 2014 at 01:54:51PM +0200, Tobias Klauser wrote: > > pFifoHead is dereferenced before it is checked for NULL which implies it > > can potentially be NULL. Thus move the check before the dereference. > > > > Found by the coveri

Re: [PATCH] staging: vt6656: Fix dereference before NULL check

2014-04-25 Thread Dan Carpenter
On Fri, Apr 25, 2014 at 01:54:51PM +0200, Tobias Klauser wrote: > pFifoHead is dereferenced before it is checked for NULL which implies it > can potentially be NULL. Thus move the check before the dereference. > > Found by the coverity scanner, CID 1127221. > pFifoHead is this: struct vnt_tx_fi

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread Dan Carpenter
On Fri, Apr 25, 2014 at 08:29:41AM -0400, Mark Hounschell wrote: > On 04/25/2014 07:02 AM, DaeSeok Youn wrote: > > Hi, Dan. > > > > 2014-04-25 18:26 GMT+09:00 Dan Carpenter : > >> Mark, maybe you should add yourself to the MAINTAINERS entry for this > >> driver? > >> > > I'll look into this. I am

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread Mark Hounschell
On 04/25/2014 07:02 AM, DaeSeok Youn wrote: > Hi, Dan. > > 2014-04-25 18:26 GMT+09:00 Dan Carpenter : >> Mark, maybe you should add yourself to the MAINTAINERS entry for this >> driver? >> I'll look into this. I am clueless on what that would actually mean. >> On Fri, Apr 25, 2014 at 04:04:59PM

[PATCH] staging: vt6656: Fix dereference before NULL check

2014-04-25 Thread Tobias Klauser
pFifoHead is dereferenced before it is checked for NULL which implies it can potentially be NULL. Thus move the check before the dereference. Found by the coverity scanner, CID 1127221. Reported-by: Signed-off-by: Tobias Klauser --- drivers/staging/vt6656/rxtx.c |6 +++--- 1 file changed,

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread DaeSeok Youn
Hi, Dan. 2014-04-25 18:26 GMT+09:00 Dan Carpenter : > Mark, maybe you should add yourself to the MAINTAINERS entry for this > driver? > > On Fri, Apr 25, 2014 at 04:04:59PM +0900, Daeseok Youn wrote: >> @@ -1263,7 +1277,8 @@ static int dgap_tty_register(struct board_t *brd) >> /* Reg

Re: [PATCH 2/2] staging: comedi: addi_apci_1564: board does not have analog outputs

2014-04-25 Thread Ian Abbott
On 2014-04-25 09:18, Chase Southwood wrote: The board supported by this driver does not have analog outputs. Remove the subdevice init for it. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- Compile tested only. Reviewed-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.

Re: [PATCH 1/2] staging: comedi: addi_apci_1564: board does not have analog inputs

2014-04-25 Thread Ian Abbott
On 2014-04-25 09:17, Chase Southwood wrote: This board does not have analog inputs. Remove the subdevice init for them. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- Compile tested only. To be applied on top of [PATCH] staging: comedi: addi_apci_1564: separate from

[PATCH] staging: vt6656: Use proper target pointer in memcpy()

2014-04-25 Thread Tobias Klauser
The coverity scanner marked these two memcpy()'s as causing a buffer overflow in CIDs 142743 and 142744. This is due the h_dest member of struct ethhdr being used as a target (size ETH_ALEN) in memcpy, but the copy is of size ETH_HLEN. However, the intention here seems to be to copy the entire ethe

Re: [PATCH v7 4/4] memstick: Add realtek USB memstick host driver

2014-04-25 Thread Dan Carpenter
On Wed, Apr 16, 2014 at 09:13:52AM +0100, Lee Jones wrote: > It seems Max and Alex are less than interested in this patch, so I'm > going to apply it anyway. In your last review you mentioned that it > looked good to your inexpert eye. Can I apply your Ack to that effect? > Just apply it... He s

[PATCH 3/3] Staging: lustre: gfp_mask should be of gfp_t type

2014-04-25 Thread Fabio Falzoi
Fixed the following sparse complaints: drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:1039:61: warning: restricted gfp_t degrades to integer drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:1092:61: warning: restricted gfp_t degrades to integer

[PATCH 2/3] Staging: lustre: ops structs should be declared static

2014-04-25 Thread Fabio Falzoi
Fixed the following sparse complaints: drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:549:22: warning: symbol 'ldlm_srv_pool_ops' was not declared. Should it be static? drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:555:22: warning: symbol '

[PATCH 0/3] Staging: lustre: Fixed sparse complaints

2014-04-25 Thread Fabio Falzoi
This patchset fixes the following sparse complaints: [1/3]: use of a plain integer as NULL pointer [2/3]: symbols that should declared as static [3/3]: use of an unsigned int as gfp_t Fabio Falzoi (3): Staging: lustre: Avoid using 0 instead of NULL Staging: lustre: ops structs should be declar

[PATCH 1/3] Staging: lustre: Avoid using 0 instead of NULL

2014-04-25 Thread Fabio Falzoi
Fixed the following sparse complaints: drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:755:9: warning: Using plain integer as NULL pointer drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:757:9: warning: Using plain integer as NULL pointer drive

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread Dan Carpenter
Mark, maybe you should add yourself to the MAINTAINERS entry for this driver? On Fri, Apr 25, 2014 at 04:04:59PM +0900, Daeseok Youn wrote: > @@ -1263,7 +1277,8 @@ static int dgap_tty_register(struct board_t *brd) > /* Register tty devices */ > rc = tty_register_driver(

[PATCH 0/5] treewide: Convert logging message misuses of /n to \n

2014-04-25 Thread Joe Perches
Joe Perches (5): qlge: Convert /n to \n iwlegacy: Convert /n to \n staging: rtl: Convert /n to \n appledisplay: Convert /n to \n sound: tlv320aic31xx: Convert /n to \n drivers/net/ethernet/qlogic/qlge/qlge_main.c | 2 +- drivers/net/wireless/iwlegacy/3945.c | 2 +- drivers/net

[PATCH 2/2] staging: comedi: addi_apci_1564: board does not have analog outputs

2014-04-25 Thread Chase Southwood
The board supported by this driver does not have analog outputs. Remove the subdevice init for it. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- Compile tested only. drivers/staging/comedi/drivers/addi_apci_1564.c | 13 ++--- 1 file changed, 2 insertions(+),

[PATCH 1/2] staging: comedi: addi_apci_1564: board does not have analog inputs

2014-04-25 Thread Chase Southwood
This board does not have analog inputs. Remove the subdevice init for them. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- Compile tested only. To be applied on top of [PATCH] staging: comedi: addi_apci_1564: separate from addi_common.c drivers/staging/comedi/driver

Re: [PATCH] Staging: comedi: drivers: fixed a coding style issue.

2014-04-25 Thread Dan Carpenter
Patches need to be sent inline. Perhaps use git send-email. On Fri, Apr 25, 2014 at 01:06:44AM -0300, Nicolas Del Piano wrote: > > >From 38e0d5778bd97062115e7d8a8ca40d18f3d71707 Mon Sep 17 00:00:00 2001 > From: Nicolas Del Piano > Date: Thu, 24 Apr 2014 18:46:49 -0300 > Subject: [PATCH] Stagin

Re: [patch 2/2] staging: lustre: integer overflow in obd_ioctl_is_invalid()

2014-04-25 Thread Dan Carpenter
On Fri, Apr 25, 2014 at 09:13:21AM +0200, walter harms wrote: > > > Am 24.04.2014 23:49, schrieb Dan Carpenter: > > The obd_ioctl_getdata() function caps "data->ioc_len" at > > OBD_MAX_IOCTL_BUFFER and then calls this obd_ioctl_is_invalid() to check > > that the other values inside data are valid

Re: [patch 2/2] staging: lustre: integer overflow in obd_ioctl_is_invalid()

2014-04-25 Thread walter harms
Am 24.04.2014 23:49, schrieb Dan Carpenter: > The obd_ioctl_getdata() function caps "data->ioc_len" at > OBD_MAX_IOCTL_BUFFER and then calls this obd_ioctl_is_invalid() to check > that the other values inside data are valid. > > There are several lengths inside data but when they are added toget

Re: [PATCH v7 4/4] memstick: Add realtek USB memstick host driver

2014-04-25 Thread Roger
On 04/16/2014 04:13 PM, Lee Jones wrote: Hi Andrew, From: Roger Tseng Realtek USB memstick host driver provides memstick host support based on the Realtek USB card reader MFD driver. Signed-off-by: Roger Tseng --- drivers/memstick/host/Kconfig | 10 + drivers/memstick/host/Makefi

[PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread Daeseok Youn
- alloc_tty_driver() is deprecated so it is changed to tty_alloc_driver() - Pointers which are allocated by alloc_tty_driver() and kzalloc() can be NULL so it need to check NULL for them. - If one of those is failed, it need to add proper handler for avoiding memory leak. Signed-off-by: Daeseok Yo