Re: [staging:staging-testing 597/643] drivers/video/fbdev/sm712fb.c:1549:12: warning: 'smtcfb_pci_suspend' defined but not used

2015-08-10 Thread Sudip Mukherjee
On Sun, Aug 09, 2015 at 08:39:56AM +0800, kbuild test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > staging-testing > head: b963e7223cb3278dda35a6550a8df08ff2be2ee5 > commit: 1461d66728648540a043ba69ace1081ed5006faf [597/643] staging: sm7xxfb: > merge

Re: [PATCH] Staging: android: ion: Fix missing a blank line coding style issue.

2015-08-10 Thread Sudip Mukherjee
On Mon, Aug 10, 2015 at 11:42:27PM -0500, Junsu Shin wrote: > This is a patch to the ion.c that fixes a warning that tells missing a blank > line after declaration > > Signed-off-by: Junsu Shin > --- 1) This is a false positive. 2) You need to refresh your tree. This has already been fixed. reg

Re: [PATCH] staging: lustre: lustre: llite: Added a new line after declaration

2015-08-10 Thread Sudip Mukherjee
On Mon, Aug 10, 2015 at 08:56:02PM +0530, Aparna Karuthodi wrote: > Added a new line to fix a coding style error no space after > declaration detected by checkpatch. > > Signed-off-by: Aparna Karuthodi > --- Why are you sending this patch again? You have sent this one long back and has already be

[PATCH] Staging: android: ion: Fix missing a blank line coding style issue.

2015-08-10 Thread Junsu Shin
This is a patch to the ion.c that fixes a warning that tells missing a blank line after declaration Signed-off-by: Junsu Shin --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 6f

RE: [PATCH v2] staging: fsl-mc: add DPAA2 overview readme

2015-08-10 Thread Stuart Yoder
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Sunday, August 09, 2015 9:25 AM > To: Yoder Stuart-B08248; gre...@linuxfoundation.org; Rivera Jose-B46482; katz > Itai-RM05202 > Cc: de...@driverdev.osuosl.org; linux-ker...@vger.kernel.org; a...@arndb.de > Subjec

[PATCH 2/4] staging: wilc1000: remove unused memory functions

2015-08-10 Thread Chaehyun Lim
This patch remove unused memory functions because some macros with this memory function are deleted. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_memory.c | 28 --- drivers/staging/wilc1000/wilc_memory.h | 50 -- 2 files changed, 7

[PATCH 3/4] staging: wilc1000: use kfree instead of WILC_FREE

2015-08-10 Thread Chaehyun Lim
Use kfree instead of WILC_FREE. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 12 +-- drivers/staging/wilc1000/host_interface.c | 112 +++--- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_m

[PATCH 1/4] staging: wilc1000: wilc_memory.h: remove unused define

2015-08-10 Thread Chaehyun Lim
Remove unused define macro that is never used. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_memory.h | 51 -- 1 file changed, 51 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_memory.h b/drivers/staging/wilc1000/wilc_memory.h index 372d

[PATCH 4/4] staging: wilc1000: remove WILC_FREE

2015-08-10 Thread Chaehyun Lim
Remove WILC_FREE that is replaced by kfree. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_memory.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_memory.h b/drivers/staging/wilc1000/wilc_memory.h index 1c0cb82..5ec4ef3 100644 --- a/drivers/

Re: [PATCH 11/19] staging: octeon: Remove unnecessary externs

2015-08-10 Thread David Daney
On 08/10/2015 02:51 PM, Joe Perches wrote: Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches Acked-by: David Daney --- drivers/staging/octeon/ethernet-mdio.h | 2 +- drivers/staging/octeon/octeon-ethernet.h | 22 +++--- 2 files chang

[PATCH 19/19] staging: xgifb: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/xgifb/vb_init.h| 4 ++-- drivers/staging/xgifb/vb_setmode.h | 34 +- 2 files changed, 19 insertions(+), 19 deletions(-)

[PATCH] drivers: staging: unisys: add MODULE_DEVICE_TABLE and temporary MODULE_ALIAS lines to visornic

2015-08-10 Thread Benjamin Romer
From: Prarit Bhargava This patch adds an module alias and a MODULE_DEVICE_TABLE to autoload the visornic driver when an appropriate device is created by the visorbus. Note, the correct way of fixing this is adding functionality to scripts/mod/file2alias.c for the visorbus bus type. Signed-off-b

