[PATCH 28/42] staging: comedi: ni_660x: tidy up the misc. constants

2016-03-19 Thread H Hartley Sweeten
Remove enum ni_660x_constants and just #define the value. Move all the constant #defines so they are in one place and rename them so they are more conesistent. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 49

Re: [PATCH] drivers: staging: unisys: visornic: Fixed block comment coding style warnings

2016-03-19 Thread Greg KH
On Wed, Mar 16, 2016 at 07:01:51PM -0700, Gavin O'Leary wrote: > Fixed block comment checkpatch warnings. > > Signed-off-by: Gavin O'Leary > --- > drivers/staging/unisys/visornic/visornic_main.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Gustavo Padovan
2016-03-17 Joe Perches : > On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: > > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: > [] > > > It's a name that seems like it should be a straightforward > > > cast of a kernel pointer to a __user pointer like: > > > > > > static inline void __u

[PATCH 32/42] staging: comedi: ni_660x: disable interrupts when detaching driver

2016-03-19 Thread H Hartley Sweeten
Make sure the interrupts are disabled before freeing the irq. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/d

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Joe Perches
On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: [] > > It's a name that seems like it should be a straightforward > > cast of a kernel pointer to a __user pointer like: > > > > static inline void __user *to_user_ptr(void *p) > > { > >

[PATCH 1/9] rtlwifi: Fix Smatch warnings

2016-03-19 Thread Larry Finger
Smatch reports the following: CHECK drivers/net/wireless/realtek/rtlwifi/pci.c drivers/net/wireless/realtek/rtlwifi/pci.c:366 rtl_pci_check_buddy_priv() error: we previously assumed 'tpriv' could be null (see line 368) drivers/net/wireless/realtek/rtlwifi/pci.c:1216 _rtl_pci_init_struct() war

RE: [PATCH] staging/comedi/dt282x: avoid integer overflow warning

2016-03-19 Thread Hartley Sweeten
On Tuesday, March 15, 2016 2:50 PM, Arnd Bergmann wrote: > On Tuesday 15 March 2016 21:35:40 Hartley Sweeten wrote: >> On Monday, March 14, 2016 3:48 PM, Arnd Bergmann wrote: >>> gcc-6 warns about passing negative signed integer into swab16() >>> in the dt282x driver: >> >> >> >>> The warning ma

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Rob Clark
On Thu, Mar 17, 2016 at 4:22 PM, Joe Perches wrote: > On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: >> 2016-03-17 Gustavo Padovan : >> > 2016-03-17 Joe Perches : >> > > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: >> > > > >> > > > This function had copies in 3 different f

[PATCH 01/42] staging: comedi: ni_660x: change IOConfigReg() into a macro

2016-03-19 Thread H Hartley Sweeten
The BUG_ON() in this function is unnecessary. The 'pfi_channel' will always be in range of the subdevice 'n_chan' (NUM_PFI_CHANNELS) which will return a valid 'reg'. Convert the inline function into a simple macro. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dri

[PATCH 6/9] rtlwifi: rtl8192se: Fix Smatch warning

2016-03-19 Thread Larry Finger
Smatch lists the following: CHECK drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c:648 rtl92s_phy_set_rf_power_state() warn: inconsistent indenting Signed-off-by: Larry Finger --- drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c

[PATCH 2/2] rtlwifi: btcoexist: Implement antenna selection

2016-03-19 Thread Larry Finger
The previous patch added an option to rtl8723be to manually select the antenna for those cases when only a single antenna is present, and the on-board EEPROM is incorrectly programmed. This patch implements the necessary changes in the Bluetooth coexistence driver. Signed-off-by: Larry Finger Cc:

[PATCH 40/42] staging: comedi: ni_660x: remove spinlock 'dma_cfg_lock'

2016-03-19 Thread H Hartley Sweeten
This spinlock is only used to protect changes to the private data 'dma_cfg'. Before calling any function that would change the 'dma_cfg' the spinlock 'mite_channel_lock' is also locked. That spinlock is not unlocked until after the 'dma_cfg' change. Remove the redundant spinlock. Signed-off-by:

RE: RE

2016-03-19 Thread Robert
Did you get my previous message i sent to you? when and what time can i call you? ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [patch] staging: lustre: checking for NULL instead of IS_ERR

2016-03-19 Thread Dilger, Andreas
On 2016/03/17, 23:42, "Dan Carpenter" wrote: >lustre_cfg_new() returns error pointers on error, it never returns NULL. > >Signed-off-by: Dan Carpenter > >diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c >b/drivers/staging/lustre/lustre/mgc/mgc_request.c >index 65caffe..b7dc872 100644

Re: [PATCH] staging: most: hdm-dim2: Remove possible dereference error

2016-03-19 Thread Amitoj Kaur Chawla
On Fri, Mar 18, 2016 at 7:44 PM, Andrey Shvetsov wrote: > On Fri, Mar 18, 2016 at 06:32:15PM +0530, Amitoj Kaur Chawla wrote: >> Commit 3eced21a5afb ("staging: most: hdm-dim2: Replace request_irq >> with devm_request_irq") introduced the following static checker >> warning: >> drivers/staging/most

Re: [PATCH] staging: r8723au: This patch tries to fix some byte order issues that is found by sparse check.

2016-03-19 Thread Julian Calaby
Hi Jandy, On Thu, Mar 17, 2016 at 7:03 PM, Jandy Gou wrote: > make C=1 M=drivers/staging/rtl8723au/ > > drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:96:38: warning: cast to > restricted __le16 > drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:100:27: warning: cast to > restricted __le32 > > Signed-o

Re: [PATCH] staging: rtl8192e: fixed coding style issues

2016-03-19 Thread Greg KH
On Thu, Mar 17, 2016 at 06:21:55PM +, Yousof El-Sayed wrote: > staging: rtl8192e - dot11d.c ??? > > [patch 1/2] Fixed throughout: > spaces preferred around that '+' (ctx:VxV) > > [patch 2/2] Fixed throughout: > Please don't use multiple blank lines What are these? You put 2 patches inside

[PATCH 1/5] Drivers: hv: vmbus: Introduce functions for estimating room in the ring buffer

2016-03-19 Thread K. Y. Srinivasan
Introduce separate functions for estimating how much can be read from and written to the ring buffer. Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 24 include/linux/hyperv.h | 27 +++ 2 files changed, 31 insertions(+), 20 d

[PATCH v2] staging/comedi/dt282x: avoid integer overflow warning

2016-03-19 Thread Arnd Bergmann
gcc-6 warns about passing negative signed integer into swab16() in the dt282x driver: drivers/staging/comedi/drivers/dt282x.c: In function 'dt282x_load_changain': include/uapi/linux/swab.h:14:33: warning: integer overflow in expression [-Woverflow] (((__u16)(x) & (__u16)0xff00U) >> 8))) ~

Re: [PATCH] staging/comedi/dt282x: avoid integer overflow warning

2016-03-19 Thread Arnd Bergmann
On Wednesday 16 March 2016 17:04:15 Hartley Sweeten wrote: > > #define DT2821_SUPCSR_DS_AD_TRIG (3 << 10) > > Use a helper macro for those bits: > > #define DT2821_SUPCSR_DS(x) (((x) & 0x3) << 10) > #define DT2821_SUPCSR_DS_PIODT2821_SUPCSR_DS(0) > #define DT2821_SUP

[PATCH 26/42] staging: comedi: ni_660x: add comments for the spinlock_t definitions

2016-03-19 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: CHECK: spinlock_t definition without comment For aesthetics, rename the 'soft_reg_copy_lock' to clarify what it's used for. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 16 +---

Re: [PATCH] Staging: rtl8192e: fix line length coding style issue in rtllib_softmac.c

