[PATCH v2] staging: comedi: rewrite macro function with GNU extension typeof

2019-11-04 Thread Jules Irenge
Rewrite macro function with the GNU extension typeof to remove a possible side-effects of MACRO argument reuse "x". - Problem could rise if arguments have different types and different use though. Signed-off-by: Jules Irenge --- v1 - had no full commit log message, with changes no

[PATCH] staging: rts5208: rewrite macro with GNU extension __auto_type

2019-11-04 Thread Jules Irenge
Rewrite macro function with GNU extension __auto_type to remove issue detected by checkpatch tool. CHECK: MACRO argument reuse - possible side-effects? Signed-off-by: Jules Irenge --- drivers/staging/rts5208/rtsx_chip.h | 92 + 1 file changed, 55 insertions(+), 37

[PATCH] staging: wfx: add gcc extension __force cast

2019-11-08 Thread Jules Irenge
Add gcc extension __force and __le32 cast to fix warning issued by Sparse tool."warning: cast to restricted __le32" Signed-off-by: Jules Irenge --- drivers/staging/wfx/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/debug.c b/drivers/s

Re: [PATCH] staging: wfx: add gcc extension __force cast

2019-11-11 Thread Jules Irenge
On Sat, 9 Nov 2019, Al Viro wrote: > On Fri, Nov 08, 2019 at 11:38:37PM +0000, Jules Irenge wrote: > > Add gcc extension __force and __le32 cast to fix warning issued by Sparse > > tool."warning: cast to restricted __le32" > > > > Signed-off-by: Jules Ire

[PATCH v2 2/3] staging: wfx: wrap characters

2019-11-11 Thread Jules Irenge
Wrap characters to fix line of over 80 characters. Issue detected by Checkpatch tool Signed-off-by: Jules Irenge --- v2 includes more of this type of errors drivers/staging/wfx/bus_sdio.c | 4 +- drivers/staging/wfx/data_rx.c| 6 +- drivers/staging/wfx/data_rx.h| 3 +- drivers

[PATCH v2 3/3] staging: wfx: replace u32 by __le32

2019-11-11 Thread Jules Irenge
Replace u32 by __le32 to fix warning of cast from restricted __le32. Issue detected by sparse tool. Signed-off-by: Jules Irenge --- v1 uses casting to fix the warnings v2 replace the declaration type of the variables drivers/staging/wfx/hif_api_mib.h | 48 +++ 1

[PATCH v2 1/3] staging: wfx: replace uintXX_t to uXX and intXX_t to sXX

2019-11-11 Thread Jules Irenge
Replace uint8_t to u8, uint16_t to u16, uint32_t to u32 int8_t to s8,int16_t to s16 and int32_t to s32 As per recommendation of checkpatch tool. Signed-off-by: Jules Irenge --- Changes v1 had a spacing error v2 fixes the error and includes all the changes related to this patch in the driver

[PATCH] staging: align to fix warnings of line over 80 characters

2019-11-13 Thread Jules Irenge
Align to fix multiple warnings of line over 80 characters. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/wfx/bus_sdio.c | 4 +- drivers/staging/wfx/data_rx.h| 3 +- drivers/staging/wfx/debug.c | 15 ++-- drivers/staging/wfx/fwio.c | 65

Re: [PATCH v2] staging: comedi: rewrite macro function with GNU extension typeof

2019-11-05 Thread Jules Irenge
On Mon, 4 Nov 2019, Greg KH wrote: > On Mon, Nov 04, 2019 at 04:33:31PM +0000, Jules Irenge wrote: > > Rewrite macro function with the GNU extension typeof > > to remove a possible side-effects of MACRO argument reuse "x". > > - Problem could rise if

Re: [PATCH v2] staging: comedi: rewrite macro function with GNU extension typeof

2019-11-05 Thread Jules Irenge
On Mon, 4 Nov 2019, Ian Abbott wrote: > On 04/11/2019 16:33, Jules Irenge wrote: > > Rewrite macro function with the GNU extension typeof > > to remove a possible side-effects of MACRO argument reuse "x". > > - Problem could rise if arguments have different typ

Re: [PATCH] staging: rts5208: rewrite macro with GNU extension __auto_type

2019-11-05 Thread Jules Irenge
On Mon, 4 Nov 2019, Greg KH wrote: > On Mon, Nov 04, 2019 at 04:44:00PM +0000, Jules Irenge wrote: > > Rewrite macro function with GNU extension __auto_type > > to remove issue detected by checkpatch tool. > > CHECK: MACRO argument reuse - possible side-effects? > >

Re: [Outreachy kernel] [PATCH] staging: vc04_services: fix line over 80 characters checks warning

2019-10-16 Thread Jules Irenge
On Wed, 16 Oct 2019, Julia Lawall wrote: > > #ifndef VCHI_BULK_GRANULARITY > > # if __VCCOREVER__ >= 0x0400 > > -# define VCHI_BULK_GRANULARITY 32 // Allows for the need to do cache > > cleans > > +# define VCHI_BULK_GRANULARITY 32 // Allows for the need of cache cleans > > #

