Re: [RFC PATCH 1/3] drm/debugfs: create debugfs files during drm_dev_register().

2020-05-13 Thread Wambui Karuga
On Wed, 13 May 2020, Thomas Zimmermann wrote: Hi Am 13.05.20 um 13:41 schrieb Wambui Karuga: Introduce the ability to track requests for the addition of drm debugfs files at any time and have them added all at once during drm_dev_register(). Drivers can add drm debugfs file requests

[RFC PATCH 0/3] drm: introduce new method of creating debugfs files.

2020-05-13 Thread Wambui Karuga
progress of this series. Thanks, wambui karuga Wambui Karuga (3): drm/debugfs: create debugfs files during drm_dev_register(). drm/vc4: use new debugfs functions for file creation. drm: use new debugfs functions for various files. drivers/gpu/drm/drm_atomic.c | 11 +++--- drivers/gpu

[RFC PATCH 2/3] drm/vc4: use new debugfs functions for file creation.

2020-05-13 Thread Wambui Karuga
ded at drm_dev_register() time on each minor. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/vc4/vc4_bo.c | 4 ++-- drivers/gpu/drm/vc4/vc4_debugfs.c | 38 +++ drivers/gpu/drm/vc4/vc4_hdmi.c| 4 ++-- drivers/gpu/drm/vc4/vc4_hvs.c | 4 ++-- drivers/gpu/drm/vc4/vc4_v3

[RFC PATCH 1/3] drm/debugfs: create debugfs files during drm_dev_register().

2020-05-13 Thread Wambui Karuga
by functions. Each drm_simple_info_entry is added to the new struct drm_device->debugfs_list for file requests. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/drm_debugfs.c | 59 --- drivers/gpu/drm/drm_drv.c | 2 ++ include/drm/drm_debugfs.h |

[RFC PATCH 3/3] drm: use new debugfs functions for various files.

2020-05-13 Thread Wambui Karuga
Replace the use of drm_debugfs_create_files with the new drm_debugfs_add_files() to create various drm core debugfs files. DRM debugfs files are also represented using the new drm_simple_info struct for use with the new functions. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/drm_atomic.c

Re: [Outreachy kernel] [PATCH v2 0/5] Remove typedef declarations in staging: octeon

2019-10-23 Thread Wambui Karuga
On Wed, Oct 23, 2019 at 08:43:04PM +0300, Aaro Koskinen wrote: > Hi, > > On Sat, Oct 12, 2019 at 08:35:19PM +0200, Julia Lawall wrote: > > On Sat, 12 Oct 2019, Wambui Karuga wrote: > > > This patchset removes the addition of new typedefs data types in octeon, &g

[PATCH] staging: rtl8723bs: remove casts to pointers in kfree

2019-10-15 Thread Wambui Karuga
Remove unnecessary casts in pointer types passed to kfree. Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c

[PATCH] staging: octeon: fix restricted __be16 degrades to integer

2019-10-15 Thread Wambui Karuga
Add cast to fix the following sparse warning: warning: restricted __be16 degrades to integer Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon

[PATCH v2] staging: rtl8723bs: use DIV_ROUND_UP helper macro

2019-10-13 Thread Wambui Karuga
Use the DIV_ROUND_UP macro to replace open-coded divisor calculation to improve readability. Issue found using coccinelle: @@ expression n,d; @@ ( - ((n + d - 1) / d) + DIV_ROUND_UP(n,d) | - ((n + (d - 1)) / d) + DIV_ROUND_UP(n,d) ) Signed-off-by: Wambui Karuga --- Changes in v2: - Remove

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: use DIV_ROUND_UP helper macro

2019-10-13 Thread Wambui Karuga
On Sun, Oct 13, 2019 at 08:06:14PM +0200, Julia Lawall wrote: > > > On Sun, 13 Oct 2019, Wambui Karuga wrote: > > > Use the DIV_ROUND_UP macro to replace open-coded divisor calculation > > to improve readability. > > Issue found using coccine

[PATCH] staging: vc04_services: use DIV_ROUND_UP helper macro

