Re: [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-08 Thread Jesper Nilsson
On Tue, Oct 07, 2014 at 07:28:10AM +0200, Guenter Roeck wrote: pm_power_off is defined for all architectures. Move it to common code. Have all architectures call do_kernel_poweroff instead of pm_power_off. Some architectures point pm_power_off to machine_power_off. For those, call

Re: [PATCH v4 0/4] Correct vendor-prefix and document device isl29028

2014-10-08 Thread Dan Carpenter
These probably should have been sent to devicet...@vger.kernel.org. Use the maintainer.pl script. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Dan Carpenter
The return from myid() isn't aligned correctly for ether_addr_copy(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index 3eb77de..c8f7890 100644 ---

[PATCH 1/3] staging: dgap: remove unnecessary if statement for checking NULL

2014-10-08 Thread Daeseok Youn
dgap_release_remap() function is only called after the memory has been remapped so if statement for checking NULL doesn't need. And also release_mem_region() calls are moved after iounmap() calls. Signed-off-by: Daeseok Youn daeseok.y...@gmail.com --- drivers/staging/dgap/dgap.c | 13

[PATCH 2/3] staging: dgap: change function names properly

2014-10-08 Thread Daeseok Youn
dgap_do_remap() and dgap_release_remap() names could be changed to dgap_remap() and dgap_unmap(). Signed-off-by: Daeseok Youn daeseok.y...@gmail.com --- drivers/staging/dgap/dgap.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgap/dgap.c

[PATCH 3/3] staging: dgap: introduce dgap_stop()

2014-10-08 Thread Daeseok Youn
The dgap_init_module() need to unwind for cleanup variables properly. Because dgap_init_module() calls dgap_cleanup_module() for freeing variables but this function is possible to free variables which are not allocated. Signed-off-by: Daeseok Youn daeseok.y...@gmail.com ---

回复: [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-08 Thread Xuetao Guan
- Guenter Roeck li...@roeck-us.net 写道: pm_power_off is defined for all architectures. Move it to common code. Have all architectures call do_kernel_poweroff instead of pm_power_off. Some architectures point pm_power_off to machine_power_off. For those, call do_kernel_poweroff from

Re: [PATCH 3/3] staging: dgap: introduce dgap_stop()

2014-10-08 Thread Dan Carpenter
All three of these patches are good and a nice improvement. This one is a good bugfix. I have some notes for later, though below. On Wed, Oct 08, 2014 at 08:13:56PM +0900, Daeseok Youn wrote: diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 7c79fe6..00f34b5 100644

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Joe Perches
On Wed, 2014-10-08 at 13:40 +0300, Dan Carpenter wrote: The return from myid() isn't aligned correctly for ether_addr_copy(). Hey Dan. Actual evidence showing ether_addr_copy conversions may not always be wise. How did you find them? Is there a new alignment capability in smatch?

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Dan Carpenter
On Wed, Oct 08, 2014 at 05:26:11AM -0700, Joe Perches wrote: On Wed, 2014-10-08 at 13:40 +0300, Dan Carpenter wrote: The return from myid() isn't aligned correctly for ether_addr_copy(). Hey Dan. Actual evidence showing ether_addr_copy conversions may not always be wise. How did you

Re: [PATCH v4 0/4] Correct vendor-prefix and document device isl29028

2014-10-08 Thread Sergei Shtylyov
Hello. On 10/8/2014 1:15 PM, Dan Carpenter wrote: These probably should have been sent to devicet...@vger.kernel.org. Use the maintainer.pl script. You surely meant scripts/get_maintainer.pl. :-) regards, dan carpenter WBR, Sergei ___ devel

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Julia Lawall
On Wed, 8 Oct 2014, Dan Carpenter wrote: On Wed, Oct 08, 2014 at 05:26:11AM -0700, Joe Perches wrote: On Wed, 2014-10-08 at 13:40 +0300, Dan Carpenter wrote: The return from myid() isn't aligned correctly for ether_addr_copy(). Hey Dan. Actual evidence showing ether_addr_copy

[PATCH v2] staging: vt6655: fix sparse warning for static declaration

2014-10-08 Thread Vladimir A. Nazarenko
This patch fixes the following sparse warning: drivers/staging/vt6655/ioctl.c:44:12: warning: symbol 'wpa_Result' was not declared. Should it be static? There is no sense to set up all fields of wpa_Result to zero when interface set up (in device_open()), because wpa_Result is used only

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Dan Carpenter
On Wed, Oct 08, 2014 at 02:50:50PM +0200, Julia Lawall wrote: Couldn't you just use your favorite matching tool, collect the file names, compile them, run pahole, and process the output in some way? It doesn't give a complete analysis (you don't find all problems), but if you find a problem

Re: [PATCH v2] staging: vt6655: fix sparse warning for static declaration

2014-10-08 Thread Greg Kroah-Hartman
On Thu, Oct 09, 2014 at 12:17:06AM +1100, Vladimir A. Nazarenko wrote: This patch fixes the following sparse warning: drivers/staging/vt6655/ioctl.c:44:12: warning: symbol 'wpa_Result' was not declared. Should it be static? There is no sense to set up all fields of wpa_Result to zero

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Jes Sorensen
Dan Carpenter dan.carpen...@oracle.com writes: The return from myid() isn't aligned correctly for ether_addr_copy(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Sorry, this makes no sense, just fix it properly! drivers/staging/rtl8723au/include/rtw_eeprom.h: struct eeprom_priv {

Re: [PATCH v2] staging: vt6655: fix sparse warning for static declaration

2014-10-08 Thread Dan Carpenter
On Wed, Oct 08, 2014 at 06:53:02AM -0700, Greg Kroah-Hartman wrote: On Thu, Oct 09, 2014 at 12:17:06AM +1100, Vladimir A. Nazarenko wrote: This patch fixes the following sparse warning: drivers/staging/vt6655/ioctl.c:44:12: warning: symbol 'wpa_Result' was not declared. Should it be

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Dan Carpenter
On Wed, Oct 08, 2014 at 03:59:33PM +0200, Jes Sorensen wrote: Dan Carpenter dan.carpen...@oracle.com writes: The return from myid() isn't aligned correctly for ether_addr_copy(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Sorry, this makes no sense, just fix it properly!

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Joe Perches
On Wed, 2014-10-08 at 15:46 +0300, Dan Carpenter wrote: On Wed, Oct 08, 2014 at 05:26:11AM -0700, Joe Perches wrote: On Wed, 2014-10-08 at 13:40 +0300, Dan Carpenter wrote: The return from myid() isn't aligned correctly for ether_addr_copy(). Hey Dan. Actual evidence showing

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Jes Sorensen
Dan Carpenter dan.carpen...@oracle.com writes: On Wed, Oct 08, 2014 at 03:59:33PM +0200, Jes Sorensen wrote: Dan Carpenter dan.carpen...@oracle.com writes: The return from myid() isn't aligned correctly for ether_addr_copy(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Sorry,

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Jes Sorensen
Joe Perches j...@perches.com writes: On Wed, 2014-10-08 at 15:46 +0300, Dan Carpenter wrote: On Wed, Oct 08, 2014 at 05:26:11AM -0700, Joe Perches wrote: On Wed, 2014-10-08 at 13:40 +0300, Dan Carpenter wrote: The return from myid() isn't aligned correctly for ether_addr_copy(). Hey

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Joe Perches
On Wed, 2014-10-08 at 16:33 +0200, Jes Sorensen wrote: Joe Perches j...@perches.com writes: On Wed, 2014-10-08 at 15:46 +0300, Dan Carpenter wrote: On Wed, Oct 08, 2014 at 05:26:11AM -0700, Joe Perches wrote: On Wed, 2014-10-08 at 13:40 +0300, Dan Carpenter wrote: The return from

[PATCH] staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl

2014-10-08 Thread Ian Abbott
`do_cmd_ioctl()`, the handler for the `COMEDI_CMD` ioctl can incorrectly call the Comedi subdevice's `do_cmd()` handler with a NULL channel list pointer. This is a regression as the `do_cmd()` handler has never been expected to deal with that, leading to a kernel OOPS when it tries to dereference

Re: [patch] staging: rtl8723au: incorrect use of ether_addr_copy()

2014-10-08 Thread Jes Sorensen
Joe Perches j...@perches.com writes: On Wed, 2014-10-08 at 16:33 +0200, Jes Sorensen wrote: Joe Perches j...@perches.com writes: On Wed, 2014-10-08 at 15:46 +0300, Dan Carpenter wrote: On Wed, Oct 08, 2014 at 05:26:11AM -0700, Joe Perches wrote: On Wed, 2014-10-08 at 13:40 +0300, Dan

[PATCH v2] staging: rtl8712: fix unnecessary elses after return/break in rtl8712_efuse.c

2014-10-08 Thread Serguey Parkhomovsky
This patch fixes two unnecessary else conditions that were found by checkpatch.pl. Signed-off-by: Serguey Parkhomovsky sergueyparkhomov...@gmail.com --- v2: use negation instead of comparing to false in if statement (suggested by Joe Perches) drivers/staging/rtl8712/rtl8712_efuse.c | 40

[PATCH v3 3/4] imx-drm: ipuv3-plane: enable double buffering

2014-10-08 Thread Philipp Zabel
This allows to update the buffer base address while the DMA channel is running. It is needed to flip the frame buffer of an active plane. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v2: - Rebased onto 7d2691da901d (gpu: ipu-v3: Add ipu-cpmem unit) ---

[PATCH v3 2/4] imx-drm: ipuv3-plane: move stride setting out of base setup

2014-10-08 Thread Philipp Zabel
Setting the stride can only be done on inactive channels, while the buffer base address can also be updated for running channels using the hardware double buffering feature. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v2: - Rebased onto 7d2691da901d (gpu: ipu-v3: Add

[PATCH v3 4/4] imx-drm: ipuv3-plane: fix plane updates for active planes

2014-10-08 Thread Philipp Zabel
While the DMA channel is running, it is not allowed to change anything but the inactive (double) buffer base address, so resizing a plane or changing to a frame buffer with different pixel format is not possible. Signed-off-by: Philipp Zabel p.za...@pengutronix.de ---

[PATCH v3 1/4] imx-drm: ipuv3-plane: allow local alpha in ipu_plane_mode_set()

2014-10-08 Thread Philipp Zabel
For the overlay plane scanning out a framebuffer with an alpha component, enable the DP local alpha feature on the partial plane. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/staging/imx-drm/ipuv3-plane.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-)

Re: [PATCH v2] staging: rtl8712: fix unnecessary elses after return/break in rtl8712_efuse.c

2014-10-08 Thread Joe Perches
On Tue, 2014-10-07 at 20:42 -0700, Serguey Parkhomovsky wrote: This patch fixes two unnecessary else conditions that were found by checkpatch.pl. [] diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c [] @@ -541,15 +540,16 @@ u8

[PATCH] Staging: octeon: ethernet-tx: fixed coding style warnings, missing blank lines

2014-10-08 Thread Roberto Medina
From: Roberto Medina robertox...@gmail.com Fixed coding style warnings due to missing blank lines. Signed-off-by: Roberto Medina robertox...@gmail.com --- drivers/staging/octeon/ethernet-tx.c | 13 + 1 file changed, 13 insertions(+) diff --git

[PATCH] drivers: staging: imx-drm driver cleanup

2014-10-08 Thread Rene Kolarik
Wrapping two too long lines in two files of the imx-drm driver. Signed-off-by: Rene Kolarik rene.kola...@gmail.com --- drivers/staging/imx-drm/imx-drm-core.c | 3 ++- drivers/staging/imx-drm/imx-tve.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2] Staging: octeon: ethernet-tx: fixed coding style warnings, missing blank lines

2014-10-08 Thread Roberto Medina
From: Roberto Medina robertox...@gmail.com Fixed coding style warnings due to missing blank lines. Dubious additions removed. Signed-off-by: Roberto Medina robertox...@gmail.com --- drivers/staging/octeon/ethernet-tx.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [PATCH v2] Staging: octeon: ethernet-tx: fixed coding style warnings, missing blank lines

2014-10-08 Thread Paul Gortmaker
On 14-10-08 03:18 PM, Roberto Medina wrote: From: Roberto Medina robertox...@gmail.com Fixed coding style warnings due to missing blank lines. Dubious additions removed. Signed-off-by: Roberto Medina robertox...@gmail.com --- drivers/staging/octeon/ethernet-tx.c | 11 +++ 1

Re: [PATCH v2] staging: rtl8712: fix unnecessary elses after return/break in rtl8712_efuse.c

2014-10-08 Thread Serguey Parkhomovsky
This sort of test is generally better where the individual tests are written on separate lines like: if ((data[idx] != pktdata[i]) || (data[idx+1] != pktdata[i+1])) { Thanks for all the suggestions, Joe. I'll upload a revised patch soon.

Re: [PATCH v2] Staging: octeon: ethernet-tx: fixed coding style warnings, missing blank lines

2014-10-08 Thread Roberto Medina
On 10/08/2014 09:39 PM, Paul Gortmaker wrote: On 14-10-08 03:18 PM, Roberto Medina wrote: From: Roberto Medina robertox...@gmail.com Fixed coding style warnings due to missing blank lines. Dubious additions removed. Signed-off-by: Roberto Medina robertox...@gmail.com --- @@ -550,6 +559,7 @@

Re: [PATCH v2] Staging: octeon: ethernet-tx: fixed coding style warnings, missing blank lines

2014-10-08 Thread Paul Gortmaker
On 14-10-08 04:52 PM, Aaro Koskinen wrote: Hi, On Wed, Oct 08, 2014 at 09:46:55PM +0200, Roberto Medina wrote: Thank you very much for your feedback. I just want to let you know that I didn't ignore that annotation from the last patch. I actually added the white line because checkpatch

Re: [PATCH] staging: bcm: multiple checkpatch fixes for InterfaceIdleMode.c

2014-10-08 Thread Greg KH
On Tue, Sep 30, 2014 at 10:56:17PM +0530, Karthik Nayak wrote: 1. WARNING: else is not generally useful after a break or return 2. WARNING: quoted string split across lines 3. WARNING: break quoted strings at a space character Signed-off-by: Karthik Nayak karthik@gmail.com ---

Re: [PATCH] staging: bcm: remove unnecessary else statement

2014-10-08 Thread Greg KH
On Tue, Sep 30, 2014 at 11:29:00PM +0530, Karthik Nayak wrote: Removed the else statement occurring after an if statement with a return value as per checkpatch warning. Signed-off-by: Karthik Nayak karthik@gmail.com --- drivers/staging/bcm/InterfaceMisc.c | 9 - 1 file

Re: [PATCH V3] Staging: rtl8712 removed unnecessary else after return

2014-10-08 Thread Greg KH
On Thu, Oct 02, 2014 at 02:32:26PM +0200, Nitin Kuppelur wrote: Removed unnecessary else after return to solve checkpatch.pl warning Signed-off-by: Nitin Kuppelur nitinkuppe...@gmail.com --- drivers/staging/rtl8712/hal_init.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-)

Re: [PATCH v3 2/2] staging: gs_fpgaboot: Fix Possible unnecessary 'out of memory' message checkpatch.pl warning

2014-10-08 Thread Greg Kroah-Hartman
On Tue, Oct 07, 2014 at 05:54:48PM +0200, Dzmitry Sledneu wrote: Fix Possible unnecessary 'out of memory' message checkpatch.pl warning Signed-off-by: Dzmitry Sledneu dzmitry.sled...@gmail.com --- drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 7 ++- 1 file changed, 2 insertions(+), 5

Re: [PATCH v2] Staging: slicoss: slicoss: replaced memcpy with ether_addr_copy

2014-10-08 Thread Greg KH
On Fri, Oct 03, 2014 at 10:19:44PM +0200, Abel Moyo wrote: Replaced memcpy with ether_addr_copy in slic_mcast_add_list. Addresses are _aligned(2) as the struct mcast_address has only single field of type unsigned char. Signed-off-by: Abel Moyo abelmoyo...@gmail.com --- Changes in v2:

Re: [PATCH] drivers: staging: wlan-ng: fix sparse warnings

2014-10-08 Thread Greg Kroah-Hartman
On Sat, Oct 04, 2014 at 10:24:28AM +0800, Cheng-wei Lee wrote: This patch fix the sparse warnings in wlan-ng/cfg80211.c The following functions were only used in this file, so done by declaring them into static. drivers/staging/wlan-ng/cfg80211.c:710:6: warning: symbol

Re: [PATCH] staging: rtl8188eu: coding style fixup

2014-10-08 Thread Greg KH
On Tue, Oct 07, 2014 at 01:11:42PM +0400, Igor Bogomazov wrote: checkpatch.pk tiny fix get rid of 2 warnings and 2 errors for hal/fw.c Signed-off-by: Igor Bogomazov yg...@ygrex.ru Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: navin patidar navin.pati...@gmail.com Cc: Stephen

Re: [PATCH] drivers: staging: imx-drm driver cleanup

2014-10-08 Thread Greg KH
On Wed, Oct 08, 2014 at 08:34:48PM +0200, Rene Kolarik wrote: Wrapping two too long lines in two files of the imx-drm driver. Signed-off-by: Rene Kolarik rene.kola...@gmail.com --- drivers/staging/imx-drm/imx-drm-core.c | 3 ++- drivers/staging/imx-drm/imx-tve.c | 3 ++- 2 files

RE: [PATCH] staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl

2014-10-08 Thread Hartley Sweeten
On Wednesday, October 08, 2014 8:09 AM, Ian Abbott wrote: `do_cmd_ioctl()`, the handler for the `COMEDI_CMD` ioctl can incorrectly call the Comedi subdevice's `do_cmd()` handler with a NULL channel list pointer. This is a regression as the `do_cmd()` handler has never been expected to deal

Re: [PATCH 3/3] staging: dgap: introduce dgap_stop()

2014-10-08 Thread DaeSeok Youn
Hi, Dan 2014-10-08 20:37 GMT+09:00 Dan Carpenter dan.carpen...@oracle.com: All three of these patches are good and a nice improvement. This one is a good bugfix. I have some notes for later, though below. On Wed, Oct 08, 2014 at 08:13:56PM +0900, Daeseok Youn wrote: diff --git

[PATCH 1/3] staging: vt6655: delete non-standard ioctl 0xFF

2014-10-08 Thread Vladimir A. Nazarenko
Custom ioctl 0xff is legacy code that was used for patched version of wpa_supplicant, where function wpa_authen_Status_transfer() called this ioctl to tell authentication status to the driver. While from upstream was added only driver code to the kernel but not patches to the

[PATCH 2/3] staging: vt6655: remove global variable wpa_Result

2014-10-08 Thread Vladimir A. Nazarenko
This variable unused, so remove it. Signed-off-by: Vladimir A. Nazarenko nas...@ya.ru --- drivers/staging/vt6655/device_main.c | 8 drivers/staging/vt6655/ioctl.c | 4 2 files changed, 12 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c

[PATCH 3/3] staging: vt6655: delete SndEvt_ToAPI code

2014-10-08 Thread Vladimir A. Nazarenko
It's never enabled, so we can safely remove it. Signed-off-by: Vladimir A. Nazarenko nas...@ya.ru --- drivers/staging/vt6655/device_main.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c

[PATCH V2] staging: dgap: introduce dgap_stop()

2014-10-08 Thread Daeseok Youn
The dgap_init_module() need to unwind for cleanup variables properly. Because dgap_init_module() calls dgap_cleanup_module() for freeing variables but this function is possible to free variables which are not allocated. Signed-off-by: Daeseok Youn daeseok.y...@gmail.com --- V2: change ulong which

[PATCH] staging: vt6655: remove useless #if 1

2014-10-08 Thread Vladimir A. Nazarenko
There is code encapsulated in #if 1, let's remove it. Signed-off-by: Vladimir A. Nazarenko nas...@ya.ru --- drivers/staging/vt6655/device_main.c | 4 drivers/staging/vt6655/wpactl.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c