[PATCH] staging: wfx: remove unnecessary void pointer

2019-10-21 Thread Jules Irenge
Remove unnecessary void pointers. Issue detected and solved by coccinelle tool. semantic use @@expression e ;@@ -(void*)(e) +e Signed-off-by: Jules Irenge --- drivers/staging/wfx/bh.c | 2 +- drivers/staging/wfx/bus_sdio.c | 2 +- drivers/staging/wfx/bus_spi.c | 2 +- drivers/staging/wfx

[PATCH] staging: wfx: remove unnecessary void pointer

2019-10-21 Thread Jules Irenge
Remove unnecessary void pointers. Issue detected and solved by coccinelle tool. semantic use @@expression e ;@@ -(void*)(e) +e Signed-off-by: Jules Irenge --- drivers/staging/wfx/bh.c | 2 +- drivers/staging/wfx/bus_sdio.c | 2 +- drivers/staging/wfx/bus_spi.c | 2 +- drivers/staging/wfx

Re: [PATCH] staging: wfx: remove unnecessary void pointer

2019-10-21 Thread Jules Irenge
On Mon, 21 Oct 2019, Jerome Pouiller wrote: > On Monday 21 October 2019 14:24:49 CEST Jules Irenge wrote: > > Remove unnecessary void pointers. > > Issue detected and solved by coccinelle tool. > > semantic use > > @@expression e ;@@ > > -(void*)(e) > >

[PATCH] staging: meson: add space to fix check warning

2019-10-15 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" check. Issue detected by checkpatch tool Signed-off-by: Jules Irenge --- drivers/staging/media/meson/vdec/codec_mpeg12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/meson/vdec/codec_mpeg12.c

[PATCH] staging: vc04_services: add space to fix check warning

2019-10-15 Thread Jules Irenge
Add space betwen operator to fix check warning. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/vc04_services/interface/vchi/vchi_cfg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi

[PATCH] staging: vc04_services: fix line over 80 characters checks warning

2019-10-15 Thread Jules Irenge
Fix line over 80 characters checks warning. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- .../vc04_services/interface/vchi/vchi_cfg.h | 150 ++ 1 file changed, 88 insertions(+), 62 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi

[PATCH v1 2/5] staging: wfx: fix warning of line over 80 characters

2019-10-19 Thread Jules Irenge
Fix warning of lines over 80 characters. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/wfx/bh.c | 17 -- drivers/staging/wfx/bus.h | 6 +- drivers/staging/wfx/bus_sdio.c | 3 +- drivers/staging/wfx/bus_spi.c | 9 ++- drivers/staging

[PATCH v1 1/5] staging: wfx: fix warnings of no space is necessary

2019-10-19 Thread Jules Irenge
Fix warnings of no space is necessary after a cast. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/wfx/bh.c | 8 drivers/staging/wfx/bus_sdio.c | 6 +++--- drivers/staging/wfx/bus_spi.c | 2 +- drivers/staging/wfx/data_rx.c | 8

[PATCH v1 4/5] staging: wfx: correct misspelled words

2019-10-19 Thread Jules Irenge
Correct misspelled words: retrieved and auxiliary. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/wfx/data_tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index

[PATCH v1 0/5] staging: wfx: fix checkpatch warnings

2019-10-19 Thread Jules Irenge
Fix checkpatch warnings. Jules Irenge (5): staging: wfx: fix warnings of no space is necessary staging: wfx: fix warning of line over 80 characters staging: wfx: fix warnings of logical continuation staging: wfx: correct misspelled words staging: wfx: fix warnings of alignment should

[PATCH v1 5/5] staging: wfx: fix warnings of alignment should match open parenthesis

2019-10-19 Thread Jules Irenge
: Fix warnings of alignment should match open parenthesis. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/wfx/data_rx.c | 2 +- drivers/staging/wfx/data_tx.c | 2 +- drivers/staging/wfx/debug.c | 14 -- 3 files changed, 10 insertions(+), 8

[PATCH v1 3/5] staging: wfx: fix warnings of logical continuation

2019-10-19 Thread Jules Irenge
Fix check warnings of logical continuations should be on the previous line. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/wfx/data_rx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wfx/data_rx.c b/drivers

Re: [PATCH v1 1/5] staging: wfx: fix warnings of no space is necessary

2019-10-19 Thread Jules Irenge
On Sat, 19 Oct 2019, Dan Carpenter wrote: > On Sat, Oct 19, 2019 at 03:07:15PM +0100, Jules Irenge wrote: > > diff --git a/drivers/staging/wfx/bh.c b/drivers/staging/wfx/bh.c > > index 3355183fc86c..573216b08042 100644 > > --- a/drivers/staging/wfx/bh.c > > +++

[PATCH] staging: rtl8712: Add comment to lock declaration

2019-10-07 Thread Jules Irenge
Add comment to spinlock declaration to fix warning issued by checkpatch.pl "CHECK: spinlock_t definition without comment". Signed-off-by: Jules Irenge --- drivers/staging/rtl8712/drv_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/d