2016-03-19 Thread Greg KH
On Fri, Mar 18, 2016 at 10:54:42AM +, Yousof El-Sayed wrote: > This is a patch to the rtllib_softmac.c file that fixes up all instances of > the 'line over 80 characters' warnings found by the checkpatch.pl tool Your changelog should be wrapped, ironic given the contents of your patch :( Ple

[PATCH 09/42] staging: comedi: ni_660x: cleanup the NI660X_DMA_CFG register helpers

2016-03-19 Thread H Hartley Sweeten
The BUG_ON() checks in the helper functions are not necessary. The mite driver quiries the PCI chip to determine the number of DMA channels. This is then used when a DMA channel is requested so the channel will always be in range. Convert the inline functions used to set the bits in the NI600X_DMA

[PATCH 8/9] rtlwifi: rtl8723be: Fix Smatch warnings

2016-03-19 Thread Larry Finger
Smatch reports the following: CHECK drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:1726 _rtl8723be_phy_path_a_rx_iqk() warn: inconsistent indenting drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2304 _rtl8723be_phy_lc_calibrate

[PATCH 39/42] staging: comedi: ni_660x: remove ni_gpct_to_660x_register[]

2016-03-19 Thread H Hartley Sweeten
enum ni_gpct_register and enum ni_660x_register now have a 1:1 relationship for the NITIO_* registers. The static const array is no longer necessary to find the proper NI660X_* register for a given NITIO_*. Remove it and refactor the register read/write functions. Use the NITIO_* values to init th

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Rob Clark
On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: > On Thu, 2016-03-17 at 16:33 -0400, Rob Clark wrote: >> On Thu, Mar 17, 2016 at 4:22 PM, Joe Perches wrote: >> > On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: >> > > 2016-03-17 Gustavo Padovan : >> > > > 2016-03-17 Joe Perches : >>

Re: [PATCH] staging: unisys: visornic: Fixed Checkpatch Warnings

2016-03-19 Thread Greg KH
On Wed, Mar 16, 2016 at 06:24:47PM -0700, Gavin O'Leary wrote: > Fixed the coding style checkpatch warnings. Which ones? Always be specific. And only fix one type of thing at a time. > > Signed-off-by: Gavin O'Leary > --- > drivers/staging/unisys/visornic/visornic_main.c | 16 ++-

[PATCH v9 1/3] staging/android: remove redundant comments on sync_merge_data

2016-03-19 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Daniel Vetter
On Thu, Mar 17, 2016 at 02:33:50PM -0700, Joe Perches wrote: > On Thu, 2016-03-17 at 18:19 -0300, Gustavo Padovan wrote: > > 2016-03-17 Joe Perches : > > > On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: > > > > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: > > > [] > > > > > It's a name

[PATCH] Staging: rtl8192e: fix line length coding style issue in rtllib_softmac.c

2016-03-19 Thread Yousof El-Sayed
This is a patch to the rtllib_softmac.c file that fixes up all instances of the 'line over 80 characters' warnings found by the checkpatch.pl tool Signed-off-by: Yousof El-Sayed --- drivers/staging/rtl8192e/rtllib_softmac.c | 35 +++ 1 file changed, 22 insertions(+),

[PATCH] staging: wilc1000: fixed kernel panic when firmware is not started

2016-03-19 Thread Leo Kim
This patch fixed the problems caused by if firmware is not started. That is why, in nl80211 put current TX power in interface info. If firmware is not started, this function(get_tx_power) does not work. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 7 +++ 1 f

[PATCH 04/42] staging: comedi: ni_660x: remove enum ni_660x_register_direction

2016-03-19 Thread H Hartley Sweeten
This enum is used to define the, unused, 'direction' of each register in struct NI_660xRegisterData. Remove the unused member, as well as the enum. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 203 +++-

RE: [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-19 Thread KY Srinivasan
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Wednesday, March 16, 2016 4:08 PM > To: Martin K. Petersen ; KY Srinivasan > > Cc: Christoph Hellwig ; gre...@linuxfoundation.org; > linux-ker...@vger.kernel.org; de...@linuxdriverproject.

Re: [PATCH] dma-buf, drm, ion: Propagate error code from dma_buf_start_cpu_access()

2016-03-19 Thread Daniel Vetter
On Fri, Mar 18, 2016 at 08:02:39PM +, Chris Wilson wrote: > Drivers, especially i915.ko, can fail during the initial migration of a > dma-buf for CPU access. However, the error code from the driver was not > being propagated back to ioctl and so userspace was blissfully ignorant > of the failur

Re: [PATCH 2/2] isdn: i4l: move active-isdn drivers to staging

2016-03-19 Thread Tilman Schmidt
Am 07.03.2016 um 07:57 schrieb Holger Schurig: > I know that in Germany a good amount of land-line telephone line are > still using ISDN. [...] > Especially company line are using ISDN still, and there are some Linux > programs that act on then, e.g. Asterisk and derived PBX software has > ISDN sup

[PATCH] staging: skein: threefish_block: Use ror64

2016-03-19 Thread Joe Perches
Use the inline instead of direct code to improve readability and shorten the code a little. Done with perl: $ perl -p -i -e 's/\((\w+) \>\> (\d+)\) \| \(\1 \<\< \(64 \- \2\)\)/ror64(\1, \2)/g' drivers/staging/skein/threefish_block.c Signed-off-by: Joe Perches --- drivers/staging/skein/threefi

[PATCH] staging: unisys: visornic: Fixed Checkpatch Warnings

2016-03-19 Thread Gavin O'Leary
Fixed the coding style checkpatch warnings. Signed-off-by: Gavin O'Leary --- drivers/staging/unisys/visornic/visornic_main.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/vi

Re: [PATCH] staging: r8723au: This patch tries to fix some byte order issues that is found by sparse check.

2016-03-19 Thread Jes Sorensen
Julian Calaby writes: > Hi Jandy, > > On Thu, Mar 17, 2016 at 7:03 PM, Jandy Gou > wrote: >> make C=1 M=drivers/staging/rtl8723au/ >> >> drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:96:38: warning: cast to >> restricted __le16 >> drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:100:27: warning: cast

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Joe Perches
On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: > 2016-03-17 Gustavo Padovan : > > 2016-03-17 Joe Perches : > > > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: > > > > > > > > This function had copies in 3 different files. Unify them in > > > > kernel.h. > > > This is only us

[PATCH] staging: rtl8192e: fixed coding style issues

2016-03-19 Thread Yousof El-Sayed
Signed-off-by: Yousof El-Sayed --- drivers/staging/rtl8192e/dot11d.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index 4d8fb41..a08bfef 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++

[PATCH] staging: unisys: visornic: Made comments look nicer

2016-03-19 Thread Gavin O'Leary
Made comments not break coding style guidlines and easier to read. Signed-off-by: Gavin O'Leary --- drivers/staging/unisys/visornic/visornic_main.c | 29 +++-- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/d

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Gustavo Padovan
2016-03-17 Gustavo Padovan : > 2016-03-17 Joe Perches : > > > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: > > > This function had copies in 3 different files. Unify them in > > > kernel.h. > > > > This is only used by gpu/drm. > > > > I think this is a poor name for a generic func

Re: [PATCH] staging: comedi: dt282x: tidy up register bit defines

2016-03-19 Thread Ian Abbott
On 17/03/16 17:10, H Hartley Sweeten wrote: Arnd Bergmann pointed out that gcc-6 warns about passing negative signed integer into swab16() due to the macro expansion of 'outw'. It appears that the register map constants are causing the warnings. Actually, it might just be the (1 << 15) ones...

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Shuah Khan
On 03/18/2016 08:12 AM, Javier Martinez Canillas wrote: > Hello Shuah, > > On 03/18/2016 11:01 AM, Shuah Khan wrote: >> On 03/18/2016 07:05 AM, Mauro Carvalho Chehab wrote: >>> Now that media_device_unregister() also does a cleanup, rename it >>> to media_device_unregister_cleanup(). >>> >>> Signe

Re: [PATCH v10 2/3] kernel.h: add u64_to_user_ptr()

2016-03-19 Thread Joe Perches
On Fri, 2016-03-18 at 10:27 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > This function had copies in 3 different files. Unify them in > kernel.h. This function might be used more in drm files in a separate patch too: $ git grep -n -E "__user.*\(\s*uintptr_t\s*\)" drivers/gpu/drm dr

Re: [PATCH] staging: refresh TODO for rtl8723au

2016-03-19 Thread Jes Sorensen
Xose Vazquez Perez writes: > People should not waste time and energy working on this staging driver. > A replacement(rtl8xxxu) using the kernel wireless stack already was merged > in the 4.3 kernel. > > Cc: Jes Sorensen > Cc: Larry Finger > Cc: Kalle Valo > Cc: Greg Kroah-Hartman > Cc: Linux D

RE: [PATCH v2] staging/comedi/dt282x: avoid integer overflow warning

2016-03-19 Thread Hartley Sweeten
On Wednesday, March 16, 2016 1:51 PM, Arnd Bergmann wrote: > > gcc-6 warns about passing negative signed integer into swab16() > in the dt282x driver: > > drivers/staging/comedi/drivers/dt282x.c: In function 'dt282x_load_changain': > include/uapi/linux/swab.h:14:33: warning: integer overflow in exp

[PATCH 3/9] rtlwifi: rtl8188ee: Fix Smatch warnings

2016-03-19 Thread Larry Finger
Smatch reports the following: CHECK drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c:1140 rtl88e_dm_check_txpower_tracking() warn: inconsistent indenting CHECK drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c drivers/net/wireless/

[PATCH 30/42] staging: comedi: ni_660x: ni_gpct_device_destroy() can handle a NULL pointer

2016-03-19 Thread H Hartley Sweeten
Remove the unnecessary NULL pointer check. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comed

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Joe Perches
On Thu, 2016-03-17 at 16:33 -0400, Rob Clark wrote: > On Thu, Mar 17, 2016 at 4:22 PM, Joe Perches wrote: > > On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: > > > 2016-03-17 Gustavo Padovan : > > > > 2016-03-17 Joe Perches : > > > > > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan w

[PATCH 06/42] staging: comedi: ni_660x: cleanup the NI660X_IO_CFG register helpers

2016-03-19 Thread H Hartley Sweeten
Convert the inline functions used to set the bits in the NI600X_IO_CFG registers into macros. Also convert the enum ni_660x_pfi_output_select into defines. This clarifies the association with the register. This also fixes a number of checkpatch.pl issues about: WARNING: Prefer 'unsigned int' to b

[PATCH] staging: r8723au: This patch tries to fix some byte order issues that is found by sparse check.

2016-03-19 Thread Jandy Gou
make C=1 M=drivers/staging/rtl8723au/ drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:96:38: warning: cast to restricted __le16 drivers/staging/rtl8723au/hal/rtl8723a_cmd.c:100:27: warning: cast to restricted __le32 Signed-off-by: Jandy Gou --- drivers/staging/rtl8723au/hal/rtl8723a_cmd.c | 4 ++--

Re: [PATCH 7/9] rtlwifi: rtl8723ae: Fix Smatch warning

2016-03-19 Thread Dan Carpenter
On Thu, Mar 17, 2016 at 01:41:02PM -0500, Larry Finger wrote: > Smatch reports the following: > > CHECK drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c > drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c:137 > rtl8723e_dm_bt_need_to_dec_bt_pwr() warn: inconsistent indenting >

[PATCH] [media] media: rename media unregister function

2016-03-19 Thread Mauro Carvalho Chehab
Now that media_device_unregister() also does a cleanup, rename it to media_device_unregister_cleanup(). Signed-off-by: Mauro Carvalho Chehab --- drivers/media/common/siano/smsdvb-main.c | 2 +- drivers/media/media-device.c | 4 ++-- drivers/media/pci/saa7134/s

[PATCH 08/42] staging: comedi: ni_660x: remove enum clock_config_register_bits

2016-03-19 Thread H Hartley Sweeten
Remove this enum and add a define for the bit. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/st

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Mauro Carvalho Chehab
Em Fri, 18 Mar 2016 16:20:19 +0200 Sakari Ailus escreveu: > Shuah Khan wrote: > > On 03/18/2016 08:12 AM, Javier Martinez Canillas wrote: > >> Hello Shuah, > >> > >> On 03/18/2016 11:01 AM, Shuah Khan wrote: > >>> On 03/18/2016 07:05 AM, Mauro Carvalho Chehab wrote: > Now that media_de

Re: [PATCH v2] staging/comedi/dt282x: avoid integer overflow warning

2016-03-19 Thread Ian Abbott
On 16/03/16 20:51, Arnd Bergmann wrote: gcc-6 warns about passing negative signed integer into swab16() in the dt282x driver: drivers/staging/comedi/drivers/dt282x.c: In function 'dt282x_load_changain': include/uapi/linux/swab.h:14:33: warning: integer overflow in expression [-Woverflow] (((

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Joe Perches
On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: > This function had copies in 3 different files. Unify them in > kernel.h. This is only used by gpu/drm. I think this is a poor name for a generic function that would be in kernel.h. Isn't there an include file in linux/drm that's appropr

Re: [PATCH] staging: unisys: visornic: Made comments look nicer

2016-03-19 Thread Greg KH
On Wed, Mar 16, 2016 at 08:00:45PM -0700, Gavin O'Leary wrote: > Made comments not break coding style guidlines and easier to read. > > Signed-off-by: Gavin O'Leary > --- > drivers/staging/unisys/visornic/visornic_main.c | 29 > +++-- > 1 file changed, 17 insertions(+), 12 d

[PATCH 1/2] staging: wilc1000: Removed braces from single block statements

2016-03-19 Thread Roger H. Newell
This patch corrects warnings generated by checkpatch.pl by removing braces from single block statements. Signed-ff-by: Roger H. Newell --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 31 +-- drivers/staging/wilc1000/wilc_wlan_cfg.c | 3 +-- 2 files changed,

[PATCH 2/2] staging: wilc1000: Replaced comparison to NULL statements

2016-03-19 Thread Roger H. Newell
This patch corrects checks generated by checkpatch.pl by replacing comparison to null statements with equivalent statements in the form "x" or "!x" Signed-off-by: Roger H. Newell --- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/wilc_wlan_cfg.c | 4 ++-- 2 files cha

[PATCH 36/42] staging: comedi: ni_660x: default DIO channels with subdevice init

2016-03-19 Thread H Hartley Sweeten
For aesthetics, move the initialization of the default routing for the DIO channels so it happens when the subdevice is initialized. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 27 +-- 1 file chan

[PATCH 03/42] staging: comedi: ni_660x: remove enum ni_register_width

2016-03-19 Thread H Hartley Sweeten
All the registers are defined struct NI_660xRegisterData and they are either 2 or 4 bytes in size. Remove the enum and just use a char member to define the size as 2 or 4 bytes. Simplify the ni_660x_{write,read}_register() functions and remove the unnecessary BUG() in each. Signed-off-by: H Hartl

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, On 03/18/2016 10:05 AM, Mauro Carvalho Chehab wrote: > Now that media_device_unregister() also does a cleanup, rename it > to media_device_unregister_cleanup(). > I believe there should be a Suggested-by Sakari Ailus tag here. > Signed-off-by: Mauro Carvalho Chehab The patch look

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-19 Thread Gustavo Padovan
2016-03-17 Joe Perches : > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: > > This function had copies in 3 different files. Unify them in > > kernel.h. > > This is only used by gpu/drm. > > I think this is a poor name for a generic function > that would be in kernel.h. > > Isn't the

[PATCH] staging: refresh TODO for rtl8723au

2016-03-19 Thread Xose Vazquez Perez
People should not waste time and energy working on this staging driver. A replacement(rtl8xxxu) using the kernel wireless stack already was merged in the 4.3 kernel. Cc: Jes Sorensen Cc: Larry Finger Cc: Kalle Valo Cc: Greg Kroah-Hartman Cc: Linux Driver Project Developer List Cc: Linux Wirel

[PATCH] staging: most: hdm-dim2: Remove possible dereference error

2016-03-19 Thread Amitoj Kaur Chawla
Commit 3eced21a5afb ("staging: most: hdm-dim2: Replace request_irq with devm_request_irq") introduced the following static checker warning: drivers/staging/most/hdm-dim2/dim2_hdm.c:841 dim2_probe() error: 'dev->netinfo_task' dereferencing possible ERR_PTR() Remove the warning by returning PTR_ERR

[PATCH] staging: unisys: visornic: Made comments look nicer

2016-03-19 Thread Gavin O'Leary
Made comments not break coding style guidlines and easier to read. Signed-off-by: Gavin O'Leary --- drivers/staging/unisys/visornic/visornic_main.c | 29 +++-- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/d

Re: [PATCH] staging: most: hdm-dim2: Remove possible dereference error

2016-03-19 Thread Andrey Shvetsov
On Fri, Mar 18, 2016 at 06:32:15PM +0530, Amitoj Kaur Chawla wrote: > Commit 3eced21a5afb ("staging: most: hdm-dim2: Replace request_irq > with devm_request_irq") introduced the following static checker > warning: > drivers/staging/most/hdm-dim2/dim2_hdm.c:841 dim2_probe() > error: 'dev->netinfo_ta

[PATCH 12/42] staging: comedi: ni_660x: tidy up ni_660x_read_register()

2016-03-19 Thread H Hartley Sweeten
Rename this function to help shorten some of the long lines. Remove the inline, let the compiler figure it out. Change the 'unsigned' parameters to 'unsigned int' to fix the checkpatch.pl issues: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH 05/42] staging: comedi: ni_660x: rename CamelCase 'NI_660xRegisterData'

2016-03-19 Thread H Hartley Sweeten
Rename this CamelCase struct and the associated 'registerData' variable. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH 34/42] staging: comedi: ni_660x: allocate counters early in (*auto_attach)

2016-03-19 Thread H Hartley Sweeten
The ni_gpct_device_construct() could fail allocating the memory for device and its counters. For aesthetics, call the function before initializing the subdevices. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 20 ++

Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-19 Thread Parth Sane
Hi, I haven’t received any feedback as to whether my patch has been accepted. Would request someone to kindly help me out. Maybe you could weigh in here Greg? Regards, Parth Sane > On 15-Mar-2016, at 10:16 PM, laerdevstud...@gmail.com wrote: > > From: Parth Sane > > Fixed multiple assignment ch

Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-19 Thread Roger H Newell
On Sat, Mar 19, 2016 at 2:04 PM, Parth Sane wrote: > Hi, > I haven’t received any feedback as to whether my patch has been accepted. > Would request someone to kindly help me out. Maybe you could weigh in here > Greg? > Regards, > Parth Sane >> On 15-Mar-2016, at 10:16 PM, laerdevstud...@gmail.c

Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-19 Thread Parth Sane
Hi Roger, Can I submit more patches similarly until this has been accepted? I’ll be sure to remove the from part in my next patch(I hope I don’t have to submit the earlier patch again).Thanks for your wise comments! Regards, Parth Sane > On 19-Mar-2016, at 10:33 PM, Roger H Newell wrote: > > On

Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-19 Thread Greg KH
On Sat, Mar 19, 2016 at 10:04:23PM +0530, Parth Sane wrote: > Hi, > I haven’t received any feedback as to whether my patch has been accepted. > Would request someone to kindly help me out. Maybe you could weigh in here > Greg? > Regards, > Parth Sane > > On 15-Mar-2016, at 10:16 PM, laerdevstud..

Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-19 Thread Parth Sane
Hi, Thanks for getting back to me Greg! I’m still learning, so thanks again for bearing with me! Regards, Parth Sane > On 19-Mar-2016, at 10:43 PM, Greg KH wrote: > > On Sat, Mar 19, 2016 at 10:04:23PM +0530, Parth Sane wrote: >> Hi, >> I haven’t received any feedback as to whether my patch has

[PATCH 29/42] staging: comedi: ni_660x: tidy up the counter subdevices init

2016-03-19 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the subdevice init and use a couple local variables to make the code easier to follow. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 59 +--- 1 file change

[PATCH 5/9] rtlwifi: rtl8192ee: Fix Smatch warning

2016-03-19 Thread Larry Finger
Smatch lists the following: CHECK drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c:371 rtl92ee_rx_query_desc() warn: inconsistent indenting Signed-off-by: Larry Finger --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c | 2 +-

[PATCH v10 1/3] staging/android: remove redundant comments on sync_merge_data

2016-03-19 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH v9 3/3] staging/android: refactor SYNC IOCTLs

2016-03-19 Thread Gustavo Padovan
From: Gustavo Padovan Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid future API breaks and optimize buffer allocation. Now num_fences can be filled by the caller to inform how many fences it wants to retrieve from the kernel. If the num_fences passed is greater than ze

RE: [PATCH v2] staging/comedi/dt282x: avoid integer overflow warning

2016-03-19 Thread Hartley Sweeten
On Thursday, March 17, 2016 9:09 AM, Arnd Bergmann wrote: > On Thursday 17 March 2016 15:47:57 Hartley Sweeten wrote: >> On Wednesday, March 16, 2016 1:51 PM, Arnd Bergmann wrote: >> >> Is this a gcc-6 specific issue? Seems line this warning should be showing >> up in a lot of drivers. > > Yes, I

Re: [PATCH] staging: comedi: ni_mio_common: fix the ni_write[blw]() functions

2016-03-19 Thread gre...@linuxfoundation.org
On Fri, Mar 18, 2016 at 05:38:45PM +, Hartley Sweeten wrote: > On Wednesday, March 16, 2016 3:22 AM, Ian Abbott wrote: > > On 15/03/16 21:48, H Hartley Sweeten wrote: > >> Memory mapped io (dev->mmio) should not also be writing to the ioport > >> (dev->iobase) registers. Add the missing 'else'

[PATCH 35/42] staging: comedi: ni_660x: initialize the counter with the subdevice init

2016-03-19 Thread H Hartley Sweeten
Remove the extra for loop and just initialize the counter as the subdevices are created. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/

[PATCH v10 2/3] kernel.h: add u64_to_user_ptr()

2016-03-19 Thread Gustavo Padovan
From: Gustavo Padovan This function had copies in 3 different files. Unify them in kernel.h. Cc: Joe Perches Cc: Andrew Morton Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 11 +++ drivers/gpu/drm

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-19 Thread Mauro Carvalho Chehab
Em Wed, 16 Mar 2016 10:28:35 +0200 Sakari Ailus escreveu: > Hi Mauro, > > On Tue, Mar 15, 2016 at 12:55:35PM -0300, Mauro Carvalho Chehab wrote: > > Em Mon, 14 Mar 2016 14:09:09 +0200 > > Sakari Ailus escreveu: > > > > > Hi Mauro, > > > ... > > > Notify callbacks, perhaps not, but the lis

Re: [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-19 Thread James Bottomley
On Wed, 2016-03-16 at 18:34 -0400, Martin K. Petersen wrote: > > > > > > "KY" == KY Srinivasan writes: > > KY> How would I get the sysfs files under fc_host if I don't use the > FC > KY> transport. The customer scripts expect these sysfs files. > > Right, but I was interested in finding out why

[PATCH] staging: netlogic: Fixed alignment of parantheseis checkpatch warning

2016-03-19 Thread Parth Sane
From: Ubuntu Fixed alignment of paranthesis as per checkpatch. Signed-off-by: Parth Sane --- drivers/staging/netlogic/platform_net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c index

[PATCH] staging: netlogic: Fixed alignment of parantheseis checkpatch warning

2016-03-19 Thread Parth Sane
Fixed alignment of paranthesis as per checkpatch. Signed-off-by: Parth Sane --- drivers/staging/netlogic/platform_net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c index daee1b2..82af02

[PATCH v2] staging: most: hdm-dim2: Remove possible dereference error

2016-03-19 Thread Amitoj Kaur Chawla
Commit 3eced21a5afb ("staging: most: hdm-dim2: Replace request_irq with devm_request_irq") introduced the following static checker warning: drivers/staging/most/hdm-dim2/dim2_hdm.c:841 dim2_probe() error: 'dev->netinfo_task' dereferencing possible ERR_PTR() Remove the bug introduced by the commit

Re: [PATCH] Add tw5864 driver

2016-03-19 Thread Leon Romanovsky
On Mon, Mar 14, 2016 at 03:55:14AM +0200, Andrey Utkin wrote: > From: Andrey Utkin > > Support for boards based on Techwell TW5864 chip which provides > multichannel video & audio grabbing and encoding (H.264, MJPEG, > ADPCM G.726). > > Signed-off-by: Andrey Utkin > Tested-by: Andrey Utkin > -

[PATCH 42/42] staging: comedi: ni_660x: update the MODULE_DESCRIPTION

2016-03-19 Thread H Hartley Sweeten
Change the generic MODULE_DESCRIPTION text to something more useful. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c

[PATCH 13/42] staging: comedi: ni_660x: tidy up ni_gpct_{write, read}_register()

2016-03-19 Thread H Hartley Sweeten
Rename these functions so they have namespace associated with the driver. Fix the checkpatch.pl issues: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 16 +++---

[PATCH 16/42] staging: comedi: ni_660x: fix block comment issues

2016-03-19 Thread H Hartley Sweeten
Fix the checkpatch.pl issues about: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 17 +++-- 1 file

Re: [PATCH] Drivers: hv: vmbus: handle various crash scenarios

2016-03-19 Thread Radim Krcmar
2016-03-18 13:33+0100, Vitaly Kuznetsov: > Kdump keeps biting. Turns out CHANNELMSG_UNLOAD_RESPONSE is always > delivered to CPU0 regardless of what CPU we're sending CHANNELMSG_UNLOAD > from. vmbus_wait_for_unload() doesn't account for the fact that in case > we're crashing on some other CPU and C

Re: [PATCH] staging: netlogic: Fixed alignment of parantheseis checkpatch warning

2016-03-19 Thread Joe Perches
On Sat, 2016-03-19 at 18:35 +, Parth Sane wrote: > Fixed alignment of paranthesis as per checkpatch. Please run your proposed patches through checkpatch. > diff --git a/drivers/staging/netlogic/platform_net.c > b/drivers/staging/netlogic/platform_net.c [] > @@ -121,9 +121,7 @@ static struct p

[PATCH 23/42] staging: comedi: ni_660x: tidy up ni_660x_set_pfi_routing()

2016-03-19 Thread H Hartley Sweeten
Use the comedi.h provided constants (enum ni_660x_pfi_routing) instead of defining new ones for the output sources. Use a switch to clarify the channel/source validation. For aesthetics, rename the private data members 'pfi_output_selects' and 'pfi_direction_bits'. Remove the 'min_counter_pfi_ch

[PATCH] Staging: rtl8192e: fix line length coding style issue in rtllib_softmac.c

2016-03-19 Thread Yousof El-Sayed
This is a patch to the rtllib_softmac.c file that fixes up all instances of the 'line over 80 characters' warnings found by the checkpatch.pl tool. Signed-off-by: Yousof El-Sayed --- drivers/staging/rtl8192e/rtllib_softmac.c | 35 +++ 1 file changed, 22 insertions(+)

staging: most: warning: ‘mbo’ may be used uninitialized in this function

2016-03-19 Thread Geert Uytterhoeven
On Fri, Mar 18, 2016 at 6:42 AM, Linux Kernel Mailing List wrote: > Web: > https://git.kernel.org/torvalds/c/f45b0fba43f415f69982df743dfa9b5d1b57785e > Commit: f45b0fba43f415f69982df743dfa9b5d1b57785e > Parent: b3c9f3c56c41cbebe7804b48ba8e6e484509c2c0 > Refname:refs/heads/maste

[PATCH] drivers: staging: unisys: visornic: Fixed block comment coding style warnings

2016-03-19 Thread Gavin O'Leary
Fixed block comment checkpatch warnings. Signed-off-by: Gavin O'Leary --- drivers/staging/unisys/visornic/visornic_main.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_ma

  1   2   >