Re: [greybus-dev] [PATCH v2] Staging: greybus: Cleanup in greybus driver

2019-04-16 Thread Viresh Kumar
On 16-04-19, 17:13, Madhumitha Prabakaran wrote: > Fix a blank line after structure declarations. Also, convert > macros into inline functions in order to maintain Linux kernel > coding style based on which the inline function is > preferable over the macro. > > Blank line fixes are suggested by

[PATCH] staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context

2019-04-16 Thread Adham.Abozaeid
From: Adham Abozaeid txq_add_mgmt_pkt allocates memory while being called from atomic context so needs to use GFP_ATOMIC Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 00/26] compat_ioctl: cleanups

2019-04-16 Thread Douglas Gilbert
On 2019-04-16 4:19 p.m., Arnd Bergmann wrote: Hi Al, It took me way longer than I had hoped to revisit this series, see https://lore.kernel.org/lkml/20180912150142.157913-1-a...@arndb.de/ for the previously posted version. I've come to the point where all conversion handlers and most

[PATCH v2] Staging: greybus: Cleanup in greybus driver

2019-04-16 Thread Madhumitha Prabakaran
Fix a blank line after structure declarations. Also, convert macros into inline functions in order to maintain Linux kernel coding style based on which the inline function is preferable over the macro. Blank line fixes are suggested by checkpatch.pl Signed-off-by: Madhumitha Prabakaran Changes

Re: [PATCH v3 09/26] compat_ioctl: move drivers to compat_ptr_ioctl

2019-04-16 Thread Jiri Kosina
On Tue, 16 Apr 2019, Arnd Bergmann wrote: > Each of these drivers has a copy of the same trivial helper function to > convert the pointer argument and then call the native ioctl handler. > > We now have a generic implementation of that, so use it. > > Acked-by: Greg Kroah-Hartman >

[PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-16 Thread Arnd Bergmann
The .ioctl and .compat_ioctl file operations have the same prototype so they can both point to the same function, which works great almost all the time when all the commands are compatible. One exception is the s390 architecture, where a compat pointer is only 31 bit wide, and converting it into

[PATCH v3 09/26] compat_ioctl: move drivers to compat_ptr_ioctl

2019-04-16 Thread Arnd Bergmann
Each of these drivers has a copy of the same trivial helper function to convert the pointer argument and then call the native ioctl handler. We now have a generic implementation of that, so use it. Acked-by: Greg Kroah-Hartman Reviewed-by: Jarkko Sakkinen Reviewed-by: Jason Gunthorpe

[PATCH v3 00/26] compat_ioctl: cleanups

2019-04-16 Thread Arnd Bergmann
Hi Al, It took me way longer than I had hoped to revisit this series, see https://lore.kernel.org/lkml/20180912150142.157913-1-a...@arndb.de/ for the previously posted version. I've come to the point where all conversion handlers and most COMPATIBLE_IOCTL() entries are gone from this file, but

[PATCH] staging: comedi: use help instead of ---help--- in Kconfig

2019-04-16 Thread Moses Christopher
- Resolve the following warning from the Kconfig, "WARNING: prefer 'help' over '---help---' for new help texts" Signed-off-by: Moses Christopher --- drivers/staging/comedi/Kconfig | 254 - 1 file changed, 127 insertions(+), 127 deletions(-) diff --git

[PATCH 2/2] staging: comedi: dyna_pci10xx: Set number of AO channels to 1

2019-04-16 Thread Ian Abbott
The "dyna_pci10xx" driver supports the Dynalog India PCI-1050. There seems to be very little online information available about this card, but as far as I can tell[*], it only has 1 AO (analog output) channel, not 16 AO channels as reported in the Comedi subdevice information. Besides, the Comedi

[PATCH 1/2] staging: comedi: dyna_pci10xx: Don't bother configuring len_chanlist

2019-04-16 Thread Ian Abbott
In the Comedi "attach" and "auto_attach" handlers that set up the Comedi subdevices, there is no need to initialize the `len_chanlist` member of Comedi subdevices that do not support Comedi asynchronous streaming commands. They can be left set to the initial zeroed out value and the Comedi core

[PATCH 0/2] staging: comedi: dyna_pci10xx: Correct subdevice information

2019-04-16 Thread Ian Abbott
The dyna_pci10xx driver reports the wrong number of channels on its analog output subdevice, but that is mostly harmless as the Comedi "insn_write" instruction handler does nothing with the requested channel number, but let's fix it. Also, don't bother configuring the maximum length of channel

Re: [PATCH] Staging: mt7621-mmc: Use DIV_ROUND_UP in function msdc_set_mclk

2019-04-16 Thread Greg KH
On Wed, Apr 03, 2019 at 10:16:08AM -0500, Madhumitha Prabakaran wrote: > Use DIV_ROUND_UP to make code simple and more understandable. > > Signed-off-by: Madhumitha Prabakaran > --- > drivers/staging/mt7621-mmc/sd.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH] Staging: olpc_dcon: Use WARN_ON() instead of BUG_ON()

