[PATCH] staging: typec: Fix sparse warnings about incorrect types

2017-05-09 Thread Guru Das Srinagesh
Fix the following sparse warnings about incorrect type usage: tcpci.c:290:38: warning: incorrect type in argument 1 (different base types) tcpci.c:290:38:expected unsigned short [unsigned] [usertype] header tcpci.c:290:38:got restricted __le16 const [usertype] header tcpci.c:295:16: warnin

You have been nominated for the £2 million charity support

2017-05-09 Thread Barrister Bobby Smith
You have been nominated for the charity program to support Prince Alwaleed Bin Tala, please contact: http://bit.do/23awsa for more information. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___

You have been nominated for the £2 million charity support

2017-05-09 Thread Barrister Bobby Smith
You have been nominated for the charity program to support Prince Alwaleed Bin Tala, please contact: http://bit.do/23awsa for more information. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___

[PATCH] Staging: rtl8192u - changed include of asm/io.h

2017-05-09 Thread Derek Robson
Changed include of to be Complies, but I don't have hardware. Found using checkpatch. Signed-off-by: Derek Robson --- drivers/staging/rtl8192u/r8192U.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h ind

[PATCH] staging: android: ion: Resolve minor indentation issue.

2017-05-09 Thread Matthew Giassa
Resolving a minor checkpatch/indentation issue in ion_carveout_heap.c, ie: drivers/staging/android/ion/ion_carveout_heap.c --- CHECK: Alignment should match open parenthesis +static phys_addr_t ion_carveout_allocate(struct ion_heap *heap, +

[PATCH] staging: rtl8188eu: Fix one coding style problem

2017-05-09 Thread Remco Verhoef
Fix code indent should use tabs where possible coding style error. Signed-off-by: Remco Verhoef --- drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c b/drivers/staging/rtl8188eu/hal

[PATCH v2 0/3] coding style warnings fixes

2017-05-09 Thread Harinath Nampally
This revised patchset is for improvement in [PATCH v2 1/3] as per the code review comment from Dan Carpenter. Other two patches [PATCH v2 2/3] and [PATCH v2 3/3] are unchanged, so they are same as [PATCH 2/3] and [PATCH 3/3] respectively. Please find the following related patches: [PATCH v2 1/3]

[PATCH v2 3/3] staging: iio: meter: Replace symbolic permissions with octal permissions.

2017-05-09 Thread Harinath Nampally
This patch fixes below kind of warnings: WARNING: Symbolic permissions 'S_IXXX | S_IXXX' are not preferred. Below errors are false positives: ade7753.c:382: ERROR: Use 4 digit octal (0777) not decimal permissions ade7753.c:386: ERROR: Use 4 digit octal (0777) not decimal permissions Signed-off-by

[PATCH v2 1/3] staging: iio: meter: Add the comment for mutex definition.

2017-05-09 Thread Harinath Nampally
This patch fixes below checkpatch.pl warning: CHECK: struct mutex definition without comment Signed-off-by: Harinath Nampally --- Changes in v2: - Removed the extra comment for mutex in the struct. drivers/staging/iio/meter/ade7753.c | 3 ++- 1 file changed, 1 insertions(+), 1 deletion

[PATCH v2 2/3] staging: iio: meter: Fix the identations for proper alignments.

2017-05-09 Thread Harinath Nampally
This patch fixes below checkpatch.pl kind of warnings: CHECK: Alignment should match open parenthesis Signed-off-by: Harinath Nampally --- Changes in v2: - None because only [PATCH v2 1/3] has improvement drivers/staging/iio/meter/ade7753.c | 55 ++--- 1 file ch

Re: [PATCH 1/7] staging: typec: tcpci: declare private structure as static

2017-05-09 Thread Guenter Roeck
On Tue, May 09, 2017 at 07:46:17PM +0200, Greg Kroah-Hartman wrote: > On Tue, May 09, 2017 at 09:04:53AM -0700, Guenter Roeck wrote: > > From: Olivier Leveque > > > > This fixes a sparse warning regarding an undeclared symbol. Since the > > structure tcpci_tcpc_config is private to tcpci.c, it sh

[PATCH] Update coding style to fit checkpatch.pl rules

2017-05-09 Thread Alexis Lothoré
Current HEAD did not pass the checkpatch script with --strict option, mainly because of Camel Case names and long lines. As an exception, I have left the defines nested in the "#if 0" in the header, since I am not sure it is a real issue and it will probably be reused in the future, but please let

[PATCH] Update coding style

2017-05-09 Thread Alexis Lothoré
Current HEAD for emxx_udc driver did not pass checkpatch script, mainly because of Camel Case naming and long lines. Signed-off-by: Alexis Lothoré --- drivers/staging/emxx_udc/emxx_udc.c | 394 ++-- drivers/staging/emxx_udc/emxx_udc.h | 170 2 fi

[PATCH] staging: ccree: remove trailing whitespace. switch spaces to tabs

2017-05-09 Thread Connor Kelleher
ssi_fips.c: fixing checkpatch.pl errors: ERROR: trailing whitespace + * $ ERROR: trailing whitespace + * $ ERROR: trailing whitespace + * $ ERROR: trailing whitespace +This function returns the REE FIPS state. $ ERROR: trailing whitespace +It should be called by kernel module. $ ERROR: code

Re: [PATCH 1/7] staging: typec: tcpci: declare private structure as static

2017-05-09 Thread Greg Kroah-Hartman
On Tue, May 09, 2017 at 09:04:53AM -0700, Guenter Roeck wrote: > From: Olivier Leveque > > This fixes a sparse warning regarding an undeclared symbol. Since the > structure tcpci_tcpc_config is private to tcpci.c, it should be declared as > static. > > Signed-off-by: Olivier Leveque > Signed-of

Re: [PATCH] staging: media: cxd2099: Use __func__ macro in messages

2017-05-09 Thread Jasmin J.
Hi Alexandre! The current cxd2099 driver is an old version. DD provides a newer variant. Please see my patch series http://www.mail-archive.com/linux-media@vger.kernel.org/msg112410.html Especially this patch http://www.mail-archive.com/linux-media@vger.kernel.org/msg112409.html where I remov

[PATCH] staging: ccree: ssi_aead.c: Fix blank lines coding style issue

2017-05-09 Thread Alex
Checkpatch emits CHECK: Please don't use multiple blank lines. Remove multiple blank lines. Signed-off-by: Alexander Mazyrin --- drivers/staging/ccree/ssi_aead.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 03829

[PATCH 6/7] staging: typec: tcpm: Respond to Discover Identity commands

2017-05-09 Thread Guenter Roeck
If the lower level driver provided a list of VDOs in its configuration data, send it to the partner as response to a Discover Identity command if in device mode (UFP). Cc: Yueyao Zhu Originally-from: Puma Hsu Signed-off-by: Guenter Roeck --- drivers/staging/typec/pd_vdo.h | 4 +++- drivers/st

[PATCH 5/7] staging: typec: tcpm: Set correct flags in PD request messages

2017-05-09 Thread Guenter Roeck
We do support USB PD communication, and devices supported by this driver typically use USB power for purposes other than USB communication. Originally-from: Puma Hsu Cc: Yueyao Zhu Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

[PATCH 4/7] staging: typec: tcpm: Drop duplicate PD messages

2017-05-09 Thread Guenter Roeck
Per USB PD standard, we have to drop duplicate PD messages. We can not expect lower protocol layers to drop such messages, since lower layers don't know if a message was dropped somewhere else in the stack. Originally-from: Puma Hsu Cc: Yueyao Zhu Signed-off-by: Guenter Roeck --- drivers/stagi

[PATCH 7/7] staging: typec: tcpm: Fix Port Power Role field in PS_RDY messages

2017-05-09 Thread Guenter Roeck
PS_RDY messages sent during power swap sequences are expected to reflect the new power role. Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpm.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/staging/typec/tcpm.c b/drivers/staging/typec/

[PATCH 2/7] staging: typec: fusb302: Fix module autoload

2017-05-09 Thread Guenter Roeck
From: Javier Martinez Canillas If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the OF and I2C device ID table entries as module aliases, using the MOD

[PATCH 3/7] staging: typec: fusb302: Fix chip->vbus_present init value

2017-05-09 Thread Guenter Roeck
From: Yueyao Zhu FUSB_REG_STATUS0 & FUSB_REG_STATUS0_VBUSOK = 0x40 & 0x80 is always zero. Fix the code to what it is intended to be: check the VBUSOK bit of the value read from address FUSB_REG_STATUS0. Reported-by: Dan Carpenter Cc: Guenter Roeck Signed-off-by: Yueyao Zhu Signed-off-by: Guen

Re: [PATCH] staging: typec: Make undeclared symbol static

2017-05-09 Thread Guenter Roeck
On Tue, May 09, 2017 at 01:48:53AM -0700, Guru Das Srinagesh wrote: > Fix sparse warning: > drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config' > was not declared. Should it be static? > > Signed-off-by: Guru Das Srinagesh Olivier Leveque already sent a similar patch la

[PATCH 1/7] staging: typec: tcpci: declare private structure as static

2017-05-09 Thread Guenter Roeck
From: Olivier Leveque This fixes a sparse warning regarding an undeclared symbol. Since the structure tcpci_tcpc_config is private to tcpci.c, it should be declared as static. Signed-off-by: Olivier Leveque Signed-off-by: Guenter Roeck --- drivers/staging/typec/tcpci.c | 2 +- 1 file changed,

Re: [PATCH 3/4] Staging: rtl8712: ieee80211: fixed camelcase coding style

2017-05-09 Thread Joe Perches
On Tue, 2017-05-09 at 01:03 +0530, Jaya Durga wrote: > Fixed coding style issue Do please strive to do more than shut up checkpatch messages. It's _far_ more important to use sensible coding mechanisms and reuse existing code utilities. > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.

Re: [PATCH 4/4] Staging: rtl8712: ieee80211:fixed warning line over 80 characters coding style issue

2017-05-09 Thread Joe Perches
On Tue, 2017-05-09 at 00:52 +0530, Jaya Durga wrote: > fixed warning line over 80 characters coding style issue > > Signed-off-by: Jaya Durga > --- > drivers/staging/rtl8712/ieee80211.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8712/ieee80211

[PATCH v2 1/2] staging: vt6656: Fix indentation style

2017-05-09 Thread Juan Manuel Torres Palma
Fix indentation to tabs instead of spaces. Signed-off-by: Juan Manuel Torres Palma --- drivers/staging/vt6656/rxtx.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index 1835cd

[PATCH v2 2/2] staging: vt6656: Break too long lines

2017-05-09 Thread Juan Manuel Torres Palma
Split long lines into several to match coding style. Signed-off-by: Juan Manuel Torres Palma --- drivers/staging/vt6656/rxtx.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index 7af27ea..3d70eb

Re: [PATCH] staging: vt6656: fix style

2017-05-09 Thread Greg KH
On Tue, May 09, 2017 at 09:45:43PM +0900, Juan Manuel Torres Palma wrote: > Cleanup all style warnings and errors in rxtx.c That's really vague... Please be very specific, and remember, you can only fix one "type of thing" per patch, and no, "all style warnings and errors" is not a single type of

[PATCH] staging: media: cxd2099: Use __func__ macro in messages

2017-05-09 Thread Alexandre Ghiti
Replace hardcoded function names in print info with __func__. Signed-off-by: Alexandre Ghiti --- drivers/staging/media/cxd2099/cxd2099.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c in

[PATCH] staging: vt6656: fix style

2017-05-09 Thread Juan Manuel Torres Palma
Cleanup all style warnings and errors in rxtx.c Signed-off-by: Juan Manuel Torres Palma --- drivers/staging/vt6656/rxtx.c | 50 +++ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.

[patch 0/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-09 Thread okash . khawaja
Hi, This patch applies on top of previous patchset which migrates synths to TTY [1]. It fixes couple of issues and tries to ensure hardware flow control is enabled. Thanks, Okash [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1387738.html _

[patch 1/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-09 Thread okash . khawaja
This patch fixes the issue where TTY-migrated synths would take a while to shut up after hitting numpad enter key. When calling synth_flush, even though XOFF character is sent as high priority, data buffered in TTY layer is still sent to the synth. This patch flushes that buffered data when synt

[PATCH] staging: wlan-ng: prism2mgmt.c: fixed a double endian conversion before calling hfa384x_drvr_setconfig16, also fixes relative sparse warning

2017-05-09 Thread Andrea della Porta
staging: wlan-ng: prism2mgmt.c: This patches fixes a double endian conversion. cpu_to_le16() was called twice first in prism2mgmt_scan and again inside hfa384x_drvr_setconfig16() for the same variable, hence it was swapped twice. Incidentally, it also fixed the following sparse warning: drivers/st

Re: [PATCH 2/2] staging: ccree: Fix initialization of anonymous unions

2017-05-09 Thread Gilad Ben-Yossef
Hi, On Sun, May 7, 2017 at 10:53 PM, Geert Uytterhoeven wrote: > With gcc 4.1.2: > > drivers/staging/ccree/ssi_hash.c:1990: error: unknown field > ‘template_ahash’ specified in initializer > drivers/staging/ccree/ssi_hash.c:1991: error: unknown field ‘init’ > specified in initializer >

[PATCH] staging: rtl8192u: Fix type mismatch warnings reported by sparse

2017-05-09 Thread suniel . spartan
From: Suniel Mahesh The function Mk16_le() is calling le16_to_cpu() internally. le16_to_cpu() takes an argument of type (__le *) but the argument passed is of type (u16 *). Fixed it by passing the correct argument type. Signed-off-by: Suniel Mahesh --- .../rtl8192u/ieee80211/ieee80211_crypt_tk

Re: [PATCH v4] staging: lustre: llite: Fix variable length array warning

2017-05-09 Thread Guru Das Srinagesh
On Tue, May 09, 2017 at 11:31:36AM +0300, Dan Carpenter wrote: > Just ignore the warning. > Thank you for your comments on this patch. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-

[PATCH] staging: typec: Make undeclared symbol static

2017-05-09 Thread Guru Das Srinagesh
Fix sparse warning: drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config' was not declared. Should it be static? Signed-off-by: Guru Das Srinagesh --- drivers/staging/typec/tcpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/typec/t

Re: [PATCH v4] staging: lustre: llite: Fix variable length array warning

2017-05-09 Thread Dan Carpenter
This patch introduces tons of memory leaks so we can't apply it. Just ignore the warning. The size is small enough that it won't overflow the stack. The other reason to avoid these types of declarations is that in olden times (5 years ago at least) there was a GCC for an arch where if you declar

Re: [PATCH] staging : rtl8188eu : remove unnecessary else

2017-05-09 Thread Dan Carpenter
On Mon, May 08, 2017 at 02:13:00PM +0530, Surender Polsani wrote: > according to coding style else is not generally > useful after a break or return > > Signed-off-by: Surender Polsani > --- > drivers/staging/rtl8188eu/hal/rtl8188e_dm.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >

Re: [PATCH 1/3] staging: iio: meter: Add the comment for mutex definition

2017-05-09 Thread Dan Carpenter
On Mon, May 08, 2017 at 10:00:37PM -0400, Harinath Nampally wrote: > This patch fixes below checkpatch.pl warning: > CHECK: struct mutex definition without comment > > Signed-off-by: Harinath Nampally > --- > drivers/staging/iio/meter/ade7753.c | 3 ++- > 1 file changed, 2 insertions(+), 1 delet