2019-10-13 Thread Wambui Karuga
Replace open-coded division calculation with the DIV_ROUND_UP helper macro for better readability. Issue found using coccinelle: @@ expression n,d; @@ ( - ((n + d - 1) / d) + DIV_ROUND_UP(n,d) | - ((n + (d - 1)) / d) + DIV_ROUND_UP(n,d) ) Signed-off-by: Wambui Karuga --- .../staging

[PATCH] staging: rtl8723bs: use DIV_ROUND_UP helper macro

2019-10-13 Thread Wambui Karuga
Use the DIV_ROUND_UP macro to replace open-coded divisor calculation to improve readability. Issue found using coccinelle: @@ expression n,d; @@ ( - ((n + d - 1) / d) + DIV_ROUND_UP(n,d) | - ((n + (d - 1)) / d) + DIV_ROUND_UP(n,d) ) Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/hal

Re: [Outreachy kernel] [PATCH v2 3/5] staging: octeon: remove typedef declaration for cvmx_fau_reg_32

2019-10-12 Thread Wambui Karuga
On Sat, Oct 12, 2019 at 08:37:18PM +0200, Julia Lawall wrote: > > > On Sat, 12 Oct 2019, Wambui Karuga wrote: > > > Remove typedef declaration for enum cvmx_fau_reg_32. > > Also replace its previous uses with new declaration format. > > Issue found by checkpatch.pl

[PATCH 0/2] Formatting and style cleanup in rtl8712

2019-10-12 Thread Wambui Karuga
This patch series addresses the use of unnecessary return variables and line-breaks in function headers, both in drivers/staging/rtl8712/rtl871x_mp_ioctl.c. Wambui Karuga (2): staging: rtl8712: remove unnecessary return variables staging: rtl8712: clean up function headers drivers/staging

[PATCH 1/2] staging: rtl8712: remove unnecessary return variables

2019-10-12 Thread Wambui Karuga
Remove variables that are only used to hold and return constants and have the functions directly return the constants. Issue found by coccinelle: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Wambui Karuga --- drivers/staging/rtl8712

[PATCH 2/2] staging: rtl8712: clean up function headers

2019-10-12 Thread Wambui Karuga
Remove unnecessary line-breaks in function headers to improve readability of function headers. Signed-off-by: Wambui Karuga --- drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 57 -- 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rtl8712

[PATCH v2 5/5] staging: octeon: remove typedef declaration for cvmx_fau_op_size

2019-10-12 Thread Wambui Karuga
Remove addition of new typedef for enum cvmx_fau_op_size. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/octeon-stubs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon

[PATCH v2 3/5] staging: octeon: remove typedef declaration for cvmx_fau_reg_32

2019-10-12 Thread Wambui Karuga
Remove typedef declaration for enum cvmx_fau_reg_32. Also replace its previous uses with new declaration format. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/octeon-stubs.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH v2 4/5] staging: octeon: remove typedef declartion for cvmx_pko_command_word0

2019-10-12 Thread Wambui Karuga
Removes addition of new typedef declaration for cvmx_pko_command_word0. Also replace previous instances with new union declaration. Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-tx.c | 2 +- drivers/staging/octeon/octeon-stubs.h | 6 +++--- 2 files changed, 4 insertions

[PATCH v2 0/5] Remove typedef declarations in staging: octeon

2019-10-12 Thread Wambui Karuga
This patchset removes the addition of new typedefs data types in octeon, along with replacing the previous uses with the new declaration format. v2 of the series removes the obsolete "_t" notation in the named types. Wambui Karuga (5): staging: octeon: remove typedef declaration fo

[PATCH v2 2/5] staging: octeon: remove typedef declaration for cvmx_helper_link_info

2019-10-12 Thread Wambui Karuga
Remove declaration of union cvmx_helper_link_info as typedef. Also replace its previous uses with new union declaration. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-mdio.c | 6 +++--- drivers/staging/octeon/ethernet-rgmii.c | 4

[PATCH v2 1/5] staging: octeon: remove typedef declaration for cvmx_wqe

2019-10-12 Thread Wambui Karuga
Remove typedef declaration from struct cvmx_wqe. Also replace its previous uses with new struct declaration. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-rx.c | 6 +++--- drivers/staging/octeon/ethernet-tx.c | 2 +- drivers/staging/octeon