2019-04-16 Thread Greg KH
On Fri, Apr 05, 2019 at 02:28:36PM -0500, Madhumitha Prabakaran wrote: > Use WARN_ON() instead of BUG_ON(), as the WARN_ON() produces a backtrace > without crashing the kernel. > > Issue found by checkpatch.pl. > > Signed-off-by: Madhumitha Prabakaran > --- >

Re: [PATCH 1/2] vt: selection: allow functions to be called from inside kernel

2019-04-16 Thread Greg Kroah-Hartman
On Thu, Apr 04, 2019 at 08:45:29PM +0100, Okash Khawaja wrote: > This patch breaks set_selection() into two functions so that when > called from kernel, copy_from_user() can be avoided. It also exports > set_selection() and paste_selection(). > > These changes are used the following patch where

Re: [PATCH v2] staging: rtl8192u: ieee80211: fix checkpatch space errors

2019-04-16 Thread Greg KH
On Sat, Apr 06, 2019 at 07:02:23PM -0300, Caio Salvador Rohwedder wrote: > Fix checkpatch space coding style errors, warnings and checks on > rtl819x_TSProc.c > > Signed-off-by: Caio Salvador Rohwedder > --- > Changes in v2: > - change commit message > - fix remaining space errors >

Re: [PATCH] staging: gasket: replace symbolic permissions with octal permissions

2019-04-16 Thread Greg KH
On Wed, Apr 10, 2019 at 03:58:48PM +0530, Himadri Pandya wrote: > Resolve checkpatch warning for using symbolic permissions by replacing > them with octal permissions. > > Signed-off-by: Himadri Pandya > --- > drivers/staging/gasket/gasket_sysfs.h | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] staging: gdm724x: Add parenthesis to Macro arguments

2019-04-16 Thread Greg KH
On Mon, Apr 08, 2019 at 02:37:58PM -0300, Andre wrote: > Hi Greg, thanks for replying. > > On 03/04/2019 01:26, Greg KH wrote: > > On Tue, Apr 02, 2019 at 10:04:05PM -0300, Andre Dainez wrote: > >> Fix checkpatch errors: > >> > >> CHECK: Macro argument 'len' may be better as '(len)' to avoid

Re: [PATCH] staging: comedi: adv_pci1710: fix spelling mistake: "droput" -> "dropout"

2019-04-16 Thread Ian Abbott
On 15/04/2019 18:49, Colin King wrote: From: Colin Ian King There is a spelling mistake in a dev_error message. Fix it. Signed-off-by: Colin Ian King Looks good, thanks! Reviewed-by: Ian Abbott --- drivers/staging/comedi/drivers/adv_pci1710.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] staging: comedi: adv_pci1710: fix spelling mistake: "droput" -> "dropout"

2019-04-16 Thread Mukesh Ojha
On 4/15/2019 11:19 PM, Colin King wrote: From: Colin Ian King There is a spelling mistake in a dev_error message. Fix it. Signed-off-by: Colin Ian King Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/staging/comedi/drivers/adv_pci1710.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] staging: wilc1000: fix spelling mistake "dissconect" -> "disconnect"

2019-04-16 Thread Mukesh Ojha
On 4/15/2019 10:03 PM, Colin King wrote: From: Colin Ian King There is a spelling mistake in a netdev_err error message, fix it. Signed-off-by: Colin Ian King Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1