Hello,
This patches series fixes all the checkpatch.pl errors and warnings on
the file drivers/staging/rtl8192u/r8192U_core.c.
checkpatch.pl tail output before patches: (on staging-testing)
total: 334 errors, 402 warnings, 4909 lines checked
checkpath.pl output after patches:
Use #include linux/uaccess.h instead of asm/uaccess.h
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
Fix multiple occurences of the need consistent spacing code style error
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
b/drivers/staging/rtl8192u/r8192U_core.c
index 511e979..0048cff 100644
---
A missing struct keyword in variable declaration triggered a
need consistent spacing around '*' code style error.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Fix else should follow close brace code style error.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
Fix code indent should use tabs where possible code style error
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
A space existed before the close parenthesis of an if statement. This patch
removes it to follow the kernel code style.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
braces {} are not necessary for any arm of a statement containing
one statement on each side.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git
Macros with multiple statements should be enclosed in a do - while loop
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/wilc1000/wilc_exported_buf.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git
Globals should not be initialized to 0 or NULL.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/wilc1000/host_interface.c | 4 ++--
drivers/staging/wilc1000/wilc_wlan.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
Open braces should be on the same line as if and for statements.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/wilc1000/linux_wlan.c | 3 +--
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
Hello,
Please find in following emails code style patches for the driver
wilc1000 in staging.
Raphaël
Raphaël Beamonte (3):
staging: wilc1000: code style: fix macro with multiple statements
staging: wilc1000: code style: fix globals initialized to false
staging: wilc1000: code style: fix
This doesn't apply to my staging-next branch of staging-git :(
Please rebase and resend.
Seems it already has been fixed in your staging-git!
I switched to this git for future changes. (was using the linux.git)
Thanks!
Raphaël
___
devel mailing list
Replace C99 // comments by /* comments */ to follow the
kernel code style. Remove some unuseful comments.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 636 -
1 file changed, 316 insertions(+), 320
kfree(NULL) is safe and the checks were not required.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 44 +++---
1 file changed, 41 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
b/drivers/staging/rtl8192u/r8192U_core.c
index
Whitespaces are not necessary before a quoted newline.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
An else statement is not useful after a return.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 31 ++-
1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are
__aligned(2)
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c
b/drivers/staging/rtl8192u/r8192U_core.c
index 99d7f7c..25d31fe 100644
---
Light code refactoring to keep the lines under 80 characters to follow
the kernel code style.
Signed-off-by: Raphaël Beamonte raphael.beamo...@gmail.com
---
drivers/staging/rtl8192u/r8192U_core.c | 1248 ++--
lib/Kconfig.debug |2 +-
2 files
On Fri, 14 Aug 2015 18:50:24 -0700
Greg KH gre...@linuxfoundation.org wrote:
On Fri, Aug 14, 2015 at 12:57:06PM +0300, Ioan-Adrian Ratiu wrote:
Without including ptlrpc_internal.h, GCC gives prototype warnings
pack_generic.c:642:5: warning: no previous prototype for ...
It does? What
Hello!
On Aug 15, 2015, at 4:13 AM, Ioan-Adrian Ratiu wrote:
Without including ptlrpc_internal.h, GCC gives prototype warnings
pack_generic.c:642:5: warning: no previous prototype for ...
It does? What version of gcc give you that, I don't see that here.
Yes, but it's a non-default warning
This patch enables setting the module's debug options WARN and INFO in the
debugfs file 'wilc_debug_level'. This functionality allows the user to
enable logging of warnings and other information. Before this change,
writes to this debugfs file set only one option - DEBUG. Another option
that is
replace comparison obj to NULL with !obj
Signed-off-by: Trung Thanh Le trungthanh1...@yahoo.com
---
drivers/staging/android/sw_sync.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/android/sw_sync.c
b/drivers/staging/android/sw_sync.c
index
On Sat, Aug 15, 2015 at 11:13:39AM +0300, Ioan-Adrian Ratiu wrote:
On Fri, 14 Aug 2015 18:50:24 -0700
Greg KH gre...@linuxfoundation.org wrote:
On Fri, Aug 14, 2015 at 12:57:06PM +0300, Ioan-Adrian Ratiu wrote:
Without including ptlrpc_internal.h, GCC gives prototype warnings
On 12/08/15 16:21, Lars-Peter Clausen wrote:
On 08/12/2015 03:25 PM, sdliy...@gmail.com wrote:
From: Yong Li sdliy...@gmail.com
Load the driver using the below command:
echo hmc5983 0x1e /sys/bus/i2c/devices/i2c-?/new_device
In sysfs, the iio name is hmc5843, however the i2c name is
On 11/08/15 11:18, Cristina Opriceana wrote:
Fix alignment for function parameters as suggested by checkpatch.pl.
Signed-off-by: Cristina Opriceana cristina.oprice...@gmail.com
Whilst I find it a little hard to care about tidying up in these two drivers,
we haven't explicitly noted they are
On 11/08/15 19:43, Lars-Peter Clausen wrote:
On 08/10/2015 11:51 PM, Joe Perches wrote:
Using 'extern' is not necessary for function prototypes.
Signed-off-by: Joe Perches j...@perches.com
Acked-by: Lars-Peter Clausen l...@metafoo.de
Applied to the togreg branch of iio.git. 4.4 material
On 11/08/15 11:20, Cristina Opriceana wrote:
Fix style issue related to missing braces, detected by checkpatch.pl.
Signed-off-by: Cristina Opriceana cristina.oprice...@gmail.com
Applied to the togreg branch of iio.git.
This one used to be left as optional, so there are a lot of these in older
On 08/15/2015 09:57 PM, Jonathan Cameron wrote:
On 11/08/15 19:43, Lars-Peter Clausen wrote:
On 08/10/2015 11:51 PM, Joe Perches wrote:
Using 'extern' is not necessary for function prototypes.
Signed-off-by: Joe Perches j...@perches.com
Acked-by: Lars-Peter Clausen l...@metafoo.de
Applied
On 08/08/15 20:16, Dan Carpenter wrote:
num_read is in byte units but we are write u16s so we end up write
twice as much as intended.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
Hi Dan,
This is fine. Given it's an old bug, Greg is not going to take this
sort of fix until after the
On 15/08/15 21:05, Lars-Peter Clausen wrote:
On 08/15/2015 09:57 PM, Jonathan Cameron wrote:
On 11/08/15 19:43, Lars-Peter Clausen wrote:
On 08/10/2015 11:51 PM, Joe Perches wrote:
Using 'extern' is not necessary for function prototypes.
Signed-off-by: Joe Perches j...@perches.com
34 matches
Mail list logo