Re: [PATCH v2 2/2] staging: panel: fix sparse warnings in lcd_write

2014-04-24 Thread Willy Tarreau
On Wed, Apr 23, 2014 at 07:35:02PM +0200, Bastien Armand wrote: > On Tue, Apr 22, 2014 at 01:01:45PM +0300, Dan Carpenter wrote: > > Btw, this whole function is terrible. It should be reading larger > > chunks at once instead of get_user() for each character. Just for the record, very small chara

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

2014-04-24 Thread Nicolas Del Piano
>From 38e0d5778bd97062115e7d8a8ca40d18f3d71707 Mon Sep 17 00:00:00 2001 From: Nicolas Del Piano Date: Thu, 24 Apr 2014 18:46:49 -0300 Subject: [PATCH] Staging: comedi: drivers: fixed a missing blank line after a declaration coding style. Fixed a coding style issue. Signed-off-by: Nicolas Del

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

2014-04-24 Thread Peng Tao
On Fri, Apr 25, 2014 at 5:49 AM, Dan Carpenter wrote: > 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 add

Re: [patch 1/2] staging: lustre: improve length checks in ioctls

2014-04-24 Thread Peng Tao
On Fri, Apr 25, 2014 at 5:49 AM, Dan Carpenter wrote: > We copy "hdr->ioc_len" from the user twice but we only verify that it's > within the limit on the first copy. Otherwise we could read unmapped > memory and Oops. > Thanks for the patch. Reviewed-by: Peng Tao > Signed-off-by: Dan Carpenter

[PATCH]staging:iio:ad2s1200 fix missing parenthesis in a for statment.

2014-04-24 Thread Jimmy Li
Signed-off-by: Jimmy Li --- drivers/staging/iio/resolver/ad2s1200.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c index e2b4820..017d2f8 100644 --- a/drivers/staging/iio/resolver/ad2s1200

[PATCH 3/5] staging: rtl: Convert /n to \n

2014-04-24 Thread Joe Perches
Use a newline character appropriately. Signed-off-by: Joe Perches --- drivers/staging/rtl8188eu/hal/usb_ops_linux.c | 2 +- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 +- drivers/staging/rtl8723au/hal/usb_ops_linux.c | 4 ++-- drivers/staging/rtl8723au/os_dep/usb_intf.c | 2 +- 4 files

Re: [PATCH] imx-drm: fix hdmi hotplug detection initial state

2014-04-24 Thread Russell King - ARM Linux
On Thu, Apr 24, 2014 at 03:57:27PM -0700, Tim Harvey wrote: > On Thu, Apr 24, 2014 at 3:07 PM, Russell King - ARM Linux > wrote: > > On Thu, Apr 24, 2014 at 02:00:49PM -0700, Tim Harvey wrote: > >> I'm still seeing issues with HDMI detect on powerup, at least on my > >> Gateworks Ventana boards (w

Re: [PATCH] imx-drm: fix hdmi hotplug detection initial state

2014-04-24 Thread Tim Harvey
On Thu, Apr 24, 2014 at 3:07 PM, Russell King - ARM Linux wrote: > On Thu, Apr 24, 2014 at 02:00:49PM -0700, Tim Harvey wrote: >> I'm still seeing issues with HDMI detect on powerup, at least on my >> Gateworks Ventana boards (which have no voltage devider or anything >> else on the HPD line to th

Re: [PATCH V1 net-next 1/1] hyperv: Enable sendbuf mechanism on the send path

2014-04-24 Thread Dan Carpenter
On Thu, Apr 24, 2014 at 10:06:24PM +, KY Srinivasan wrote: > > From: Andev [mailto:debian...@gmail.com] > > Your use of goto exit/cleanup in some functions and returning directly on > > errors in others could use a cleanup. Please consider doing that while you > > are > > touching those files.

Re: [PATCH] imx-drm: fix hdmi hotplug detection initial state

2014-04-24 Thread Russell King - ARM Linux
On Thu, Apr 24, 2014 at 02:00:49PM -0700, Tim Harvey wrote: > I'm still seeing issues with HDMI detect on powerup, at least on my > Gateworks Ventana boards (which have no voltage devider or anything > else on the HPD line to the IMX6 other than a TVS). I'm currently > using your latest imx-drm-sta

RE: [PATCH V1 net-next 1/1] hyperv: Enable sendbuf mechanism on the send path

2014-04-24 Thread KY Srinivasan
> -Original Message- > From: Andev [mailto:debian...@gmail.com] > Sent: Thursday, April 24, 2014 2:50 PM > To: KY Srinivasan > Cc: da...@davemloft.net; net...@vger.kernel.org; LKML; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com > Subject: Re: [P

Re: [PATCH V1 net-next 1/1] hyperv: Enable sendbuf mechanism on the send path

2014-04-24 Thread Andev
On Wed, Apr 23, 2014 at 5:24 PM, K. Y. Srinivasan wrote: > drivers/net/hyperv/hyperv_net.h | 14 +++ > drivers/net/hyperv/netvsc.c | 226 > +-- > drivers/net/hyperv/netvsc_drv.c |3 +-> 3 files changed, 234 > insertions(+), 9 deletions(-) I just

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

2014-04-24 Thread 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 together they must not be larger than "data->ioc_len". The c

[patch 1/2] staging: lustre: improve length checks in ioctls

2014-04-24 Thread Dan Carpenter
We copy "hdr->ioc_len" from the user twice but we only verify that it's within the limit on the first copy. Otherwise we could read unmapped memory and Oops. Signed-off-by: Dan Carpenter --- Not tested. diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/staging/

Re: [PATCH] imx-drm: fix hdmi hotplug detection initial state

2014-04-24 Thread Tim Harvey
On Fri, Apr 18, 2014 at 2:46 AM, Russell King wrote: > > The initial state at boot is assumed to be disconnected, and we hope > to receive an interrupt to update the status. Let's be more explicit > about the current state - reading the PHY status register tells us > the current level of the hotp

Re: [PATCH 19/22] staging: comedi: adv_pci1710: tidy up start_pacer()

2014-04-24 Thread Ian Abbott
On 24/04/14 19:14, Hartley Sweeten wrote: On Thursday, April 24, 2014 4:27 AM, Ian Abbott wrote: On 2014-04-24 00:07, H Hartley Sweeten wrote: For aesthetics, rename this function so it has namespace associated with the driver. Change the parameters to the function. The 'mode' is really a flag

Re: [PATCH 21/22] staging: comedi: adv_pci1710: handle events and clear interrupt in common code

2014-04-24 Thread Ian Abbott
On 24/04/14 19:11, Hartley Sweeten wrote: On Thursday, April 24, 2014 4:50 AM, Ian Abbott wrote: On 2014-04-24 00:07, H Hartley Sweeten wrote: The helper functions that handle reading the analog input samples for the interrupt function both call cfc_handle_events() and clear the interrupt reque

Re: [PATCH 13/22] staging: comedi: adv_pci1710: don't check the chanlist twice

2014-04-24 Thread Ian Abbott
On 24/04/14 18:35, Hartley Sweeten wrote: On Thursday, April 24, 2014 4:06 AM, Ian Abbott wrote: On 2014-04-24 00:07, H Hartley Sweeten wrote: The chanlist is checked in Step 5 of the (*do_cmdtest) there is no reason to check it again in the (*do_cmd). The only reasonm its done is to get the ac

Re: [Patch 0/4] staging: unisys: Fix module loading on non s-Par platform

2014-04-24 Thread Dan Carpenter
Nice. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 3/4] Staging: unisys: virthba: add MODULE_DEVICE_TABLE

2014-04-24 Thread Ken Cox
Add x86_cpu_id struct and call to MODULE_DEVICE_TABLE so this module will be auto loaded on boot. Signed-off-by: Ken Cox Tested-by: Ken Cox --- drivers/staging/unisys/virthba/virthba.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/unisys/virthba/virthba.c b/driver

[Patch 0/4] staging: unisys: Fix module loading on non s-Par platform

2014-04-24 Thread Ken Cox
This series fixes the problem reported by Fengguang Wu where the unisys modules will cause a panic if loaded on a non s-Par platform. Each module now has a check in the init function to ensure that it is being loaded on an s-Par platform and returns an error if it isn't. In addition, a MODULE_D

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

2014-04-24 Thread Ken Cox
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/visorkmodutils.c b/drivers/staging/unisys/visorutil/visorkmodutils.c index 87ed5bf..

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

2014-04-24 Thread Ken Cox
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/channels/chanstub.c| 5 + drivers/staging/unisys/uislib/uisli

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

2014-04-24 Thread Ken Cox
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. This functionality will be used by the unisys drivers to determine if they are being loaded on an s-Par platf

[PATCH] staging: dgap: fix sparse warnings Using plain integer as NULL pointer

2014-04-24 Thread Mark Hounschell
This patch fixes sparse warnings: warning: Using plain integer as NULL pointer Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/dgap/dgap.c

[PATCH] staging: dgap: fix sparse warning about dgap_poll_lock

2014-04-24 Thread Mark Hounschell
This patch fixes a sparse warning: warning: symbol 'dgap_poll_lock' was not declared. Should it be static? 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/dri

Re: [PATCH] [v3] fix sparse warning about dgap_poll_lock

2014-04-24 Thread Mark Hounschell
Oops, ignore this. I got the subject wrong. resending... Mark On 04/24/2014 10:31 AM, Mark Hounschell wrote: > This patch fixes a sparse warning: > > warning: symbol 'dgap_poll_lock' was not declared. Should it be static? > > Signed-off-by: Mark Hounschell > Cc: Greg Kroah-Hartman > --- > dr

[PATCH] [v3] fix sparse warning about dgap_poll_lock

2014-04-24 Thread Mark Hounschell
This patch fixes a sparse warning: warning: symbol 'dgap_poll_lock' was not declared. Should it be static? 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/dri

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

2014-04-24 Thread Mark Hounschell
This patch fixes a few more sparse warnings related to __iomem Signed-off-by: Mark Hounschell Tested-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/st

[PATCH] staging: dgap: fix a few misc sparse warnings

2014-04-24 Thread Mark Hounschell
This patch fixes a few misc sparse warnings related to __iomem Signed-off-by: Mark Hounschell Tested-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 20 ++-- drivers/staging/dgap/dgap.h | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-)

Re: staging: add Lustre file system client support