Re: [Outreachy kernel] [PATCH] staging: rtl8712: Add comment to lock declaration

2019-10-09 Thread Jules Irenge
On Mon, 7 Oct 2019, Julia Lawall wrote: On Mon, 7 Oct 2019, Jules Irenge wrote: Add comment to spinlock declaration to fix warning issued by checkpatch.pl "CHECK: spinlock_t definition without comment". Since it is not apparent from the shown code, it would be helpful to des

[PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Jules Irenge
Correct misspelled word " check issued by checkpatch.pl tool: "CHECK: serveral may be misspelled - perhaps several?". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_

[PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Jules Irenge
Correct misspelled word " check issued by checkpatch.pl tool: "CHECK: serveral may be misspelled - perhaps several?". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_

[PATCH] staging: qlge: fix "alignment should match open parenthesis" checks

2019-10-09 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" checks issued by checkpatch.pl tool: "CHECK: Alignment should match open parenthesis". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 127 1 file changed, 64 insertions(+), 6

[PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Jules Irenge
Fix multiple assignments warning " check issued by checkpatch.pl tool: "CHECK: multiple assignments should be avoided". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ql

[PATCH] staging: qlge: fix "alignment should match open parenthesis" checks

2019-10-09 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" checks issued by checkpatch.pl tool: "CHECK: Alignment should match open parenthesis". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 127 1 file changed, 64 insertions(+), 6

[PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Jules Irenge
Fix multiple assignments warning " check issued by checkpatch.pl tool: "CHECK: multiple assignments should be avoided". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ql

[PATCH v2] staging: qlge: correct a misspelled word

2019-10-09 Thread Jules Irenge
Fix a misspelling of "several" detected by checkpatch Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c index 5599525a19d5..28fc974ce

[PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Jules Irenge
Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging

[PATCH] staging: comedi: Fix camelcase check warning

2019-10-06 Thread Jules Irenge
Capitalize unit_ma to fix camelcase check warning. Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedi.h| 4 ++-- drivers/staging/comedi/comedidev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi

[PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Jules Irenge
Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging

[PATCH] staging: comedi: Capitalize macro name to fix camelcase checkpatch warning

2019-10-06 Thread Jules Irenge
Capitalize RANGE_mA to fix camelcase check warning. Issue reported by checkpatch.pl Signed-off-by: Jules Irenge --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers/adv_pci1724.c | 4 ++-- drivers/staging/comedi/drivers/dac02.c | 2 +- drivers/staging

[PATCH] staging: vc04_services: fix warning of Logical continuations should be on the previous line

2019-10-11 Thread Jules Irenge
Fix warning of logical continuations should be on the previous line. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- .../bcm2835-camera/bcm2835-camera.c | 41 --- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/drivers/staging

[PATCH] staging: vc04_services: fix warnings of lines should not end with open parenthesis

2019-10-11 Thread Jules Irenge
Fix warning of lines should not end with open parenthesis. Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- .../bcm2835-camera/bcm2835-camera.c | 38 --- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/staging/vc04_services

Re: [Outreachy kernel] [PATCH] staging: vc04_services: fix warning of Logical continuations should be on the previous line

2019-10-12 Thread Jules Irenge
On Fri, 11 Oct 2019, Julia Lawall wrote: On Fri, 11 Oct 2019, Jules Irenge wrote: Fix warning of logical continuations should be on the previous line. Issue detected by checkpatch tool. There seem to be several changes mixed together in this patch. Don't have a subject line

[PATCH v2] staging: vc04_services: place the AND operator at the end of the previous line

2019-10-12 Thread Jules Irenge
Place the AND logical operator at the end of the previous line; to fix warning of "Logical continuations should be on the previous line". Issue detected by checkpatch tool. Signed-off-by: Jules Irenge --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 4 ++-- 1 file

[PATCH 1/2] staging: vc04_services: fix lines ending with open parenthesis

2019-10-13 Thread Jules Irenge
vchiq_mmal_component_enable to vm_cmpnt_enable Signed-off-by: Jules Irenge --- .../bcm2835-camera/bcm2835-camera.c | 191 -- 1 file changed, 89 insertions(+), 102 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging

Re: [Outreachy kernel] [PATCH 1/2] staging: vc04_services: fix lines ending with open parenthesis

2019-10-13 Thread Jules Irenge
On Sun, 13 Oct 2019, Julia Lawall wrote: > > > On Sun, 13 Oct 2019, Jules Irenge wrote: > > > Fix lines ending with open parenthesis. Issue detected by checkpatch tool. > > In the process, change driver functions name in the multiple files from: > >

[PATCH 2/2] staging: vc04_services: fix lines ending with open parenthesis

2019-10-13 Thread Jules Irenge
Fix lines ending with open parenthesis. Issue detected by checkpatch tool. Within "controls.c", "mmal-vchiq.c" and" mmal-vchiq.h" files. Signed-off-by: Jules Irenge --- .../vc04_services/bcm2835-camera/controls.c | 208 +- .../vc04_services/bcm