Re: [PATCH] staging: lustre: Use %ld to format long

2014-06-16 Thread Geert Uytterhoeven
Hi Greg, On Wed, Jun 11, 2014 at 7:00 PM, Geert Uytterhoeven wrote: > drivers/staging/lustre/lustre/llite/rw26.c: In function ‘ll_direct_IO_26’: > drivers/staging/lustre/lustre/llite/rw26.c:388: warning: format ‘%zd’ expects > type ‘signed size_t’, but argument 6 has type ‘long int’ > drivers/st

[PATCH] staging: goldfish: fix coding style.

2014-06-16 Thread Hoang Tran
Using an else following a break or return can unnecessarily indent code blocks. This patch fixes coding style reported by checkpatch.pl, a part of eudyptula challenge. Signed-off-by: Hoang Tran --- drivers/staging/goldfish/goldfish_audio.c | 10 +- 1 file changed, 5 insertions(+), 5 del

Re: [PATCH] Staging/comedi: Fixes static analysis warning raised by sparse

2014-06-16 Thread Dan Carpenter
On Sun, Jun 15, 2014 at 09:32:27PM +0200, Sam Ravnborg wrote: > diff --git a/expand.c b/expand.c > index 0f6720c..4a96de4 100644 > --- a/expand.c > +++ b/expand.c > @@ -187,7 +187,7 @@ static int simplify_int_binop(struct expression *expr, > struct symbol *ctype) > return 0; >

Re: [PATCH] staging: vt6655: preserve address space by not casting

2014-06-16 Thread Dan Carpenter
On Fri, Jun 13, 2014 at 12:11:51PM +0200, Martin Kepplinger wrote: > Fix the sparse error: cast removes address space of expression. > --- > Is that even correct? It's correct but not complete. vt6655 impliment their own versions of ethtool_ioctl() when they should be using the standard versions.

Re: [PATCH] staging: vt6655: remove unnecessary typedef struct.

2014-06-16 Thread Dan Carpenter
On Fri, Jun 13, 2014 at 12:23:43PM +0200, Martin Kepplinger wrote: > Remove a totally unnecessary typedef. This is more readable now. Choose a lower case name for the struct, otherwise we have to change all these again in a while. regards, dan carpenter __

Re: [PATCH] staging: wlan-ng: fix Missing a blank line after declarations warnings

2014-06-16 Thread Dan Carpenter
Wrong description, doesn't apply, and breaks the build. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] Staging/comedi: Fixes static analysis warning raised by sparse