Re: [PATCH] staging: isdn: remove assignment in if conditionals

2019-10-11 Thread Wambui Karuga
On Fri, Oct 11, 2019 at 02:00:20PM +0300, Dan Carpenter wrote: > This ISDN stuff is going to be deleted soon. Just leave it as is. > > regards, > dan carpenter > Noted, thanks wambui karuga

Re: [Outreachy kernel] Re: [PATCH v3 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-11 Thread Wambui Karuga
On Fri, Oct 11, 2019 at 02:08:47PM +0200, Greg KH wrote: > On Fri, Oct 11, 2019 at 02:07:17PM +0200, Greg KH wrote: > > On Fri, Oct 11, 2019 at 01:54:04PM +0300, Dan Carpenter wrote: > > > On Thu, Oct 10, 2019 at 04:15:29PM +0300, Wambui Karuga wrote: > > > >

Re: [PATCH 2/5] staging: octeon: remove typedef declaration for cvmx_helper_link_info_t

2019-10-11 Thread Wambui Karuga
On Fri, Oct 11, 2019 at 11:02:13AM +0200, Greg KH wrote: > On Fri, Oct 11, 2019 at 09:02:39AM +0300, Wambui Karuga wrote: > > -typedef union { > > +union cvmx_helper_link_info_t { > > I agree with Julia, all of the "_t" needs to be dropped as that is >

Re: [PATCH 0/5] Remove declarations of new typedef in

2019-10-11 Thread Wambui Karuga
On Fri, Oct 11, 2019 at 11:01:00AM +0200, Greg KH wrote: > On Fri, Oct 11, 2019 at 09:02:37AM +0300, Wambui Karuga wrote: > > This patchset removes various typedef declarations of new data types > > in drivers/staging/octeon/octeon-stubs.h. > > The series also changes their

Re: [Outreachy kernel] [PATCH 1/5] staging: octeon: remove typedef declaration for cvmx_wqe_t

2019-10-11 Thread Wambui Karuga
On Fri, Oct 11, 2019 at 08:18:25AM +0200, Julia Lawall wrote: > > > On Fri, 11 Oct 2019, Wambui Karuga wrote: > > > Remove typedef declaration from struct cvmx_wqe_t in > > You can remove the _t from the name as well. Should I remove the _t from all the enums/structs

[PATCH] staging: isdn: remove assignment in if conditionals

2019-10-11 Thread Wambui Karuga
-by: Wambui Karuga --- drivers/staging/isdn/avm/b1.c | 41 --- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/drivers/staging/isdn/avm/b1.c b/drivers/staging/isdn/avm/b1.c index 40ca1e8fa09f..32ec8cf31fd0 100644 --- a/drivers/staging/isdn/avm/b1.c

[PATCH 5/5] staging: octeon: remove typedef declaration for cvmx_fau_op_size_t

2019-10-11 Thread Wambui Karuga
Remove addition of new typedef for enum cvmx_fau_op_size_t in drivers/staging/octeon/octeon-stubs.h. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/octeon-stubs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/octeon

[PATCH 4/5] staging: octeon: remove typedef declartion for cvmx_pko_command_word0_t

2019-10-11 Thread Wambui Karuga
Removes addition of new typedef declaration for cvmx_pko_command_word0_t in drivers/staging/octeon/octeon-stubs.h. Also replace previous instances with new union declaration. Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-tx.c | 2 +- drivers/staging/octeon/octeon-stubs.h | 6

[PATCH 3/5] staging: octeon: remove typedef declaration for cvmx_fau_reg_32_t

2019-10-11 Thread Wambui Karuga
Remove typedef declaration for enum cvmx_fau_reg_32_t in drivers/staging/octeon/octeon-stubs.h. Also replace its previous uses with new declaration format. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/octeon-stubs.h | 14 -- 1 file changed, 8

[PATCH 1/5] staging: octeon: remove typedef declaration for cvmx_wqe_t

2019-10-11 Thread Wambui Karuga
Remove typedef declaration from struct cvmx_wqe_t in drivers/staging/octeon/octeon-stubs.h. Also replace its previous uses with new struct declaration. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-rx.c | 6 +++--- drivers/staging/octeon

[PATCH 2/5] staging: octeon: remove typedef declaration for cvmx_helper_link_info_t

2019-10-11 Thread Wambui Karuga
Remove declaration of union cvmx_helper_link_info_t as typedef in drivers/staging/octeon/octeon-stubs.h. Also replace its previous uses with new union declaration. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-mdio.c | 6 +++--- drivers/staging

[PATCH 0/5] Remove declarations of new typedef in

2019-10-11 Thread Wambui Karuga
This patchset removes various typedef declarations of new data types in drivers/staging/octeon/octeon-stubs.h. The series also changes their old uses with the new declaration format. Wambui Karuga (5): staging: octeon: remove typedef declaration for cvmx_wqe_t staging: octeon: remove typedef

[PATCH] rtl8723bs: Remove comparison to NULL

2019-10-10 Thread Wambui Karuga
Remove comparison to NULL in drivers/staging/rtl8723bs/core/rtw_ap.c:1449. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers

[PATCH v3 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-10 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga --- drivers/staging

[PATCH v3 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-10 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions

[PATCH v3 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-10 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 50 +++ 1 file changed

[PATCH v3 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-10 Thread Wambui Karuga
-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 37 --- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index b0018fe7bae3..52f490d5ebfb 100644 --- a/drivers

[PATCH v3 0/4] staging: rtl8723bs: Style clean-up in rtw_mlme.c

2019-10-10 Thread Wambui Karuga
corporates newer changes in rtw_mlme.c on staging-testing. Wambui Karuga (4): staging: rtl8723bs: Remove comparisons to NULL in conditionals staging: rtl8723bs: Remove unnecessary braces for single statements staging: rtl8723bs: Remove comparisons to booleans in conditionals. staging: rtl8723

[PATCH v2 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-09 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions

[PATCH v2 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-09 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga --- drivers/staging

[PATCH v2 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-09 Thread Wambui Karuga
-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 37 --- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 7f27287223e8..b15b761782b8 100644 --- a/drivers

[PATCH v2 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-09 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 46 +++ 1 file changed

[PATCH v2 0/4] staging: rtl8723bs: Style clean-up in rtw_mlme.c

2019-10-09 Thread Wambui Karuga
This patchset addresses multiple style and formatting issues reported by checkpatch.pl in drivers/staging/rtl8723bs/core/rtw_mlme.c PATCH v2 of the series corrects the "patchest" mispelling in the original cover letter and provides a clearer subject line. Wambui Karuga (4): staging:

[PATCH] staging: octeon: Fix incorrect type in assignment

2019-10-09 Thread Wambui Karuga
/staging/octeon/ethernet-tx.c:563:50:got restricted __wsum [usertype] csum Warning generated by running: make C=2 CF="-D__CHECK_ENDIAN__" drivers/staging/octeon/ Signed-off-by: Wambui Karuga --- drivers/staging/octeon/octeon-stubs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-09 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions

[PATCH 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-09 Thread Wambui Karuga
-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 37 --- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 7f27287223e8..b15b761782b8 100644 --- a/drivers

[PATCH 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-09 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga --- drivers/staging

[PATCH 0/4] Fix style and formatting issues in rtw_mlme.c

2019-10-09 Thread Wambui Karuga
This patchest addresses multiple style and formatting issues in the file drivers/staging/rtl8723bs/core/rtw_mlme.c. These issues are all reported by checkpatch.pl Wambui Karuga (4): staging: rtl8723bs: Remove comparisons to NULL in conditionals staging: rtl8723bs: Remove unnecessary braces

[PATCH 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-09 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 46 +++ 1 file changed

[PATCH] staging: kpc2000: Remove unnecessary return variable

2019-10-09 Thread Wambui Karuga
Remove unnecessary variable `val` in kp_spi_read_reg() that only holds the return value from readq(). Issue found by coccinelle using the script: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Wambui Karuga --- drivers/staging/kpc2000

[PATCH] staging: octeon: Remove typedef declaration

2019-10-07 Thread Wambui Karuga
Fixes checkpatch.pl warning: do not add new typedefs in drivers/staging/octeon/octeon-stubs.h:41 Signed-off-by: Wambui Karuga --- drivers/staging/octeon/octeon-stubs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers