Re: make allyesconfig i386 build failure with next-20150122 (caused by fb_agm1264k-fl driver)

2015-01-27 Thread Guenter Roeck
On Thu, Jan 22, 2015 at 12:10:33PM -0700, Jim Davis wrote: > make ARCH=i386 allyesconfig fails with > > drivers/staging/built-in.o: In function `reset': > (.text+0x2ae89d): multiple definition of `reset' > drivers/isdn/built-in.o:(.text+0x185dc2): first defined here > make[1]: *** [drivers/built-i

Re: [PATCH 1/4] staging: vt6655: correcting function declaration sparse error

2015-01-27 Thread Mathieu Poirier
On 25 January 2015 at 04:39, Greg KH wrote: > On Sat, Jan 17, 2015 at 07:04:23PM -0700, mathieu.poir...@linaro.org wrote: >> From: Mathieu Poirier >> >> mpoirier@t430:~/work/kernel1$ make C=1 M=drivers/staging/vt6655/ >> LD drivers/staging/vt6655/built-in.o >> CHECK drivers/staging/vt6

[PATCH 3.14 23/77] x86, hyperv: Mark the Hyper-V clocksource as being continuous

2015-01-27 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: "K. Y. Srinivasan" commit 32c6590d126836a062b3140ed52d898507987017 upstream. The Hyper-V clocksource is continuous; mark it accordingly. Signed-off-by: K. Y. Srinivasan Acked-by: jasow...@re

[PATCH 3.10 16/32] x86, hyperv: Mark the Hyper-V clocksource as being continuous

2015-01-27 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: "K. Y. Srinivasan" commit 32c6590d126836a062b3140ed52d898507987017 upstream. The Hyper-V clocksource is continuous; mark it accordingly. Signed-off-by: K. Y. Srinivasan Acked-by: jasow...@re

[PATCH 3.18 39/61] x86, hyperv: Mark the Hyper-V clocksource as being continuous

2015-01-27 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: "K. Y. Srinivasan" commit 32c6590d126836a062b3140ed52d898507987017 upstream. The Hyper-V clocksource is continuous; mark it accordingly. Signed-off-by: K. Y. Srinivasan Acked-by: jasow...@re

Re: [PATCH] staging: iio: adc: mxs-lradc: Change type in printf format string

2015-01-27 Thread Marek Vasut
On Tuesday, January 27, 2015 at 11:23:33 PM, Rickard Strandqvist wrote: > Wrong type in printf format string, requires 'int' > but the argument type is 'unsigned int' > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist Makes sense, than

[PATCH RESEND 6/8] drivers: hv: vmbus: Teardown synthetic interrupt controllers on module unload

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> SynIC has to be switched off when we unload the module, otherwise registered memory pages can get corrupted after (as Hyper-V host still writes there) and we see the following crashes for random processes: [ 89.116774] BUG: Bad page map in p

[PATCH RESEND 8/8] Drivers: hv: vmbus: Teardown clockevent devices on module unload

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> Newly introduced clockevent devices made it impossible to unload hv_vmbus module as clockevents_config_and_register() takes additional reverence to the module. To make it possible again we do the following: - avoid setting dev->owner for clocke

[PATCH RESEND 5/8] Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> We need to destroy hv_vmbus_con on module shutdown, otherwise the following crash is sometimes observed: [ 76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0 [ 82.598859] BUG: unable to handle kernel paging req

[PATCH RESEND 4/8] Drivers: hv: vmbus: avoid double kfree for device_obj

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> On driver shutdown device_obj is being freed twice: 1) In vmbus_free_channels() 2) vmbus_device_release() (which is being triggered by device_unregister() in vmbus_device_unregister(). This double kfree leads to the following sporadic crash

[PATCH RESEND 7/8] clockevents: export clockevents_unbind_device instead of clockevents_unbind

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> It looks like clockevents_unbind is being exported by mistake as: - it is static; - it is not listed in include/linux/clockchips.h; - EXPORT_SYMBOL_GPL(clockevents_unbind) follows clockevents_unbind_device() implementation. I think clockeven

[PATCH RESEND 1/8] Drivers: hv: vmbus: prevent cpu offlining on newer hypervisors

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When an SMP Hyper-V guest is running on top of 2012R2 Server and secondary cpus are sent offline (with echo 0 > /sys/devices/system/cpu/cpu$cpu/online) the system freeze is observed. This happens due to the fact that on newer hypervisors (Win8, WS2012R2, ...) vmbus channel

[PATCH RESEND 2/8] Drivers: hv: vmbus: rename channel work queues

2015-01-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> All channel work queues are named 'hv_vmbus_ctl', this makes them indistinguishable in ps output and makes it hard to link to the corresponding vmbus device. Rename them to hv_vmbus_ctl/N and make vmbus device names match, e.g. now vmbus_1 devi

[PATCH RESEND 3/8] drivers:hv:vmbus drivers:hv:vmbus Allow for more than one MMIO range for children

2015-01-27 Thread K. Y. Srinivasan
From: Jake Oshins <[mailto:ja...@microsoft.com]> This set of changes finds the _CRS object in the ACPI namespace that contains memory address space descriptors, intended to convey to VMBus which ranges of memory-mapped I/O space are available for child devices, and then builds a resource list that

[PATCH 0/8] Drivers: hv: vmbus: Enable unloading of vmbus driver

2015-01-27 Thread K. Y. Srinivasan
Windows hosts starting with Ws2012 R2 permit re-establishing the vmbus connection from the guest. This patch-set includes patches from Vitaly to cleanup the VMBUS unload path so we can potentially reload the driver. This set also includes a patch from Jake to correctly extract MMIO information on

[PATCH] staging: iio: adc: mxs-lradc: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'int' but the argument type is 'unsigned int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/adc/mxs-lradc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH] staging: iio: resolver: ad2s1210: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'int' but the argument type is 'unsigned int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/resolver/ad2s1210.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH] staging: iio: magnetometer: hmc5843_core: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'int' but the argument type is 'unsigned int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/magnetometer/hmc5843_core.c |2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH] staging: iio: light: tsl2x7x_core: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'int' but the argument type is 'unsigned int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/light/tsl2x7x_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] staging: iio: light: tsl2583: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'int' but the argument type is 'unsigned int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/light/tsl2583.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH] staging: iio: impedance-analyzer: ad5933: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'int' but the argument type is 'unsigned int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/impedance-analyzer/ad5933.c |4 ++-- 1 file changed, 2 insertions(+), 2 d

[PATCH] staging: lustre: libcfs: nidstrings: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'unsigned int' but the argument type is 'int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/lustre/lustre/libcfs/nidstrings.c | 10 +- 1 file changed, 5 insertions

[PATCH] staging: iio: trigger: iio-trig-periodic-rtc: Change type in printf format string

2015-01-27 Thread Rickard Strandqvist
Wrong type in printf format string, requires 'unsigned int' but the argument type is 'int' This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/iio/trigger/iio-trig-periodic-rtc.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 0/6] Fix fbtft/fb_pcd8544.c coding style errors

2015-01-27 Thread Joe Perches
On Tue, 2015-01-27 at 22:30 +0200, Heba Aamer wrote: > This patch set fixes most of the checkpatch.pl coding > style errors found in drivers/staging/fbtft/fb_pcd8544.c > > Heba Aamer (6): > staging: fbtft: fix space required after that ';' > staging: fbtft: fix spaces required around that '='

[PATCH 6/6] staging: fbtft: fix trailing whitespace

2015-01-27 Thread Heba Aamer
This patch fixes the following checkpatch.pl error: fix trailing whitespace Signed-off-by: Heba Aamer --- drivers/staging/fbtft/fb_pcd8544.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd8544.c index

[PATCH 5/6] staging: fbtft: fix do not initialise statics to 0 or NULL

2015-01-27 Thread Heba Aamer
This patch fixes the following checkpatch.pl error: fix do not initialise statics to 0 or NULL Signed-off-by: Heba Aamer --- drivers/staging/fbtft/fb_pcd8544.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pc

[PATCH 4/6] staging: fbtft: fix Macros with complex values should be enclosed in parentheses

2015-01-27 Thread Heba Aamer
This patch fixes the following checkpatch.pl error: fix Macros with complex values should be enclosed in parentheses Signed-off-by: Heba Aamer --- drivers/staging/fbtft/fb_pcd8544.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drive

RE: [PATCH v2 0/6] staging: comedi: comedi_compat32.[ch] fix and tidy up

2015-01-27 Thread Hartley Sweeten
On Tuesday, January 27, 2015 11:17 AM, Ian Abbott wrote: > Fix a bug in the handling of the 32-bit compatible version of the > COMEDI_CMD ioctl and tidy up the rest of the 32-bit compatible ioctl > handling code a bit. > > v2: fix minor niggle in patch 1 and drop patch 7. > > 1) staging: comedi: co

[PATCH 3/6] staging: fbtft: fix spaces required around that '<'

2015-01-27 Thread Heba Aamer
This patch fixes the following checkpatch.pl error: fix spaces required around that '<' Signed-off-by: Heba Aamer --- drivers/staging/fbtft/fb_pcd8544.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd

[PATCH 2/6] staging: fbtft: fix spaces required around that '='

2015-01-27 Thread Heba Aamer
This patch fixes the following checkpatch.pl error: fix spaces required around that '=' Signed-off-by: Heba Aamer --- drivers/staging/fbtft/fb_pcd8544.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd

[PATCH 1/6] staging: fbtft: fix space required after that ';'

2015-01-27 Thread Heba Aamer
This patch fixes the following checkpatch.pl error: fix space required after that ';' Signed-off-by: Heba Aamer --- drivers/staging/fbtft/fb_pcd8544.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd85

[PATCH 0/6] Fix fbtft/fb_pcd8544.c coding style errors

2015-01-27 Thread Heba Aamer
This patch set fixes most of the checkpatch.pl coding style errors found in drivers/staging/fbtft/fb_pcd8544.c Heba Aamer (6): staging: fbtft: fix space required after that ';' staging: fbtft: fix spaces required around that '=' staging: fbtft: fix spaces required around that '<' staging:

RE: [PATCH 0/9] staging: comedi: introduce comedi_usb.h header

2015-01-27 Thread Hartley Sweeten
On Tuesday, January 27, 2015 10:49 AM, Ian Abbott wrote: > "comedidev.h" includes USB-specific stuff that gets included by all > comedi drivers including non-USB ones. Separate it out into its own > header "comedi_usb.h". Make the new header include and > "comedidev.h" so that comedi USB drivers

[PATCH v3 3/6] staging: comedi: comedi_compat32.c: reformat copyright comment

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Signed-off-by: Ian Abbott --- v2: no change v3: corrected commit summary line --- drivers/staging/comedi/comedi_compat32.c | 38 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/staging/comedi/comedi_compa

Re: [PATCH v2 3/6] staging: comedi: comedi_compat.c: reformat copyright comment

2015-01-27 Thread Ian Abbott
Bugger! That should be "comedi_compat32.c", not "comedi_compat.c". -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Web: http://www.mev.co.uk/ )=- ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdrive

Re: [PATCH v2] staging: unisys: rework signal remove/insert to avoid sparse lock warnings

2015-01-27 Thread Romer, Benjamin M
On Sun, 2015-01-25 at 19:48 +0800, Greg KH wrote: > On Sat, Jan 17, 2015 at 10:39:53PM +1100, Zachary Warren wrote: > > Avoids the following warnings from sparse: > > visorchannel_funcs.c:457:9: warning: > > context imbalance in 'visorchannel_signalremove' - different lock contexts > > for basic

[PATCH v2 0/6] staging: comedi: comedi_compat32.[ch] fix and tidy up

2015-01-27 Thread Ian Abbott
Fix a bug in the handling of the 32-bit compatible version of the COMEDI_CMD ioctl and tidy up the rest of the 32-bit compatible ioctl handling code a bit. v2: fix minor niggle in patch 1 and drop patch 7. 1) staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back 2) staging: comedi: comedi_

[PATCH v2 1/6] staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back