[PATCH 16/19] staging: rtl8712: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/rtl8712/rtl871x_ioctl.h | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_ioctl.h b/drivers/staging/rtl8712/rt

[PATCH 11/19] staging: octeon: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/octeon/ethernet-mdio.h | 2 +- drivers/staging/octeon/octeon-ethernet.h | 22 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/octeon/

[PATCH 03/19] staging: fbtft: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/fbtft/fbtft.h | 52 +-- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/drivers/staging/fbtft/fbtft.h

[PATCH 10/19] staging: nvec: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/nvec/nvec.h | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/nvec/nvec.h b/drivers/staging/nvec/nvec.

[PATCH 13/19] staging: rtl8188eu: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/rtl8188eu/include/osdep_service.h | 2 +- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 8 drivers/staging/rtl8188eu/include/sta_info.h | 18 +- 3 files c

[PATCH 06/19] staging: lustre: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h| 2 +- .../staging/lustre/lnet/klnds/socklnd/socklnd.h| 141 +- drivers/staging/lustre/lnet/selftest/consol

[PATCH 18/19] staging: wilc1000: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/wilc1000/coreconfigurator.h | 30 +++ drivers/staging/wilc1000/linux_wlan_common.h | 4 +-- drivers/staging/wilc1000/wilc_wfi

[PATCH 14/19] staging: rtl8192e: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h | 10 +- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h | 4 +- .../staging/rtl8192e/rtl8192e/r8192E_firmware.h

[PATCH 02/19] staging: dgnc: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/dgnc/dgnc_sysfs.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.h b/drivers/staging/dgnc/dgnc_sysfs.h index be0f90a..7be

[PATCH 04/19] staging: ft1000: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignment Signed-off-by: Joe Perches --- drivers/staging/ft1000/ft1000-pcmcia/ft1000.h | 19 +-- drivers/staging/ft1000/ft1000-usb/ft1000_usb.h | 4 ++-- 2 files changed, 11 insertions(+), 12 delet

[PATCH 08/19] staging: mt29f_spinand: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/mt29f_spinand/mt29f_spinand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.h b/drivers/staging/mt29f_spinand/mt29f_spina

[PATCH 17/19] staging: speakup: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/speakup/i18n.h| 12 +++ drivers/staging/speakup/speakup.h | 68 +++ 2 files changed, 39 insertions(+), 41 deletio

[PATCH 12/19] staging: olpc_dcon: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/olpc_dcon/olpc_dcon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/olpc_dcon/olpc_dcon.h b/drivers/staging/olpc_dcon/olpc_dcon.h index aec9895..d06e19d

[PATCH 15/19] staging: rtl8192u: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 345 + drivers/staging/rtl8192u/r8190_rtl8256.h | 11 +- drivers/staging/rtl8192u/r8192U.h

[PATCH 01/19] staging: android: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/android/sync.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/android/sync.h b/drivers/staging/android/sync.h index a21b79f..61f8a3a 100644 ---

[PATCH 09/19] staging: netlogic: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/netlogic/xlr_net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/netlogic/xlr_net.h b/drivers/staging/netlogic/xlr_net.h index 13e03f0..2f65ec5 100644 --

[PATCH 00/19] staging: Remove unnecessary externs

2015-08-10 Thread Joe Perches
trivial neatening of prototypes Joe Perches (19): staging: android: Remove unnecessary externs staging: dgnc: Remove unnecessary externs staging: fbtft: Remove unnecessary externs staging: ft1000: Remove unnecessary externs staging: iio: Remove unnecessary externs staging: lustre: Remo

[PATCH 07/19] staging: most: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/most/hdm-dim2/dim2_hal.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/most/hdm-dim2/dim2_hal.h b/drivers/staging/most/hdm-dim2/dim2_hal.h index

[PATCH 05/19] staging: iio: Remove unnecessary externs

2015-08-10 Thread Joe Perches
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches --- drivers/staging/iio/meter/ade7854.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/meter/ade7854.h b/drivers/staging/iio/meter/ade7854.h index 52ca541..52f4195 10

[PATCH 5/5] staging: comedi: comedi_fops: remove remaining BUG_ON() checks

2015-08-10 Thread H Hartley Sweeten
The BUG_ON() checks in comedi_subdevice_from_minor() and comedi_dev_get_from_subdevice_minor() are not necessary. The 'minor' numbers for a given comedi driver are setup by comedi_dev_get_from_subdevice_minor() and will always be in the correct range. Drivers should not crash the kernel, remove t

[PATCH 2/5] staging: comedi: comedi_fops: remove BUG_ON() in comedi_dev_get_from_board_minor()

2015-08-10 Thread H Hartley Sweeten
This function is only called by comedi_dev_get_from_minor() and the 'minor' value will always be < COMEDI_NUM_BOARD_MINORS. Remove the unnecessary BUG_ON(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_fops.c | 1 - 1 file changed, 1

[PATCH 3/5] staging: comedi: comedi_fops: remove BUG_ON() in comedi_free_subdevice_minor()

2015-08-10 Thread H Hartley Sweeten
Drivers should not crash the kernel. This function is only called by comedi_device_detach_cleanup() and the s->minor will always be valid or the device wouldn't have attached in the first place. Leave the checks for safety in accessing the comedi_subdevice_minor_table array but remove the BUG_ON(

[PATCH 1/5] staging: comedi: comedi_fops: absorb comedi_free_board_minor()

2015-08-10 Thread H Hartley Sweeten
This function is only called by comedi_cleanup_board_minors() and the 'minor' parameter will always be < COMEDI_NUM_BOARD_MINORS. For aesthetics, absorb the function and remove the unnecessary BUG_ON(). Split the comedi_clear_board_minor() out to clarify that the return value is a comedi_device p

[PATCH 4/5] staging: comedi: comedi_fops: remove BUG_ON() in comedi_cleanup()

2015-08-10 Thread H Hartley Sweeten
The BUG_ON() checks in this function are not necessary. comedi_cleanup_board_minors() clears all the entries in the comedi_board_minor_table array and will call comedi_device_cleanup() for all attached devices. comedi_device_cleanup() will then clear the entries in the comedi_subdevice_minor_table

[PATCH 0/5] staging: comedi: comedi_fops: remove BUG_ON() checkes

2015-08-10 Thread H Hartley Sweeten
Drivers should not crash the kernel. H Hartley Sweeten (5): staging: comedi: comedi_fops: absorb comedi_free_board_minor() staging: comedi: comedi_fops: remove BUG_ON() in comedi_dev_get_from_board_minor() staging: comedi: comedi_fops: remove BUG_ON() in comedi_free_subdevice_minor() stag

Re: [PATCH] staging: wilc100: Remove pointer and integer comparision

2015-08-10 Thread Dan Carpenter
Warnings are not a bad thing they are a valuable marker to let us know which code is broken. If we just silence the warning in the laziest possible way then we are throwing away valuable information. It's better to leave the warning there so that the next person can fix it properly. If you want

RE: [PATCH 03/14] staging: comedi: addi_apci_1564: define the APCI1564_DO_INT_CTRL_REG bits

2015-08-10 Thread Hartley Sweeten
On Friday, August 07, 2015 10:34 PM, Sudip Mukherjee wrote: > On Fri, Aug 07, 2015 at 11:45:03AM -0700, H Hartley Sweeten wrote: >> Define the bits in this register. Remove the old defines in hwdrv_apci1564.c. >> >> Signed-off-by: H Hartley Sweeten >> Cc: Ian Abbott >> Cc: Greg Kroah-Hartman >>

Re: [PATCH] staging: wilc100: Remove pointer and integer comparision

2015-08-10 Thread Chandra Gorentla
On Mon, Aug 10, 2015 at 07:27:13PM +0300, Dan Carpenter wrote: > On Mon, Aug 10, 2015 at 08:59:43PM +0530, Chandra Gorentla wrote: > > I agree with your suggestion > > that we need to take a broader look. Please help in understanding > > how does that broader look is suggesting that the patch is n

[PATCH] staging: comedi: ni_usb6501: fix possible out-of-bounds access

2015-08-10 Thread H Hartley Sweeten
Coverity reports a possible Out-of-bounds access (ARRAY_VS_SINGLETON) with the 'const u8 *port' parameter passed to ni6501_port_command(). This param is an actual array for the SET_PORT_DIR operation, called by ni6501_dio_insn_config(). But for the WRITE_PORT and READ_PORT operations, called by ni6

Re: [PATCH] staging: wilc100: Remove pointer and integer comparision

2015-08-10 Thread Dan Carpenter
On Mon, Aug 10, 2015 at 08:59:43PM +0530, Chandra Gorentla wrote: > I agree with your suggestion > that we need to take a broader look. Please help in understanding > how does that broader look is suggesting that the patch is not > addressing a right problem. The gcc version I am using is - 4.8.2

Re: [PATCH 1/2] ozwpan: The maintainers are MIA, so orphan

2015-08-10 Thread Greg KH
On Mon, Aug 10, 2015 at 03:47:19PM +0200, Jason A. Donenfeld wrote: > Ozwpan is completely unmaintained and potentially a security problem. As > this is a staging driver, it should be removed, since it has been > abandoned. Marking it as orphaned is the first step here. > > Signed-off-by: Jason A.

Re: [PATCH] staging: wilc100: Remove pointer and integer comparision

2015-08-10 Thread Chandra Gorentla
On Mon, Aug 10, 2015 at 12:39:43PM +0300, Dan Carpenter wrote: > On Sun, Aug 09, 2015 at 08:50:02PM +0530, Chandra S Gorentla wrote: > > Removed pointer check with integer; this fixes 'sparse' error - > > error: incompatible types for operation (>) > >left side has type unsigned char [usertype]

[PATCH] staging: lustre: lustre: llite: Added a new line after declaration

2015-08-10 Thread Aparna Karuthodi
Added a new line to fix a coding style error no space after declaration detected by checkpatch. Signed-off-by: Aparna Karuthodi --- drivers/staging/lustre/lustre/llite/llite_capa.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/lustre/lustre/llite/llite_capa.c b/drivers/

[PATCH V2 4/4] staging: lustre: checkpatch: argument alignment for readability

2015-08-10 Thread Swee Hua Law
Fix checkpatch problem: move last argument of the hlist..() back to same line Signed-off-by: Swee Hua Law --- drivers/staging/lustre/lustre/llite/remote_perm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/remote_perm.c b/drivers/s

[PATCH V2 3/4] staging: lustre: checkpatch: move */ block comment to next line

2015-08-10 Thread Swee Hua Law
Fix checkpatch problem: move */ from end of line to new line Signed-off-by: Swee Hua Law --- drivers/staging/lustre/lustre/llite/remote_perm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/llite/remote_perm.c b/drivers/staging/lustre/lustre/

[PATCH V2 2/4] staging: lustre: checkpatch: symbol == NULL should be !symbol

2015-08-10 Thread Swee Hua Law
Fix checkpatch problem: change == NULL comparison to !symbol Signed-off-by: Swee Hua Law --- drivers/staging/lustre/lustre/llite/remote_perm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/remote_perm.c b/drivers/staging/lustre/lustr

[PATCH V2 1/4] staging: lustre: checkpatch: do not init global to NULL

2015-08-10 Thread Swee Hua Law
Fix checkpatch problem: remove NULL assignment fro global variable Signed-off-by: Swee Hua Law --- drivers/staging/lustre/lustre/llite/remote_perm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/remote_perm.c b/drivers/staging/lustr

[PATCH V2 0/4] staging: lustre: split checkpatch fix for remote_perm.c into series

2015-08-10 Thread Swee Hua Law
Split patch into series. Fix various coding style issue in remote_perm.c: [PATCH V2 1/4] staging: lustre: checkpatch: do not init global to NULL [PATCH V2 2/4] staging: lustre: checkpatch: symbol == NULL should be !symbol [PATCH V2 3/4] staging: lustre: checkpatch: move */ block comment to next li

[PATCH 1/2] ozwpan: The maintainers are MIA, so orphan

2015-08-10 Thread Jason A. Donenfeld
Ozwpan is completely unmaintained and potentially a security problem. As this is a staging driver, it should be removed, since it has been abandoned. Marking it as orphaned is the first step here. Signed-off-by: Jason A. Donenfeld --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: Ozwpan Driver: Removal Recommended

2015-08-10 Thread Jason A. Donenfeld
On Mon, Aug 10, 2015 at 3:31 PM, Jason A. Donenfeld wrote: > Meanwhile Dan > Carpenter has posted a patch for a security vulnerability in ozwpan > that hasn't been reviewed or merged. Sorry, I see that you did in fact pick up this patch, so I retract that statement. Nonetheless, the remainder of

Ozwpan Driver: Removal Recommended

2015-08-10 Thread Jason A. Donenfeld
Hi Greg, We spoke about this several months ago. Since then, there has been no life from any of the maintainers or anybody at Atmel. Meanwhile Dan Carpenter has posted a patch for a security vulnerability in ozwpan that hasn't been reviewed or merged. There is nobody willing to maintain it. And no

Re: [PATCH 1/1] X86: mshyperv.c: Fix a compilation issue.

2015-08-10 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Greg KH [mailto:gre...@linuxfoundation.org] >> Sent: Thursday, August 6, 2015 2:11 PM >> To: KY Srinivasan >> Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; >> vkuzn...@redhat.com; s...@canb.auug.org.au; t...@linutroni

Re: [PATCH 5/5] staging: wilc1000: use id value as argument

2015-08-10 Thread Dan Carpenter
On Mon, Aug 10, 2015 at 02:58:24PM +0900, Tony Cho wrote: > +static u32 add_handler_in_list(tstrWILC_WFIDrv *handler) I am suspicous of code which uses u32 for something where the hardware doesn't specify unsigned 32 bits. Why not just return "int"? > +{ > + u32 id; It looks like we have a

Re: [PATCH] staging/lustre: add annotations for user space pointers

2015-08-10 Thread Dan Carpenter
On Sat, Aug 08, 2015 at 02:31:40PM -0700, Greg KH wrote: > > int libcfs_register_ioctl(struct libcfs_ioctl_handler *hand); > > int libcfs_deregister_ioctl(struct libcfs_ioctl_handler *hand); > > -int libcfs_ioctl_getdata(char *buf, char *end, void *arg); > > -int libcfs_ioctl_popdata(void *arg, v

Re: [PATCH] Staging: dgnc: Fixed line over 80 characters in dgnc_mgmt.c

2015-08-10 Thread Dan Carpenter
On Sun, Aug 09, 2015 at 06:15:36PM +0530, Bhaktipriya Shridhar wrote: > Fixed coding style issue "warning line over 80 characters" > detected by checkpatch.pl in dgnc_mgmt.c No signed off by. > --- > drivers/staging/dgnc/dgnc_mgmt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >

Re: [PATCH] staging: wilc100: Remove pointer and integer comparision

2015-08-10 Thread Dan Carpenter
On Sun, Aug 09, 2015 at 08:50:02PM +0530, Chandra S Gorentla wrote: > Removed pointer check with integer; this fixes 'sparse' error - > error: incompatible types for operation (>) >left side has type unsigned char [usertype] *[usertype] pu8Tail >right side has type int > > Signed-off-by: C

Re: [PATCH 00/14] staging: comedi: hwdrv_apci1564: tidy up code

2015-08-10 Thread Ian Abbott
On 07/08/15 19:45, H Hartley Sweeten wrote: The hwdrv_apci1564.c file is included by the addi_apci_1564 driver to provide the support code for the timer and counter subdevices. The code in this file is broken with respect to how comedi works with subdevices. Tidy it up so that it can be fixed.

[PATCH v3 2/2] staging: lustre-libcfs: make static-variable constant

2015-08-10 Thread Patrick Boettcher
This static can be made constant as it is never modified. Found during sparse-cleanup. Signed-off-by: Patrick Boettcher --- drivers/staging/lustre/lustre/libcfs/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/driv

[PATCH v3 1/2] staging: lustre-libcfs: fix sparse warning

2015-08-10 Thread Patrick Boettcher
Fix sparse warnings of the following type: warning: symbol '' was not declared. Should it be static? Signed-off-by: Patrick Boettcher --- drivers/staging/lustre/include/linux/libcfs/libcfs.h | 13 + drivers/staging/lustre/lustre/libcfs/linux/linux-module.c | 2 -- drivers/

Re: [PATCH 5/5] staging: wilc1000: use id value as argument

2015-08-10 Thread Johnny Kim
Hello Julian. On 2015년 08월 10일 15:47, Julian Calaby wrote: Hi Tony and Johnny, On Mon, Aug 10, 2015 at 3:58 PM, Tony Cho wrote: From: Johnny Kim The driver communicates with the chipset via the address of handlers to distinguish async data frame. The SendConfigPkt function gets the pointer