2014-04-24 Thread Dan Carpenter
On Thu, Apr 24, 2014 at 02:51:15PM +0300, Dan Carpenter wrote: > > >> if (libcfs_ioctl_is_invalid(data)) { > > >> > > >> Why do we even have all the "> (1<<30)" checks? I don't understand. > > >> Anything over 1024 is invalid. > > >> > > I believe it is just a safe keeper. Anything that larg

Re: [PATCH 00/22] staging: comedi: adv_pci1710: cleanup async command support

2014-04-24 Thread Ian Abbott
On 2014-04-24 00:06, H Hartley Sweeten wrote: Remove the unnecessary members from the private data and cleanup the async command support code. H Hartley Sweeten (22): staging: comedi: adv_pci1710: remove 'ai_timer2' from private data staging: comedi: adv_pci1710: remove 'ai_timer1' from pr

Re: staging: add Lustre file system client support

2014-04-24 Thread Dan Carpenter
On Thu, Apr 24, 2014 at 11:14:46AM +0800, Peng Tao wrote: > Hi Dan, > > Thanks for reporting this. > > On Wed, Apr 23, 2014 at 10:13 PM, Dan Carpenter > wrote: > > Btw, what's the trick to navigating the lustre source? I normally do > > a make cscope but that doesn't work and I am having a very

Re: [PATCH 21/22] staging: comedi: adv_pci1710: handle events and clear interrupt in common code

2014-04-24 Thread Ian Abbott
On 2014-04-24 00:07, H Hartley Sweeten wrote: The helper functions that handle reading the analog input samples for the interrupt function both call cfc_handle_events() and clear the interrupt request at various times. Move this to the main interrupt handler to make sure the events are posted an

Re: [PATCH 19/22] staging: comedi: adv_pci1710: tidy up start_pacer()

2014-04-24 Thread Ian Abbott
On 2014-04-24 00:07, H Hartley Sweeten wrote: For aesthetics, rename this function so it has namespace associated with the driver. Change the parameters to the function. The 'mode' is really a flag to load the counters and the divisors can be found in the private data. To clarify the code and r

Re: [PATCH 17/22] staging: comedi: adv_pci1710: only calc the pacer divisors once

2014-04-24 Thread Ian Abbott
On 2014-04-24 00:07, H Hartley Sweeten wrote: When the cmd->convert_src == TRIG_TIMER the divisors needed to generate the pacer time are calculated in the (*do_cmdtest) to validate the cmd->convert_arg. The core always does the (*do_cmdtest) before the (*do_cmd) so there is no reason to recalc th

Re: [PATCH 13/22] staging: comedi: adv_pci1710: don't check the chanlist twice

2014-04-24 Thread Ian Abbott
On 2014-04-24 00:07, H Hartley Sweeten wrote: The chanlist is checked in Step 5 of the (*do_cmdtest) there is no reason to check it again in the (*do_cmd). The only reasonm its done is to get the actual 'seglen', the non-repeating length of the chanlist. Save the 'seglen' found by pci171x_ai_che

Re: [PATCH 12/22] staging: comedi: adv_pci1710: tidy up pci171x_ai_check_chanlist()

2014-04-24 Thread Ian Abbott
On 2014-04-24 00:07, H Hartley Sweeten wrote: Tidy up this function to clarify what the chanlist is being checked for. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 81 ++-- 1 file changed,

Re: [PATCH 0/4] staging: comedi: amplc_pci224: cleanup timer code

2014-04-24 Thread Ian Abbott
On 2014-04-23 23:57, H Hartley Sweeten wrote: Tidy up the timer/pacer code in this driver. H Hartley Sweeten (4): staging: comedi: amplc_pci224: remove pci224_cascade_ns_to_timer() staging: comedi: amplc_pci224: factor out the 'start pacer' code staging: comedi: amplc_pci224: always cas

Re: [PATCH 0/3] staging: comedi: drivers: cleanup (*do_cmdtest) step 2b

2014-04-24 Thread Ian Abbott
On 2014-04-23 23:52, H Hartley Sweeten wrote: Clarify step 2b of the adl_pci9111 driver. Remove the unnecessary step 2b tests in the cb_pcidas64 and me4000 drivers. H Hartley Sweeten (3): staging: comedi: adl_pci9111: clarify Step 2b of the (*do_cmdtest) staging: comedi: cb_pcidas64: remov

Re: [PATCH] staging: comedi: addi_apci_1564: separate from addi_common.c

2014-04-24 Thread Ian Abbott
On 2014-04-24 08:19, Chase Southwood wrote: Using the addi-data "common" code in addi_apci_1564 introduces a lot of bloat. By separating this driver off from addi_common.c, a lot of the common code can be stripped out. This patch copies the code over from addi_common.c, and removes the #include

Re: staging: add Lustre file system client support

2014-04-24 Thread Dan Carpenter
On Thu, Apr 24, 2014 at 05:55:21AM +, Drokin, Oleg wrote: > Hello! > > On Apr 23, 2014, at 11:14 PM, Peng Tao wrote: > >> Btw, what's the trick to navigating the lustre source? I normally do > >> a make cscope but that doesn't work and I am having a very hard time > >> with this code. > >> >

[PATCH] staging/line6: blank line after declaration cleanup

2014-04-24 Thread Jerry Snitselaar
Fix coding style warnings reported by checkpath. Signed-off-by: Jerry Snitselaar --- drivers/staging/line6/capture.c | 3 +++ drivers/staging/line6/midi.c | 2 ++ drivers/staging/line6/playback.c | 6 +- drivers/staging/line6/pod.c | 5 + drivers/staging/line6/toneport.c | 2 ++

[PATCH] staging: comedi: addi_apci_1564: separate from addi_common.c

2014-04-24 Thread Chase Southwood
Using the addi-data "common" code in addi_apci_1564 introduces a lot of bloat. By separating this driver off from addi_common.c, a lot of the common code can be stripped out. This patch copies the code over from addi_common.c, and removes the #include of the file. The auto_attach function from t