2015-01-27 Thread Ian Abbott
`do_cmd_ioctl()` in "comedi_fops.c" handles the `COMEDI_CMD` ioctl. This returns `-EAGAIN` if it has copied a modified `struct comedi_cmd` back to user-space. (This occurs when the low-level Comedi driver's `do_cmdtest()` handler returns non-zero to indicate a problem with the contents of the `str

[PATCH v2 6/6] staging: comedi: comedi_compat32.c: absorb raw_ioctl()

2015-01-27 Thread Ian Abbott
`comedi_compat_ioctl()` just calls static inline function `raw_ioctl()` with the same parameters (although the former returns a `long` and the latter returns an `int`). Since `raw_ioctl()` is not called from anywhere else, just absorb its body into `comedi_compat_ioctl()`. Signed-off-by: Ian Abbo

[PATCH v2 4/6] staging: comedi: comedi_compat32.c: reformat other block comments

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Combine some consecutive comments into block comments. Also remove part of a comment referring to `ptr_to_compat()` not being implemented until kernel version 2.6.11 as it's irrelevant. Signed-off-by: Ian Abbott --- v2: no change --- drivers/staging/comedi/co

[PATCH v2 2/6] staging: comedi: comedi_compat32.h: reformat copyright comment

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Signed-off-by: Ian Abbott --- v2: no change --- drivers/staging/comedi/comedi_compat32.h | 38 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/staging/comedi/comedi_compat32.h b/drivers/staging/comedi/co

[PATCH v2 3/6] staging: comedi: comedi_compat.c: reformat copyright comment

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Signed-off-by: Ian Abbott --- v2: no change --- drivers/staging/comedi/comedi_compat32.c | 38 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/staging/comedi/comedi_compat32.c b/drivers/staging/comedi/co

[PATCH v2 5/6] staging: comedi: comedi_compat32.c: align some comments

2015-01-27 Thread Ian Abbott
Align some comments attached to members of the 32-bit compatibility structure definitions. These comments describe the original pointer types that are being represented by a `compat_uptr_t`. Signed-off-by: Ian Abbott --- v2: no change --- drivers/staging/comedi/comedi_compat32.c | 10 +-

[PATCH] Staging: rtl8192u: Use put_unaligned_le16 in rtl819x_BAProc.c

2015-01-27 Thread Vaishali Thakkar
This patch introduces the use of function put_unaligned_le16. This is done using Coccinelle and semantic patch used is as follows: @a@ typedef u16, __le16, uint16_t; {u16,__le16,uint16_t} e16; identifier tmp; expression ptr; expression y,e; type T; type T; @@ - tmp = cpu_to_le16(y); <+... when

Re: [PATCH 1/7] staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back

2015-01-27 Thread Ian Abbott
On 27/01/15 17:20, Hartley Sweeten wrote: On Tuesday, January 27, 2015 8:59 AM, Ian Abbott wrote: On 27/01/15 15:50, Ian Abbott wrote: `do_cmd_ioctl()` in "comedi_fops.c" handles the `COMEDI_CMD` ioctl. This returns `-EAGAIN` if it has copied a modified `struct comedi_cmd` back to user-space.

[PATCH 3/9] staging: comedi: dt9812: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "../comedi_usb.h" header instead of and "../comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/dt9812.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt9812.c

[PATCH 1/9] staging: comedi: add comedi_usb.h

2015-01-27 Thread Ian Abbott
Add a new header that Comedi USB drivers can include instead of "comedidev.h". Currently, it just pulls in and "comedidev.h", but the plan is to migrate the USB-specific stuff from "comedidev.h" here. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_usb.h | 30 ++

[PATCH 7/9] staging: comedi: usbduxsigma: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "../comedi_usb.h" header instead of and "../comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/usbduxsigma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/usbdu

[PATCH 2/9] staging: comedi: comedi_usb.c: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "comedi_usb.h" header instead of and "comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_usb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/comedi_usb.c b/drivers/stag

[PATCH 8/9] staging: comedi: vmk80xx: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "../comedi_usb.h" header instead of and "../comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/vmk80xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/vmk80xx.c

[PATCH 0/9] staging: comedi: introduce comedi_usb.h header

2015-01-27 Thread Ian Abbott
"comedidev.h" includes USB-specific stuff that gets included by all comedi drivers including non-USB ones. Separate it out into its own header "comedi_usb.h". Make the new header include and "comedidev.h" so that comedi USB drivers do not need to include them explicitly. 1) staging: comedi: add

[PATCH 6/9] staging: comedi: usbduxfast: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "../comedi_usb.h" header instead of and "../comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/usbduxfast.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/usbdux

[PATCH 5/9] staging: comedi: usbdux: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "../comedi_usb.h" header instead of and "../comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/usbdux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/usbdux.c

[PATCH 9/9] staging: comedi: comedi_usb.h: move USB stuff out of comedidev.h

2015-01-27 Thread Ian Abbott
Move the USB-specific stuff out of "comedidev.h" into "comedi_usb.h". Comedi USB drivers now include "comedi_usb.h" instead of "comedidev.h", which now gets pulled in indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_usb.h | 24 ++-- drivers/staging/come

[PATCH 4/9] staging: comedi: ni_usb6501: include new "comedi_usb.h" header

2015-01-27 Thread Ian Abbott
Include the new "../comedi_usb.h" header instead of and "../comedidev.h", which will now get included indirectly. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/ni_usb6501.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_usb

RE: [PATCH 1/7] staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back

2015-01-27 Thread Hartley Sweeten
On Tuesday, January 27, 2015 8:59 AM, Ian Abbott wrote: > On 27/01/15 15:50, Ian Abbott wrote: >> `do_cmd_ioctl()` in "comedi_fops.c" handles the `COMEDI_CMD` ioctl. >> This returns `-EAGAIN` if it has copied a modified `struct comedi_cmd` >> back to user-space. (This occurs when the low-level Com

[PATCH v2 3/5] drivers: hv: Teardown synthetic interrupt controllers on module unload

2015-01-27 Thread Vitaly Kuznetsov
SynIC has to be switched off when we unload the module, otherwise registered memory pages can get corrupted after (as Hyper-V host still writes there) and we see the following crashes for random processes: [ 89.116774] BUG: Bad page map in process sh pte:4989c716 pmd:36f81067 [ 89.159454] add

[PATCH v2 2/5] Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown

2015-01-27 Thread Vitaly Kuznetsov
We need to destroy hv_vmbus_con on module shutdown, otherwise the following crash is sometimes observed: [ 76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0 [ 82.598859] BUG: unable to handle kernel paging request at a0003480 [ 82.599287] IP: [] 0xff

[PATCH v2 4/5] clockevents: export clockevents_unbind_device instead of clockevents_unbind

2015-01-27 Thread Vitaly Kuznetsov
It looks like clockevents_unbind is being exported by mistake as: - it is static; - it is not listed in include/linux/clockchips.h; - EXPORT_SYMBOL_GPL(clockevents_unbind) follows clockevents_unbind_device() implementation. I think clockevents_unbind_device should be exported instead. This is go

[PATCH v2 5/5] Drivers: hv: vmbus: Teardown clockevent devices on module unload

2015-01-27 Thread Vitaly Kuznetsov
Newly introduced clockevent devices made it impossible to unload hv_vmbus module as clockevents_config_and_register() takes additional reverence to the module. To make it possible again we do the following: - avoid setting dev->owner for clockevent devices; - implement hv_synic_clockevents_cleanup(

[PATCH v2 0/5] Drivers: hv: vmbus: fix crashes on hv_vmbus load/unload path

2015-01-27 Thread Vitaly Kuznetsov
Changes since v1: - '[PATCH 2/3] Drivers: hv: vmbus: introduce vmbus_acpi_remove' was dropped in favor of Jake's '[PATCH v2 1/1] drivers:hv:vmbus drivers:hv:vmbus Allow for more than one MMIO range for children'. It is required to make unload/load work on Gen2 instances. - Added '[PATCH v2 3

[PATCH v2 1/5] Drivers: hv: vmbus: avoid double kfree for device_obj

2015-01-27 Thread Vitaly Kuznetsov
On driver shutdown device_obj is being freed twice: 1) In vmbus_free_channels() 2) vmbus_device_release() (which is being triggered by device_unregister() in vmbus_device_unregister(). This double kfree leads to the following sporadic crash on driver unload: [ 23.469876] general protection fa

Re: [PATCH 3.19.0-rc5 02/02] STAGING: Fix pcl818.c coding style issue: line over 80 characters

2015-01-27 Thread Ian Abbott
On 26/01/15 16:59, Simon Guo wrote: Correct one coding style problem(detected by checkpatch.pl) in pcl818.c. - line over 80 characters Signed-off-by: Simon Guo --- drivers/staging/comedi/drivers/pcl818.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) Reviewed-by: Ia

Re: [PATCH 1/7] staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back

2015-01-27 Thread Ian Abbott
On 27/01/15 15:50, Ian Abbott wrote: `do_cmd_ioctl()` in "comedi_fops.c" handles the `COMEDI_CMD` ioctl. This returns `-EAGAIN` if it has copied a modified `struct comedi_cmd` back to user-space. (This occurs when the low-level Comedi driver's `do_cmdtest()` handler returns non-zero to indicate

Re: [PATCH 3.19.0-rc5 01/02] STAGING: Fix pcl818.c coding style issue: code indent should use tabs where possible

2015-01-27 Thread Ian Abbott
[Stripped a non-fully-qualified 'To:' address from the reply.] On 26/01/15 16:58, Simon Guo wrote: Correct one coding style problem(detected by checkpatch.pl) in pcl818.c. - code indent should use tabs where possible It is fixed by reformatting the comment block to usual comment style. And wit

[PATCH 4/7] staging: comedi: comedi_compat32.c: reformat other block comments

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Combine some consecutive comments into block comments. Also remove part of a comment referring to `ptr_to_compat()` not being implemented until kernel version 2.6.11 as it's irrelevant. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_compat32.c |

[PATCH 6/7] staging: comedi: comedi_compat32.c: absorb raw_ioctl()

2015-01-27 Thread Ian Abbott
`comedi_compat_ioctl()` just calls static inline function `raw_ioctl()` with the same parameters (although the former returns a `long` and the latter returns an `int`). Since `raw_ioctl()` is not called from anywhere else, just absorb its body into `comedi_compat_ioctl()`. Signed-off-by: Ian Abbo

[PATCH 7/7] staging: comedi: comedi_compat.c: use long unlocked_ioctl return value

2015-01-27 Thread Ian Abbott
The `unlocked_ioctl` and `compat_ioctl` file operations are both defined to return a `long` (I don't know why). Comedi's `compat_ioctl` handler `comedi_compat_ioctl()` and its helper functions currently assume the `unlocked_ioctl` handler return value will fit in an `int` (which it does, in fact).

[PATCH 5/7] staging: comedi: comedi_compat32.c: align some comments

2015-01-27 Thread Ian Abbott
Align some comments attached to members of the 32-bit compatibility structure definitions. These comments describe the original pointer types that are being represented by a `compat_uptr_t`. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_compat32.c | 10 +- 1 file changed,

[PATCH 0/7] staging: comedi: comedi_compat32.[ch] fix and tidy up

2015-01-27 Thread Ian Abbott
Fix a bug in the handling of the 32-bit compatible version of the COMEDI_CMD ioctl and tidy up the rest of the 32-bit compatible ioctl handling code a bit. 1) staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back 2) staging: comedi: comedi_compat32.h: reformat copyright comment 3) staging:

[PATCH 3/7] staging: comedi: comedi_compat.c: reformat copyright comment

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_compat32.c | 38 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/staging/comedi/comedi_compat32.c b/drivers/staging/comedi/comedi_compat32.c in

[PATCH 2/7] staging: comedi: comedi_compat32.h: reformat copyright comment

2015-01-27 Thread Ian Abbott
Use the usual block comment style. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_compat32.h | 38 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/staging/comedi/comedi_compat32.h b/drivers/staging/comedi/comedi_compat32.h in

[PATCH 1/7] staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back

2015-01-27 Thread Ian Abbott
`do_cmd_ioctl()` in "comedi_fops.c" handles the `COMEDI_CMD` ioctl. This returns `-EAGAIN` if it has copied a modified `struct comedi_cmd` back to user-space. (This occurs when the low-level Comedi driver's `do_cmdtest()` handler returns non-zero to indicate a problem with the contents of the `str

[PATCH 3.19.0-rc5 02/02] STAGING: Fix pcl818.c coding style issue: line over 80 characters

2015-01-27 Thread Simon Guo
Correct one coding style problem(detected by checkpatch.pl) in pcl818.c. - line over 80 characters Signed-off-by: Simon Guo --- drivers/staging/comedi/drivers/pcl818.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl818.c b/

[PATCH 3.19.0-rc5 01/02] STAGING: Fix pcl818.c coding style issue: code indent should use tabs where possible

2015-01-27 Thread Simon Guo
Correct one coding style problem(detected by checkpatch.pl) in pcl818.c. - code indent should use tabs where possible It is fixed by reformatting the comment block to usual comment style. And with the reformatting, following coding style problem is also fixed: - please, no space before tabs Sign

Re: [PATCH v2 0/4] iio: mxs-lradc: fix interactions between the touchscreen and the ADC

2015-01-27 Thread Kristina Martšenko
On 26/01/15 23:01, Jonathan Cameron wrote: > On 25/01/15 18:47, Marek Vasut wrote: >> On Sunday, January 25, 2015 at 05:28:18 PM, Kristina Martšenko wrote: >>> These patches fix some issues with using the touchscreen and reading >>> other ADC channels at the same time. >> >> Entire series >> >> Rev

Re: make allyesconfig i386 build failure with next-20150122 (caused by fb_agm1264k-fl driver)

2015-01-27 Thread Tilman Schmidt
Am 27.01.2015 um 03:42 schrieb Guenter Roeck: > On 01/26/2015 02:46 PM, Greg Kroah-Hartman wrote: >> On Mon, Jan 26, 2015 at 01:59:59PM -0800, Guenter Roeck wrote: >>> On Thu, Jan 22, 2015 at 12:10:33PM -0700, Jim Davis wrote: make ARCH=i386 allyesconfig fails with drivers/staging/bu

Re: [PATCH 0/9] staging: comedi: das16: tidy up driver

2015-01-27 Thread Ian Abbott
On 26/01/15 23:17, H Hartley Sweeten wrote: This series was originally submitted as: [PATCH 0/5] staging: comedi: das16: tidy up ai command operation Ian Abbott pointed out some issues in that series with my changes to the analog input (*do_cmdtest) and (*do_cmd) functions. This series drops

Re: [PATCH 1/5] staging: comedi: das16: simplify cmd->scan_begin_src validation

2015-01-27 Thread Ian Abbott
On 26/01/15 17:25, Hartley Sweeten wrote: On Monday, January 26, 2015 3:29 AM, Ian Abbott wrote: On 23/01/15 23:12, H Hartley Sweeten wrote: The analog input (*do_cmdtest) in this driver currently validates that the scan_begin_src is TRIG_FOLLOW or, if the board can_burst, TRIG_TIMER or TRIG_E

Re: [PATCH] staging: comedi: pcl812: fix logic error in pcl812_ai_setup_dma()

2015-01-27 Thread Ian Abbott
On 26/01/15 21:20, H Hartley Sweeten wrote: commit 92afc2b229038d7b962ae69de5b07bc6c1cf51bf inroduced a logic error in the DMA size calculation. If the 'nsamples' is greater than the 'unread_samples' then DMA needs to be restarted. The current code checks it agains the 'max_samples'. Signed-off

Re: [PATCH v2] staging: rtl8712: fix Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...

2015-01-27 Thread Dan Carpenter
The subject line is too long. > - printk(KERN_INFO "r8712u: Staging version\n"); > + pr_info("r8712u: Staging version\n"); This is a dumb thing to print. Just delete this line. regards, dan carpenter ___ devel mailing list de...@linuxdriverp

Re: [PATCH v2] net: hyperv: else branch not necessary

2015-01-27 Thread David Miller
From: Nicholas Mc Guire Date: Sun, 25 Jan 2015 19:08:37 +0100 > As the if completes with a unconditional goto the else branch > is not needed here. > > Signed-off-by: Nicholas Mc Guire > --- > > v2: added missing subsystem string in subject line - patch unchanged The feedback you were given w