2014-06-16 Thread Sam Ravnborg
On Mon, Jun 16, 2014 at 10:40:19AM +0300, Dan Carpenter wrote: > On Sun, Jun 15, 2014 at 09:32:27PM +0200, Sam Ravnborg wrote: > > diff --git a/expand.c b/expand.c > > index 0f6720c..4a96de4 100644 > > --- a/expand.c > > +++ b/expand.c > > @@ -187,7 +187,7 @@ static int simplify_int_binop(struct ex

Re: [PATCH] staging: slicoss: Fix coding style issue

2014-06-16 Thread Dan Carpenter
On Fri, Jun 13, 2014 at 10:04:35AM -0700, Greg KH wrote: > On Fri, Jun 13, 2014 at 05:52:33PM +0200, Benedict Boerger wrote: > > Fix a coding style issue found by checkpatch.pl. > > Use ether_addr_copy instead of memcpy. > > > > Done to complete a eudyptula task. > > > > Signed-off-by: Benedict B

Re: [PATCH] staging: ced1401: fix sparse warning for ced1401

2014-06-16 Thread Dan Carpenter
On Sat, Jun 14, 2014 at 02:04:38PM +0900, Seunghun Lee wrote: > This patch fixes below warning. > > drivers/staging/ced1401/ced_ioc.c:703:30: warning: incorrect type in > assignment (different address spaces) > drivers/staging/ced1401/ced_ioc.c:703:30:expected void *[usertype] > lpvBuf

Re: [PATCH] staging: lustre: remove memset(0) after LIBCFS_ALLOC

2014-06-16 Thread Dan Carpenter
On Sat, Jun 14, 2014 at 05:29:51PM +1000, Vitaly Osipov wrote: > Joe Perches mentioned on driverdev-devel that memset after LIBCFS_ALLOC > is not necessary as it is already done during LIBCFS_ALLOC_POST. This > commit removes these unnecessary memsets. Based on the results of running > a cocci pat

Attention,

2014-06-16 Thread Mrs. Ngozi Okonjo-Iweala
Office of the Honorable Minister of Finance Federal Ministry of Finance (FMF) FMF Annex Complex Building Garki, Abuja-Nigeria Our Ref:CBN/FMF/CBX/021/07/014 Contract No: MAV.NNPC/FGN/MIN. Attention, I am Director Federal Ministry of Finance and was instructed by the President Federal Republi

Re: [PATCH 2/2] mmc: rtsx: add support for async request

2014-06-16 Thread Ulf Hansson
On 6 June 2014 09:05, wrote: > From: Micky Ching > > Add support for non-blocking request, pre_req() runs dma_map_sg() and > post_req() runs dma_unmap_sg(). This patch can increase card read/write > speed, especially for high speed card and slow speed CPU. > > Test on intel i3(800MHz - 2.3GHz) p

Re: [PATCH] staging: remove non-ascii-characters from HalBtc8812a1Ant.c

2014-06-16 Thread Dan Carpenter
On Sat, Jun 14, 2014 at 08:56:34PM +0200, Toralf Förster wrote: > those characters breaks the html-formatter tool of Cppcheck > Cppcheck should be fixed. > Signed-off-by: Toralf Förster > --- > drivers/staging/rtl8821ae/btcoexist/HalBtc8812a1Ant.c | 16 > 1 file changed, 8 ins

Re: [PATCH 2/2] mmc: rtsx: add support for async request

2014-06-16 Thread micky
On 06/16/2014 04:42 PM, Ulf Hansson wrote: @@ -36,7 +37,10 @@ struct realtek_pci_sdmmc { > struct rtsx_pcr *pcr; > struct mmc_host *mmc; > struct mmc_request *mrq; >+ struct workqueue_struct *workq; >+#define SDMMC_WORKQ_NAME "rtsx_pci_sdmm

Re: [PATCH] staging: rtl8712: rtl871x_ioctl_linux.c: Cleaning up useless if statement

2014-06-16 Thread Dan Carpenter
On Sun, Jun 15, 2014 at 07:20:57PM +0200, Rickard Strandqvist wrote: > The same code regardless of the outcome of the if statement. This may of > course be a miss and there should be a difference in the code. > And clean up another duplicate line of code. > > This was partly found using a static c

Re: PATCH[[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]‏‏

2014-06-16 Thread Dan Carpenter
On Mon, Jun 16, 2014 at 10:47:25AM +0100, Martyn Welch wrote: > Nick, > > Sorry for the delay in responding. > > I'm staring at the manual for the ca91c142 and the relevant bits in > the VSIx_CTL registers definitely need to be set to 0 for A16, > likewise with the LM_CTL register. The pattern (3

Re: [PATCH] vme_tsi148: Allow setting VMEbus Global Timeout

2014-06-16 Thread Martyn Welch
On 06/06/14 20:41, Aaron Sierra wrote: Add a "gto" parameter to this driver so that the VMEbus Global Timeout value can be lowered from the default (8h -> 2048 us) or disabled completely. This patch also updates the TSI148_LCSR_VCTRL_GTO_* defines to match the Tsi148 User Reference Manual, which

Re: PATCH[[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]‏‏

2014-06-16 Thread Martyn Welch
On 16/06/14 10:56, Dan Carpenter wrote: On Mon, Jun 16, 2014 at 10:47:25AM +0100, Martyn Welch wrote: Nick, Sorry for the delay in responding. I'm staring at the manual for the ca91c142 and the relevant bits in the VSIx_CTL registers definitely need to be set to 0 for A16, likewise with the LM

[PATCH v14 01/10] [media] v4l2: add new V4L2_PIX_FMT_RGB666 pixel format.

2014-06-16 Thread Denis Carikli
That new macro is needed by the imx_drm staging driver for supporting the QVGA display of the eukrea-cpuimx51 board. Signed-off-by: Denis Carikli Acked-by: Mauro Carvalho Chehab Acked-by: Laurent Pinchart Acked-by: Philipp Zabel --- ChangeLog v13->v14: - None ChangeLog v10->v13: - No changes

[PATCH v14 06/10] drm: drm_display_mode: add signal polarity flags

2014-06-16 Thread Denis Carikli
We need a way to pass signal polarity informations between DRM panels, and the display drivers. To do that, a pol_flags field was added to drm_display_mode. Signed-off-by: Denis Carikli --- ChangeLog v13->v14: - Fixed DRM_MODE_FLAG_POL_DE_HIGH's description. ChangeLog v12->v13: - Added Docbook

[PATCH v14 05/10] ARM: dts: imx5*, imx6*: correct display-timings nodes.

2014-06-16 Thread Denis Carikli
The imx-drm driver can't use the de-active and pixelclk-active display-timings properties yet. Instead the data-enable and the pixel data clock polarity are hardcoded in the imx-drm driver. So theses properties are now set to keep the same behaviour when imx-drm will start using them. Signed-off

[PATCH v14 08/10] drm/panel: Add Eukrea mbimxsd51 displays.

2014-06-16 Thread Denis Carikli
Signed-off-by: Denis Carikli --- ChangeLog v13->v14: - None ChangeLog v12->v13: - Added a note explaining why the size is zero in the eukrea_mbimxsd51_dvi(s)vga structs. ChangeLog v11->v12: - Rebased: It now uses the new DRM_MODE_FLAG_POL_DE flags defines names ChangeLog v10->v11: - New patch.

[PATCH v14 09/10] ARM: dts: mbimx51sd: Add display support.

2014-06-16 Thread Denis Carikli
The CMO-QVGA, DVI-SVGA and DVI-VGA are added. Signed-off-by: Denis Carikli --- ChangeLog v13->v14: - None ChangeLog v10->v13: - Rebased - Removed enable-active-high in reg_lcd_3v3: its GPIO already has the GPIO_ACTIVE_HIGH flag. Without this removal, the display was off at boot and powerin

[PATCH v14 07/10] imx-drm: Use drm_display_mode timings flags.

2014-06-16 Thread Denis Carikli
The previous hardware behaviour was kept if the flags are not set. Signed-off-by: Denis Carikli --- ChangeLog v13->v14: - Rebased ChangeLog v12->v13: - This patch doesn't need the DRM_MODE_FLAG_POL_*_PRESERVE flags anymore. - code cleanup to improve readability: - ENABLE_POL_PRESERVE is now go

[PATCH v14 03/10] imx-drm: Correct BGR666 and the board's dts that use them.

2014-06-16 Thread Denis Carikli
The current BGR666 is not consistent with the other color mapings like BGR24. BGR666 should be in the same byte order than BGR24. Signed-off-by: Denis Carikli Acked-by: Philipp Zabel --- ChangeLog v13->v14: - Rebased ChangeLog v10->v13: - Rebased ChangeLog v9->v10: - Rebased. - Added Philipp Zab

[PATCH v14 02/10] imx-drm: Add RGB666 support for parallel display.

2014-06-16 Thread Denis Carikli
Signed-off-by: Denis Carikli Acked-by: Philipp Zabel --- ChangeLog v13->v14: - Rebased ChangeLog v9->v13: - Rebased ChangeLog v8->v9: - Rebased. - Added Philipp Zabel's ack. - Shortened the patch title. ChangeLog v8->v9: - Removed the Cc. They are now set in git-send-email directly. - Rebased.

[PATCH v14 10/10] ARM: dts: mbimx51sd: Add CMO-QVGA backlight support.

2014-06-16 Thread Denis Carikli
Signed-off-by: Denis Carikli --- ChangeLog v13->v14: - None ChangeLog v11->v13: - No changes ChangeLog v9->v11: - Now uses the drm-panel instead of the display-timings. ChangeLog v8->v9: - Removed the Cc. They are now set in git-send-email directly. - The backlight is now on at boot. ChangeLog

[PATCH v14 04/10] imx-drm: use defines for clock polarity settings

2014-06-16 Thread Denis Carikli
Signed-off-by: Denis Carikli --- ChangeLog v13->v14: - Rebased ChangeLog 12->v13: - No changes ChangeLog 11->v12: - Improved the define names to match the hardware: ENABLE_POL is not a clock signal but instead an enable signal. ChangeLog v9->v10: - New patch which was splitted out from: "stag

Re: [PATCH v14 01/10] [media] v4l2: add new V4L2_PIX_FMT_RGB666 pixel format.

2014-06-16 Thread Russell King - ARM Linux
On Mon, Jun 16, 2014 at 12:11:15PM +0200, Denis Carikli wrote: > That new macro is needed by the imx_drm staging driver > for supporting the QVGA display of the eukrea-cpuimx51 board. As I said probably around v10 time, I already have this patch queued, and I was going to send it to Greg before

Re: [PATCH v14 02/10] imx-drm: Add RGB666 support for parallel display.

2014-06-16 Thread Russell King - ARM Linux
On Mon, Jun 16, 2014 at 12:11:16PM +0200, Denis Carikli wrote: > Signed-off-by: Denis Carikli > Acked-by: Philipp Zabel As I said probably around v10 time, I already have this patch queued, and I was going to send it to Greg before the previous merge window, but due to the number of patches I wa

Re: [PATCH v14 03/10] imx-drm: Correct BGR666 and the board's dts that use them.

2014-06-16 Thread Russell King - ARM Linux
On Mon, Jun 16, 2014 at 12:11:17PM +0200, Denis Carikli wrote: > The current BGR666 is not consistent with the other color mapings like BGR24. > BGR666 should be in the same byte order than BGR24. > > Signed-off-by: Denis Carikli > Acked-by: Philipp Zabel As I said probably around v10 time, I a

Re: PATCH[[vme/bridges/vme_ca91cx42.c:1382: Bad if test Bug Fix]‏‏

2014-06-16 Thread Martyn Welch
Nick, Sorry for the delay in responding. I'm staring at the manual for the ca91c142 and the relevant bits in the VSIx_CTL registers definitely need to be set to 0 for A16, likewise with the LM_CTL register. The pattern (3<<16) would enable one of the "reserved" address spaces. Martyn On 12

[PATCH] staging: lustre: Fix sparse warnings for undeclared symbols

2014-06-16 Thread Scott Weir
This patch fixes the sparse warnings in drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c: sec_lproc.c:58:6: warning: symbol 'sec_flags2str' was not declared. Should it be static? Signed-off-by: Scott Weir --- drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c | 2 +- 1 file changed, 1 insertion(

[PATCH 2/3] drivers/staging/bcm/Misc: style: removed duplicate parentheses

2014-06-16 Thread Robin Schroer
Signed-off-by: Robin Schroer --- drivers/staging/bcm/Misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/bcm/Misc.c b/drivers/staging/bcm/Misc.c index f2bc699..a0637eb 100644 --- a/drivers/staging/bcm/Misc.c +++ b/drivers/staging/bcm/Misc.c @@ -284,7 +

[PATCH 1/3] drivers/staging/bcm/Misc: style: added blank lines after declarations

2014-06-16 Thread Robin Schroer
Signed-off-by: Robin Schroer --- drivers/staging/bcm/Misc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/staging/bcm/Misc.c b/drivers/staging/bcm/Misc.c index 7b2fa0f..f2bc699 100644 --- a/drivers/staging/bcm/Misc.c +++ b/drivers/staging/bcm/Misc.c @@ -28,6 +28,7 @@

[PATCH 3/3] drivers/staging/bcm/Misc: style: removed void returns

2014-06-16 Thread Robin Schroer
Signed-off-by: Robin Schroer --- drivers/staging/bcm/Misc.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/bcm/Misc.c b/drivers/staging/bcm/Misc.c index a0637eb..a1c833c 100644 --- a/drivers/staging/bcm/Misc.c +++ b/drivers/staging/bcm/Misc.c @@ -21,7 +21,6 @@ static voi

Re: [PATCH 1/2] mfd: rtsx: add dma transfer function

2014-06-16 Thread Lee Jones
> From: Micky Ching > > rtsx driver using a single function for transfer data, dma map/unmap are > placed in one fix function. We need map/unmap dma in different place(for > mmc async driver), so add three function for dma map, dma transfer and > dma unmap. > > Signed-off-by: Micky Ching > ---

Re: [PATCH v14 09/10] ARM: dts: mbimx51sd: Add display support.

2014-06-16 Thread Denis Carikli
On 06/16/2014 12:11 PM, Denis Carikli wrote:> + reg_lcd_3v3: lcd-en { > + compatible = "regulator-fixed"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_reg_lcd_3v3>; > + regulator-name = "lcd-3v3"; > + regulator-min-microvolt = <330>

Re: [PATCH 2/2] mmc: rtsx: add support for async request

2014-06-16 Thread Ulf Hansson
On 16 June 2014 11:09, micky wrote: > On 06/16/2014 04:42 PM, Ulf Hansson wrote: >>> >>> @@ -36,7 +37,10 @@ struct realtek_pci_sdmmc { >>> > struct rtsx_pcr *pcr; >>> > struct mmc_host *mmc; >>> > struct mmc_request *mrq; >>> >+ struct workqueue_s

Re: [PATCH] vme_tsi148: Allow setting VMEbus Global Timeout

2014-06-16 Thread Aaron Sierra
- Original Message - > From: "Martyn Welch" > Sent: Monday, June 16, 2014 4:56:16 AM > Subject: Re: [PATCH] vme_tsi148: Allow setting VMEbus Global Timeout > > On 06/06/14 20:41, Aaron Sierra wrote: > > Add a "gto" parameter to this driver so that the VMEbus Global Timeout > > value can

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-16 Thread Fabio Estevam
On Wed, Jun 11, 2014 at 5:17 AM, Russell King - ARM Linux wrote: > The problem here is that we need more inteligence from CCF in order to > do that - we need it to be able to reprogram the dividers so that the > IPU DI0 clock remains at 148.5MHz while increasing the output of > pll5_video_div thr

Re: [PATCH 1/2] mfd: rtsx: add dma transfer function

2014-06-16 Thread Ulf Hansson
On 16 June 2014 14:20, Lee Jones wrote: >> From: Micky Ching >> >> rtsx driver using a single function for transfer data, dma map/unmap are >> placed in one fix function. We need map/unmap dma in different place(for >> mmc async driver), so add three function for dma map, dma transfer and >> dma

[PATCH v2] staging: vt6655: remove unnecessary typedef struct.

2014-06-16 Thread Martin Kepplinger
Remove a totally unnecessary typedef and rename it to lowercase. This is more readable now. Signed-off-by: Martin Kepplinger --- so in that way, one could change the more heavily used typedefs as well. thanks for your review. drivers/staging/vt6655/card.c |2 +- drivers/staging/vt6655/de

[PATCH 0/9] staging: rtl8188eu: Remove code implementing NAT

2014-06-16 Thread navin patidar
Driver has code which does Network address translation (NAT), and i don't see how this code is useful for driver. navin patidar (9): staging: rtl8188eu: Remove function rtw_br_client_tx() staging: rtl8188eu: Remove unused functons defined in rtw_br_ext.c staging: rtl8188eu: Remove function n

[PATCH 2/9] staging: rtl8188eu: Remove unused functons defined in rtw_br_ext.c

2014-06-16 Thread navin patidar
This patch removes some functions defined in rtw_br_ext.c, which have become obsolete after removal of rtw_br_client_tx(). Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_br_ext.c| 727 drivers/staging/rtl8188eu/include/usb_osintf.h |1 - 2 f

[PATCH 4/9] staging: rtl8188eu: Remove pppoe_connection_in_progress from struct adapter

2014-06-16 Thread navin patidar
Value stored in pppoe_connection_in_progress isn't being used by driver. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_mlme.c |7 --- drivers/staging/rtl8188eu/include/drv_types.h |1 - 2 files changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/

[PATCH 3/9] staging: rtl8188eu: Remove function nat25_db_cleanup()

2014-06-16 Thread navin patidar
We've removed the code which was responsible for building NAT table, so no use of keeping nat_db_cleanup(). Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_br_ext.c| 26 drivers/staging/rtl8188eu/core/rtw_cmd.c |3 +-- drivers/staging/

[PATCH 1/9] staging: rtl8188eu: Remove function rtw_br_client_tx()

2014-06-16 Thread navin patidar
rtw_br_client_tx() pass tx packet to functions responsible for building NAT table. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 135 - 1 file changed, 135 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/

[PATCH 6/9] staging: rtl8188eu: Remove function netdev_br_init()

2014-06-16 Thread navin patidar
netdev_br_init() tries to find MAC address of network interface named "br0", then that MAC address is assigned to adapter->br_netdev and used by driver's NAT implementation code. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/include/usb_osintf.h |1 - drivers/staging/rtl8188eu/o

[PATCH 5/9] staging: rtl8188eu: Remove function nat25_db_expire()

2014-06-16 Thread navin patidar
We've removed the code which was responsible for building NAT table, so no use of keeping nat_db_expire(). Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 11 --- drivers/staging/rtl8188eu/include/usb_osintf.h |1 - 2 files changed, 12 deletions(-)

[PATCH 8/9] staging: rtl8188eu: Remove unused members of struct adapter

2014-06-16 Thread navin patidar
Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/include/drv_types.h |8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/drv_types.h b/drivers/staging/rtl8188eu/include/drv_types.h index 71b4af7..baafe33 100644 --- a/drivers/staging/rtl8188e

[PATCH 9/9] staging: rtl8188eu: Remove file rtw_br_ext.h

2014-06-16 Thread navin patidar
driver doesn't need rtw_br_ext.h any more. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_cmd.c |1 - drivers/staging/rtl8188eu/include/drv_types.h |1 - drivers/staging/rtl8188eu/include/rtw_br_ext.h | 64 drivers/staging/rtl8188eu/

[PATCH 7/9] staging: rtl8188eu: core: Remove file rtw_br_ext.c

2014-06-16 Thread navin patidar
functions defined in rtw_br_ext.c are not being used by driver anymore. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/Makefile |1 - drivers/staging/rtl8188eu/core/rtw_br_ext.c | 365 --- 2 files changed, 366 deletions(-) delete mode 100644 dri

[PATCH]v2 staging: remove 1 CR and few more non-ascii characters from HalBtc8812a1Ant.c

2014-06-16 Thread Toralf Förster
comments were translated with https://translate.google.com/ this enables python to parse that file right Signed-off-by: Toralf Förster --- drivers/staging/rtl8821ae/btcoexist/HalBtc8812a1Ant.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rt

Re: [PATCH] staging: remove non-ascii-characters from HalBtc8812a1Ant.c

2014-06-16 Thread Toralf Förster
On 06/16/2014 10:49 AM, Dan Carpenter wrote: > On Sat, Jun 14, 2014 at 08:56:34PM +0200, Toralf Förster wrote: >> those characters breaks the html-formatter tool of Cppcheck >> > > Cppcheck should be fixed. > >> Signed-off-by: Toralf Förster >> --- >> drivers/staging/rtl8821ae/btcoexist/HalBtc8

Re: [PATCH 3/5] staging/wlags49_h2: correct check of the return value of register_netdev()

2014-06-16 Thread Dan Carpenter
On Mon, Jun 16, 2014 at 04:50:51PM +0200, Stephan Gabert wrote: > As mentioned in net/core/dev.c register_netdev() explicitly returns a > negative errno code on failure. > > So in case of failure, one should rather test whether ret is negative > than just unlike 0. No. In the kernel the normal w

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Dan Carpenter
On Sun, Jun 15, 2014 at 12:41:47AM +0200, Rickard Strandqvist wrote: > Replacing strncpy with strlcpy to avoid strings that lacks null terminate. Generally in the kernel we allow strncpy() if people want to use it. Let's not start doing sed replacements of these if it doesn't cause a problem. Als

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Dan Carpenter
On Mon, Jun 16, 2014 at 10:01:14PM +0300, Dan Carpenter wrote: > > No one calls U14DriverName() so just delete this function. Oh. This is a userspace library or something? I'm not sure what to do. How did you compile test this? Does your platform even provide strlcpy()? Anyway, don't delete

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-16 Thread Russell King - ARM Linux
On Mon, Jun 16, 2014 at 11:13:02AM -0300, Fabio Estevam wrote: > On Wed, Jun 11, 2014 at 5:17 AM, Russell King - ARM Linux > wrote: > > > The problem here is that we need more inteligence from CCF in order to > > do that - we need it to be able to reprogram the dividers so that the > > IPU DI0 cl

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Rickard Strandqvist
2014-06-16 21:09 GMT+02:00 Dan Carpenter : > On Mon, Jun 16, 2014 at 10:01:14PM +0300, Dan Carpenter wrote: >> >> No one calls U14DriverName() so just delete this function. > > Oh. This is a userspace library or something? I'm not sure what to do. > > How did you compile test this? Does your pla

Re: [PATCH 2/2] mmc: rtsx: add support for async request

2014-06-16 Thread micky
On 06/16/2014 08:40 PM, Ulf Hansson wrote: On 16 June 2014 11:09, micky wrote: On 06/16/2014 04:42 PM, Ulf Hansson wrote: @@ -36,7 +37,10 @@ struct realtek_pci_sdmmc { struct rtsx_pcr *pcr; struct mmc_host *mmc; struct mmc_request *mrq; +

Re: [PATCH 1/2] mfd: rtsx: add dma transfer function

2014-06-16 Thread micky
On 06/16/2014 08:20 PM, Lee Jones wrote: I don't see any glaring issues with this patch. Does it rely on the first patch, or vise versa, or can it just be applied? Hi Jones, [PATCH 2/2] need function defined in [PATCH 1/2], so we provide interface in [mfd] and called in [mmc]. Best Regards. m

[PATCH] Check if skb_alloc returns Null in function fw_download_code

2014-06-16 Thread Nicholas Krause
Signed-off-by: Nicholas Krause --- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c index 1a95d1f..11e915e 100644 --- a/drivers/stagi

Re: [PATCH] Check if skb_alloc returns Null in function fw_download_code

2014-06-16 Thread Greg KH
On Mon, Jun 16, 2014 at 11:23:13PM -0400, Nicholas Krause wrote: > Signed-off-by: Nicholas Krause > --- > drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c > b/drivers/staging/rtl819

Re: [PATCH] Check if skb_alloc returns Null in function fw_download_code

2014-06-16 Thread Dave Jones
On Mon, Jun 16, 2014 at 09:07:45PM -0700, Greg KH wrote: > On Mon, Jun 16, 2014 at 11:23:13PM -0400, Nicholas Krause wrote: > > Signed-off-by: Nicholas Krause > > --- > > drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/d

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Dan Carpenter
On Tue, Jun 17, 2014 at 12:14:18AM +0200, Rickard Strandqvist wrote: > 2014-06-16 21:09 GMT+02:00 Dan Carpenter : > > On Mon, Jun 16, 2014 at 10:01:14PM +0300, Dan Carpenter wrote: > >> > >> No one calls U14DriverName() so just delete this function. > > > > Oh. This is a userspace library or somet

Re: [PATCH] Check if skb_alloc returns Null in function fw_download_code

2014-06-16 Thread Dan Carpenter
On Mon, Jun 16, 2014 at 11:23:13PM -0400, Nicholas Krause wrote: > Signed-off-by: Nicholas Krause > --- > drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c > b/drivers/staging/rtl819