[patch] staging: gdm724x: fix a couple array overflows

2017-02-07 Thread Dan Carpenter
The find_dev_index() function is frustrating. If you give it an invalid index then it returns 0. That was the intent except there is an off-by-one so it can return MAX_NIC_TYPE which is one higher than we want. There is one caller which had a sanity check to catch invalid returns, but the other

[PATCH] staging: sm750fb: Replace POKE32 and PEEK32 by inline functions

2017-02-07 Thread Matthieu Simon
POKE32 and PEEK32 have been replaced by inlined functions poke32 and peek32. Having inline functions instead of macros help to get the correct type-checking and avoid the possible precedence issues reported by checkpatch. Signed-off-by: Matthieu Simon --- drivers/staging/sm750fb/ddk750_chip.c

Re: [lustre-devel] [PATCH 10/60] staging: lustre: obdclass: add more info to sysfs version string

2017-02-07 Thread Greg Kroah-Hartman
On Wed, Feb 08, 2017 at 01:04:52AM +, Dilger, Andreas wrote: > > > On Feb 3, 2017, at 03:33, Greg Kroah-Hartman > > wrote: > > > > On Sat, Jan 28, 2017 at 07:04:38PM -0500, James Simmons wrote: > >> From: Andreas Dilger > >> > >> Update the sysfs "version" file to print "lustre: " with >

Re: [PATCH v2] staging: rtl8712: rtl8712: fix sparse warnings

2017-02-07 Thread Dan Carpenter
On Wed, Feb 08, 2017 at 01:23:15AM +, Carlos Palminha wrote: > Fixed sparse warnings > * No need to convert from le32, pointers for structure with same endianness > (cast from restricted __le32) > * Need to convert bitwise operation for le32 structure (invalid assignment > from int to __le32)

Re: [PATCH] staging: rtl8712: rtl8712: fix sparse warnings

2017-02-07 Thread Dan Carpenter
On Wed, Feb 08, 2017 at 01:19:39AM +, Carlos Palminha wrote: > > > On 08-02-2017 00:58, Dan Carpenter wrote: > >On Wed, Feb 08, 2017 at 12:47:22AM +, Carlos Palminha wrote: > >>Fixed the following sparse warnings: > >>* cast from restricted __le32 > >>* invalid assignment from int to __le

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Michael Zoran
On Wed, 2017-02-08 at 01:19 +0300, Dan Carpenter wrote: > On Tue, Feb 07, 2017 at 01:13:34PM -0800, Eric Anholt wrote: > > Dan Carpenter writes: > > > > > There is a bunch of vc04_services that we're still looking to > > > merge in > > > the near future.  Please hold off deleting these until we a

[PATCH v2] staging: rtl8712: rtl8712: fix sparse warnings

2017-02-07 Thread Carlos Palminha
Fixed sparse warnings * No need to convert from le32, pointers for structure with same endianness (cast from restricted __le32) * Need to convert bitwise operation for le32 structure (invalid assignment from int to __le32) Signed-off-by: Carlos Palminha --- Changes v1->v2: * Clarify patch descr

Re: [PATCH] staging: rtl8712: rtl8712: fix sparse warnings

2017-02-07 Thread Carlos Palminha
On 08-02-2017 00:58, Dan Carpenter wrote: On Wed, Feb 08, 2017 at 12:47:22AM +, Carlos Palminha wrote: Fixed the following sparse warnings: * cast from restricted __le32 * invalid assignment from int to __le32 The changelog doesn't give me any confidence that you understand the implicat

Re: [lustre-devel] [PATCH 10/60] staging: lustre: obdclass: add more info to sysfs version string

2017-02-07 Thread Dilger, Andreas
> On Feb 3, 2017, at 03:33, Greg Kroah-Hartman > wrote: > > On Sat, Jan 28, 2017 at 07:04:38PM -0500, James Simmons wrote: >> From: Andreas Dilger >> >> Update the sysfs "version" file to print "lustre: " with >> the version number. >> >> Signed-off-by: Andreas Dilger >> Intel-bug-id: https

Re: [PATCH] staging: rtl8712: rtl8712: fix sparse warnings

2017-02-07 Thread Dan Carpenter
On Wed, Feb 08, 2017 at 12:47:22AM +, Carlos Palminha wrote: > Fixed the following sparse warnings: > * cast from restricted __le32 > * invalid assignment from int to __le32 > The changelog doesn't give me any confidence that you understand the implications of this patch. You silenced the wa

[PATCH] staging: rtl8712: rtl8712: fix sparse warnings

2017-02-07 Thread Carlos Palminha
Fixed the following sparse warnings: * cast from restricted __le32 * invalid assignment from int to __le32 Signed-off-by: Carlos Palminha --- drivers/staging/rtl8712/rtl8712_xmit.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_xmit.c

[PATCH v3] staging: bcm2835-audio: Remove the initialization of static pointers.

2017-02-07 Thread AbdAllah-MEZITI
In C a static pointer will be initialized to NULL. The §6.7.8 of the ISO/IEC 9899:1999 (E) document says that: If an object that has static storage duration is not initialized explicitly, then: __ if it has pointer type, it is initialized to a null pointer. Signed-off-by: AbdAllah-MEZITI v2: -f

Re: [PATCH v2] somedriver: remove the initialization of static pointers.

2017-02-07 Thread Florian Fainelli
On 02/07/2017 01:55 PM, AbdAllah-MEZITI wrote: > In C a static pointer will be initialized to NULL. > The §6.7.8 of the ISO/IEC 9899:1999 (E) document says that: > If an object that has static storage duration is not initialized > explicitly, then: > __ if it has pointer type, it is initialized to

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Laurent Pinchart
Hi Benoit, On Tuesday 07 Feb 2017 07:36:48 Benoit Parrot wrote: > Laurent Pinchart wrote on Tue [2017-Feb-07 12:26:32 +0200]: > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > >> On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > >>> On Monday 06 Feb 2017 10:50:22 Hans Verkuil wrote: > >

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Dan Carpenter
On Tue, Feb 07, 2017 at 01:13:34PM -0800, Eric Anholt wrote: > Dan Carpenter writes: > > > There is a bunch of vc04_services that we're still looking to merge in > > the near future. Please hold off deleting these until we are further > > along on that. > > Checking the downstream tree, these a

[PATCH v2] somedriver: remove the initialization of static pointers.

2017-02-07 Thread AbdAllah-MEZITI
In C a static pointer will be initialized to NULL. The §6.7.8 of the ISO/IEC 9899:1999 (E) document says that: If an object that has static storage duration is not initialized explicitly, then: __ if it has pointer type, it is initialized to a null pointer. Signed-off-by: AbdAllah-MEZITI v2: -f

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Eric Anholt
Dan Carpenter writes: > There is a bunch of vc04_services that we're still looking to merge in > the near future. Please hold off deleting these until we are further > along on that. Checking the downstream tree, these are actually dead. signature.asc Description: PGP signature __

Re: [bug report] PCI: hv: Add paravirtual PCI front-end for Microsoft Hyper-V VMs

2017-02-07 Thread Dan Carpenter
On Tue, Feb 07, 2017 at 04:11:33PM +, Jake Oshins wrote: > > -Original Message- > > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > > Sent: Monday, February 6, 2017 11:12 PM > > To: Jake Oshins > > Cc: de...@linuxdriverproject.org; linux-...@vger.kernel.org > > Subject: [bug re

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Sakari Ailus
Hi Benoit, On Tue, Feb 07, 2017 at 07:36:48AM -0600, Benoit Parrot wrote: > Laurent Pinchart wrote on Tue > [2017-Feb-07 12:26:32 +0200]: > > Hi Steve, > > > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > > > On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > > > > On Monday 06 Feb 2

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Sakari Ailus
Hi Steve, On Fri, Jan 06, 2017 at 06:11:31PM -0800, Steve Longerbeam wrote: > From: Philipp Zabel > > This driver can handle SoC internal and external video bus multiplexers, > controlled either by register bit fields or by a GPIO. The subdevice > passes through frame interval and mbus configura

Re: [PATCH] staging: sm750fb: Enclose macro arguments in parentheses

2017-02-07 Thread Greg KH
On Tue, Feb 07, 2017 at 11:11:22AM -0800, Matthieu Simon wrote: > checkpatch noticed possible precedence issues resulting in the definition > of PEEK32 and POKE32. So, these arguments should be enclosed in > parentheses. > > Signed-off-by: Matthieu Simon > --- > drivers/staging/sm750fb/ddk750_ch

[PATCH] staging: sm750fb: Enclose macro arguments in parentheses

2017-02-07 Thread Matthieu Simon
checkpatch noticed possible precedence issues resulting in the definition of PEEK32 and POKE32. So, these arguments should be enclosed in parentheses. Signed-off-by: Matthieu Simon --- drivers/staging/sm750fb/ddk750_chip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Alexander Alemayhu
On Tue, Feb 07, 2017 at 03:09:44PM +0300, Dan Carpenter wrote: > There is a bunch of vc04_services that we're still looking to merge in > the near future. Please hold off deleting these until we are further > along on that. > OK. Thanks. -- Mit freundlichen Grüßen Alexander Alemayhu __

[PATCH] staging: comedi: Fix incorrect type assignment

2017-02-07 Thread Karthik Nayak
This patch fixes the following sparse error: drivers/staging/comedi/drivers//ni_pcimio.c:1229:32: warning: incorrect type in assignment (different base types) drivers/staging/comedi/drivers//ni_pcimio.c:1229:32:expected restricted __be32 [usertype] serial_number drivers/staging/comedi/drivers

Scheduled Maintenance & Upgrade

2017-02-07 Thread Help Desk
Help Desk Scheduled Maintenance & Upgrade Your account is in the process of being upgraded to the newest Windows-based servers and an enhanced online email interface inline with internet infrastructure Maintenance. The new servers will provide better anti-spam and anti-virus functions, along

RE: [PATCH] PCI: hv: fix wslot_to_devfn()

2017-02-07 Thread Haiyang Zhang
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, February 7, 2017 4:00 AM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org; Jake Oshins > Cc: KY Srinivasan ; Stephen Hemminger > ; Haiyang Zhang ; > o...@aepfle.de; gre...@linuxfoundation.org; linux-k

[PATCH] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-02-07 Thread Philipp Zabel
The csi_try_crop call in set_fmt should compare the cropping rectangle to the currently set input format, not to the previous input format. Signed-off-by: Philipp Zabel --- This is a patch against the current imx-media-staging-md-wip branch. S_FMT wouldn't update the cropping rectangle during the

RE: [bug report] PCI: hv: Add paravirtual PCI front-end for Microsoft Hyper-V VMs

2017-02-07 Thread Jake Oshins
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Monday, February 6, 2017 11:12 PM > To: Jake Oshins > Cc: de...@linuxdriverproject.org; linux-...@vger.kernel.org > Subject: [bug report] PCI: hv: Add paravirtual PCI front-end for Microsoft > Hyper-V VMs

[PATCH v3 10/10] staging: fsl-mc: dprc: drop unused APIs

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Leave only APIs that area actually used in the bus driver. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place They will be added back on an as-needed

[PATCH v3 07/10] staging: fsl-mc: dpmng: drop unused prototype

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor The implementation was removed in commit: decd3d0cf (staging: fsl-mc: uprev binary interface to match MC v10.x) but the prototype was left behind. Also fix a message that was wrongly mentioning it. Signed-off-by: Laurentiu Tudor --- v3: - no changes drivers/staging/f

[PATCH v3 03/10] staging: fsl-mc: add device release callback

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor When hot unplugging a mc-bus device the kernel displays this pertinent message, followed by a stack dump: "Device 'foo.N' does not have a release() function, it is broken and must be fixed." Add the required callback to fix and drop the now uneeded explicit freeing.

[PATCH v3 01/10] staging: fsl-mc: drop root dprc counting

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor It was used just to sanity check some obscure cases that are unlikely to ever happen. Signed-off-by: Laurentiu Tudor --- v3: - no changes drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 26 +- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git

[PATCH v3 04/10] staging: fsl-mc: don't use devres api for refcounted objects

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Mixing two memory management systems, in this case managed device resource api and refcounted objects is a bad idea. Lifetime of an object is controlled by its refcount so allocating it with other apis that have their own lifetime control is not ok. Drop devm_*() apis in fav

[PATCH v3 02/10] staging: fsl-mc: fix device ref counting

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Drop unneeded get_device() call at device creation and, as per documentation, drop reference count after using device_find_child() return. Signed-off-by: Laurentiu Tudor --- v3: - no changes drivers/staging/fsl-mc/bus/dprc-driver.c | 1 + drivers/staging/fsl-mc/bus/fsl-

[PATCH v3 08/10] staging: fsl-mc: dpbp: drop unused APIs

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Leave only APIs that will be used in upcomming drivers. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place They will be added back on an as-needed ba

[PATCH v3 09/10] staging: fsl-mc: dpbp: add a few missing EXPORT_SYMBOL()s

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Signed-off-by: Laurentiu Tudor --- v3: - no changes drivers/staging/fsl-mc/bus/dpbp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/dpbp.c b/drivers/staging/fsl-mc/bus/dpbp.c index 1fa7257..d9e450a 100644 --- a/drivers/staging/fsl-mc/

[PATCH v3 06/10] staging: fsl-mc: dpmcp: drop unused APIs

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor These APIs are not used yet, so drop the dead code. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place Also in this patch, add missing prototype for

[PATCH v3 05/10] staging: fsl-mc: remove slab cache for mc devices

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Let's drop the slab cache for objects until we actually have proof that it improves performance. This makes the code cleaner. Signed-off-by: Laurentiu Tudor --- v3: - made distinct patch with slab cache removal drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 17 +++---

[PATCH v3 00/10] staging: fsl-mc: fixes and cleanups

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor First 4 patches fix several driver model related issues and drop an useless atomic global. The rest of the patches are cleanups mostly consisting in removing dead code. Only patch 3, 4, 5 and 10 changed. See individual patch notes for details. Laurentiu Tudor (10): stagi

[PATCH v3 2/2] staging: omap4iss: fix coding style issue

2017-02-07 Thread Avraham Shukron
Signed-off-by: Avraham Shukron --- drivers/staging/media/omap4iss/iss_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers/staging/media/omap4iss/iss_video.c index e21811a..0bac582 100644 --- a/drivers/staging/media/om

[PATCH v3 1/2] staging: omap4iss: fix multiline comment style

2017-02-07 Thread Avraham Shukron
Signed-off-by: Avraham Shukron --- drivers/staging/media/omap4iss/iss_video.c | 38 -- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers/staging/media/omap4iss/iss_video.c index bb0e3b4..e21811a 100644

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Benoit Parrot
Laurent Pinchart wrote on Tue [2017-Feb-07 12:26:32 +0200]: > Hi Steve, > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > > On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > > > On Monday 06 Feb 2017 10:50:22 Hans Verkuil wrote: > > >> On 02/05/2017 04:48 PM, Laurent Pinchart wrote: >

RE: [PATCH 00/10][v2] staging: fsl-mc: fixes and cleanups

2017-02-07 Thread Stuart Yoder
> -Original Message- > From: laurentiu.tu...@nxp.com [mailto:laurentiu.tu...@nxp.com] > Sent: Tuesday, February 07, 2017 8:15 AM > To: gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; ag...@suse.de; > a...@arndb.de; Ioana > Ciornei ; Ruxandra Ioa

[PATCH] Drivers: hv: balloon: hide the inflated balloon pages

2017-02-07 Thread Vitaly Kuznetsov
When the balloon is inflated we see it as kernel allocated memory and this is confusing especially when it is used as a replacement for memory hot unplug. Hide the balloon with adjust_managed_page_count(). Virtio ballooning driver does this already. compute_balloon_floor() is adjusted to keep the

[PATCH 04/10] staging: fsl-mc: don't use devres api for refcounted objects

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Mixing two memory management systems, in this case managed device resource api and refcounted objects is a bad idea. Lifetime of an object is controlled by its refcount so allocating it with other apis that have their own lifetime control is not ok. Drop devm_*() apis in fav

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-02-07 Thread Bryan O'Donoghue
On 07/02/17 14:19, Johan Hovold wrote: > On Mon, Jan 23, 2017 at 01:04:14PM +0100, Johan Hovold wrote: >> Add a struct timer_list to struct gb_operation and use that to implement >> generic operation timeouts. >> >> This simplifies the synchronous operation handling somewhat while also >> providing

[PATCH 03/10] staging: fsl-mc: add device release callback

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor When hot unplugging a mc-bus device the kernel displays this pertinent message, followed by a stack dump: "Device 'foo.N' does not have a release() function, it is broken and must be fixed." Add the required callback to fix and drop the now uneeded explicit freeing.

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-02-07 Thread Johan Hovold
On Mon, Jan 23, 2017 at 01:04:14PM +0100, Johan Hovold wrote: > Add a struct timer_list to struct gb_operation and use that to implement > generic operation timeouts. > > This simplifies the synchronous operation handling somewhat while also > providing a generic timeout mechanism that drivers can

Re: [patch] Staging: bcm2835-audio: fix an uninitialized return value

2017-02-07 Thread Dan Carpenter
On Tue, Feb 07, 2017 at 03:01:23PM +0100, Arnd Bergmann wrote: > On Tue, Feb 7, 2017 at 2:17 PM, Dan Carpenter > wrote: > > "ret" isn't necessarily initialized on the success path. > > > > Signed-off-by: Dan Carpenter > > > > The patch seems correct, but do you have any idea why gcc-7 didn't >

[PATCH 10/10] staging: fsl-mc: dprc: drop unused APIs

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Leave only APIs that area actually used in the bus driver. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place They will be added back on an as-needed

[PATCH 06/10] staging: fsl-mc: dpmcp: drop unused APIs

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor These APIs are not used yet, so drop the dead code. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place Also in this patch, add missing prototype for

[PATCH 09/10] staging: fsl-mc: dpbp: add a few missing EXPORT_SYMBOL()s

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/dpbp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/dpbp.c b/drivers/staging/fsl-mc/bus/dpbp.c index 1fa7257..d9e450a 100644 --- a/drivers/staging/fsl-mc/bus/dpbp.c +++ b/dr

[PATCH 08/10] staging: fsl-mc: dpbp: drop unused APIs

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Leave only APIs that will be used in upcomming drivers. The patch is mostly mechanical, with a couple exceptions: - getters/setters were not removed even if only one of them is being used - versioning API was also left in place They will be added back on an as-needed ba

[PATCH 05/10] staging: fsl-mc: remove slab cache for mc devices

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Let's drop the slab cache for objects until we actually have proof that it improves performance. This makes the code cleaner. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-

[PATCH 01/10] staging: fsl-mc: drop root dprc counting

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor It was used just to sanity check some obscure cases that are unlikely to ever happen. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 26 +- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/drivers/staging/

[PATCH 00/10][v2] staging: fsl-mc: fixes and cleanups

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor First 4 patches fix several driver model related issues and drop an useless atomic global. The rest of the patches are cleanups mostly consisting in removing dead code. v2: - split slab cache removal in distinct patch - redundant deallocation dropped in patch that adds re

[PATCH 07/10] staging: fsl-mc: dpmng: drop unused prototype

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor The implementation was removed in commit: decd3d0cf (staging: fsl-mc: uprev binary interface to match MC v10.x) but the prototype was left behind. Also fix a message that was wrongly mentioning it. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/fsl-mc-bu

[PATCH 02/10] staging: fsl-mc: fix device ref counting

2017-02-07 Thread laurentiu.tudor
From: Laurentiu Tudor Drop unneeded get_device() call at device creation and, as per documentation, drop reference count after using device_find_child() return. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/dprc-driver.c | 1 + drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 1 - 2

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Laurent Pinchart
Hi Philipp, On Tuesday 07 Feb 2017 11:41:30 Philipp Zabel wrote: > On Tue, 2017-02-07 at 12:26 +0200, Laurent Pinchart wrote: > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > >> On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > >>> On Monday 06 Feb 2017 10:50:22 Hans Verkuil wrote: > >

Re: [patch] Staging: bcm2835-audio: fix an uninitialized return value

2017-02-07 Thread Arnd Bergmann
On Tue, Feb 7, 2017 at 2:17 PM, Dan Carpenter wrote: > "ret" isn't necessarily initialized on the success path. > > Signed-off-by: Dan Carpenter > The patch seems correct, but do you have any idea why gcc-7 didn't warn about this? I assume that you found it with smatch, and nobody else did.

[patch] Staging: bcm2835-audio: fix an uninitialized return value

2017-02-07 Thread Dan Carpenter
"ret" isn't necessarily initialized on the success path. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index 9ac1f72a178e..b7922be4909c 100644 --- a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c +++ b/driv

[patch] Staging: bcm2835-audio: remove unneeded NULL check

2017-02-07 Thread Dan Carpenter
We just dereferenced "instance" on the line before so checking it here is pointless. Anyway, it can't be NULL here so let's remove the check. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index b7922be490

[patch] staging: bcm2835-audio: off by one in snd_bcm2835_playback_open_generic()

2017-02-07 Thread Dan Carpenter
The > should be >= otherwise we write beyond the end of the array when we do: chip->alsa_stream[idx] = alsa_stream; Fixes: 23b028c871e1 ("staging: bcm2835-audio: initial staging submission") Signed-off-by: Dan Carpenter diff --git a/drivers/staging/bcm2835-audio/bcm2835-pcm.c b/drivers

[bug report] staging: lustre: lmv: Error not handled for lmv_find_target

2017-02-07 Thread Dan Carpenter
Hello Ulka Vaze, You didn't introduce this warning but you were fixing nearby code so you might know the answer. drivers/staging/lustre/lustre/lmv/lmv_obd.c:1069 lmv_iocontrol() warn: check 'reqlen' for integer overflows 'obd_iocontrol()' drivers/staging/lustre/lustre/lmv/lmv_obd

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Dan Carpenter
There is a bunch of vc04_services that we're still looking to merge in the near future. Please hold off deleting these until we are further along on that. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linux

[PATCH v5 3/3] staging: wlan-ng: realign else if continuation

2017-02-07 Thread Maksymilian Piechota
Signed-off-by: Maksymilian Piechota --- drivers/staging/wlan-ng/prism2mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index af83f2a..5277f36 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.c ++

[PATCH v5 2/3] staging: wlan-ng: move else if statement to a single line

2017-02-07 Thread Maksymilian Piechota
Signed-off-by: Maksymilian Piechota --- drivers/staging/wlan-ng/prism2mgmt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index 64a9ebc..af83f2a 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.c

[PATCH v5 1/3] staging: wlan-ng: move logical continuations at the end of line

2017-02-07 Thread Maksymilian Piechota
Signed-off-by: Maksymilian Piechota --- drivers/staging/wlan-ng/prism2mgmt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index 16fb2d3..64a9ebc 100644 --- a/drivers/staging/wlan-ng/prism2mgmt

[PATCH v5 0/3] staging: wlan-ng: align else if statement to coding standard

2017-02-07 Thread Maksymilian Piechota
Patch version 5: - break up particular changes to separate commits - change prefix to proper driver (wlan-ng) Maksymilian Piechota (3): staging: wlan-ng: move logical continuations at the end of line staging: wlan-ng: move else if statement to a single line staging: wlan-ng: realign else if

[PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Alexander Alemayhu
Looking at the history these calls were introduced in 71bad7f08641 (staging: add bcm2708 vchiq driver, 2013-07-02) and they were not being used at all. Discovered using sparse and fixes the following output: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c:816:1: warning: symbol 'v

[PATCH v2 8/8] staging: bcm2835-audio: Remove unnecessary space after cast

2017-02-07 Thread Simon Sandström
Fixes checkpatch check "No space is necessary after a cast". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.c index 5bd

[PATCH v2 7/8] staging: bcm2835-audio: Rewrite comparison to NULL

2017-02-07 Thread Simon Sandström
Fixes checkpatch check "Comparison to NULL could be written '!chip'". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.c

[PATCH v2 6/8] staging: bcm2835-audio: Fix argument indentation

2017-02-07 Thread Simon Sandström
Fixes checkpatch CHECK: "Alignment should match open parenthesis". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bc

[PATCH v2 4/8] staging: bcm2835-audio: Move open brace to correct line

2017-02-07 Thread Simon Sandström
Fixes checkpatch error "open brace { should be on the previous line". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.

[PATCH v2 5/8] staging: bcm2835-audio: Simplify bcm2835_alsa_device_init()

2017-02-07 Thread Simon Sandström
Fixes checkpatch warning "Missing a blank line after declarations". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audi

[PATCH v2 3/8] staging: bcm2835-audio: Remove whitespace before quoted newline

2017-02-07 Thread Simon Sandström
Fixes checkpatch warning "unnecessary whitespace before a quoted newline". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm28

[PATCH v2 2/8] staging: bcm2835-audio: Remove incorrect whitespace

2017-02-07 Thread Simon Sandström
According to the coding style, "bcm2835_ship ** rchip" should be "bcm2835 **rchip". Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-au

[PATCH v2 0/8] staging: bcm2835-audio: Fix various checkpatch warnings

2017-02-07 Thread Simon Sandström
Fixes multiple checkpatch errors and warnings in bcm2835.c. Changes in v2: * Separated v1 patch into multiple smaller patches. Simon Sandström (8): staging: bcm2835-audio: Remove static initialisation staging: bcm2835-audio: Remove incorrect whitespace staging: bcm2835-audio: Remove white

[PATCH v2 1/8] staging: bcm2835-audio: Remove static initialisation

2017-02-07 Thread Simon Sandström
Static pointers are explicility initialised to NULL. Signed-off-by: Simon Sandström --- drivers/staging/bcm2835-audio/bcm2835.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.c index a84d74d

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Philipp Zabel
On Tue, 2017-02-07 at 12:26 +0200, Laurent Pinchart wrote: > Hi Steve, > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > > On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > > > On Monday 06 Feb 2017 10:50:22 Hans Verkuil wrote: > > >> On 02/05/2017 04:48 PM, Laurent Pinchart wrote: > >

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Laurent Pinchart
Hi Steve, On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > > On Monday 06 Feb 2017 10:50:22 Hans Verkuil wrote: > >> On 02/05/2017 04:48 PM, Laurent Pinchart wrote: > >>> On Tuesday 24 Jan 2017 18:07:55 Steve Longerbeam wrote: > On 01/

[PATCH] PCI: hv: fix wslot_to_devfn()

2017-02-07 Thread Dexuan Cui
The devfn of 00:02.0 is 0x10. devfn_to_wslot(0x10) == 0x2, and wslot_to_devfn(0x2) should be 0x10, while it's 0x2 in the current code. Due to this, hv_eject_device_work() -> pci_get_domain_bus_and_slot() returns NULL and pci_stop_and_remove_bus_device() is not called. Later when the real device d

Re: [PATCH] staging: greybus: Move Documentation to Documentation/

2017-02-07 Thread Viresh Kumar
On 07-02-17, 09:02, Greg Kroah-Hartman wrote: > On Tue, Feb 07, 2017 at 11:15:29AM +0530, Viresh Kumar wrote: > > Move all greybus documentation to the top level Documentation/ > > directory, as that's the obvious place where everyone will look for it. > > No, not until we have the core greybus co

Re: [PATCH v2] Staging: omap4iss: Fix coding style issues

2017-02-07 Thread Greg KH
On Mon, Feb 06, 2017 at 07:58:35PM +0200, Avraham Shukron wrote: > Fixes line-over-80-characters issues as well as multiline comments style. When you say things like "as well as", that's a hint that this needs to be broken up into different patches. Please do so here. thanks, greg k-h _

Re: [PATCH] staging: bcm2835-audio: Fix various checkpatch warnings

2017-02-07 Thread Greg Kroah-Hartman
On Mon, Feb 06, 2017 at 08:21:51PM +0100, Simon Sandström wrote: > Fix following warnings in bcm2835.c: > * Do not initialise statics to NULL. > * Unnecessary whitespace before a quoted newline. > * Open brace { on wrong line. > > Fix 'Missing blank line after declarations' by simplifying > bcm283

Re: [PATCH] staging: greybus: Move Documentation to Documentation/

2017-02-07 Thread Greg Kroah-Hartman
On Tue, Feb 07, 2017 at 11:15:29AM +0530, Viresh Kumar wrote: > Move all greybus documentation to the top level Documentation/ > directory, as that's the obvious place where everyone will look for it. No, not until we have the core greybus code out of staging. While code is in staging, it is self