Re: [PATCH] fs: Call kmap_local_page() in copy_string_kernel()

2022-07-22 Thread Fabio M. De Francesco
On venerdì 22 luglio 2022 02:14:20 CEST Ira Weiny wrote: > On Sun, Jul 10, 2022 at 12:01:36PM +0200, Fabio M. De Francesco wrote: > > The use of kmap_atomic() is being deprecated in favor of kmap_local_page(). > > > > With kmap_local_page(), the mappings are

[PATCH] fs: Call kmap_local_page() in copy_string_kernel()

2022-07-10 Thread Fabio M. De Francesco
kmap_local_page() in copy_string_kernel() instead of kmap_atomic(). Tested with xfstests on a QEMU + KVM 32-bits VM booting a kernel with HIGHMEM64GB enabled. Suggested-by: Ira Weiny Signed-off-by: Fabio M. De Francesco --- I sent a first patch to fs/exec.c for converting kmap() and kmap_atomic

Re: [PATCH] fs: Replace kmap{,_atomic}() with kmap_local_page()

2022-07-09 Thread Fabio M. De Francesco
On venerdì 8 luglio 2022 22:18:35 CEST Ira Weiny wrote: > On Thu, Jun 30, 2022 at 06:35:27PM +0200, Fabio M. De Francesco wrote: > > The use of kmap() and kmap_atomic() are being deprecated in favor of > > kmap_local_page(). > > > > With kmap_local_page(), the mapping

Re: [PATCH] fs: Replace kmap{,_atomic}() with kmap_local_page()

2022-07-01 Thread Fabio M. De Francesco
On giovedì 30 giugno 2022 19:38:08 CEST Eric W. Biederman wrote: > "Fabio M. De Francesco" writes: > > > The use of kmap() and kmap_atomic() are being deprecated in favor of > > kmap_local_page(). > > > > With kmap_local_page(), the mappings are per thread

[PATCH] fs: Replace kmap{,_atomic}() with kmap_local_page()

2022-06-30 Thread Fabio M. De Francesco
() in exec.c because these mappings are per thread, CPU local, and not globally visible. Tested with xfstests on a QEMU + KVM 32-bits VM booting a kernel with HIGHMEM64GB enabled. Suggested-by: Ira Weiny Signed-off-by: Fabio M. De Francesco --- fs/exec.c | 14 +++--- 1 file changed, 7

Re: [Outreachy kernel] [PATCH v4] staging: rtl8723bs: Remove led_blink_hdl() and everything related

2021-04-15 Thread Fabio M. De Francesco
On Thursday, April 15, 2021 9:28:46 AM CEST Greg Kroah-Hartman wrote: > On Thu, Apr 15, 2021 at 09:17:31AM +0200, Fabio M. De Francesco wrote: > > Removed useless led_blink_hdl() prototype and definition. > > Removed struct LedBlink_param. Removed LedBlink entries in >

[Outreachy kernel] [PATCH v4] staging: rtl8723bs: Remove led_blink_hdl() and everything related

2021-04-15 Thread Fabio M. De Francesco
-by: Julia Lawall Reported-by: Fabio Aiuto Reported-by: Greg Kroah-Hartman Suggested-by: Matthew Wilcox Suggested-by: Dan Carpenter Signed-off-by: Fabio M. De Francesco --- Changes from v3: Merged the series into one single patch for avoiding unnecessary intermediate stages. Changes from v2: Made

[Outreachy kernel] [PATCH v3 2/2] staging: rtl8723bs: Remove everything related with LedBlink

2021-04-14 Thread Fabio M. De Francesco
-by: Fabio Aiuto Reported-by: Greg Kroah-Hartman Suggested-by: Dan Carpenter Signed-off-by: Fabio M. De Francesco --- Changes from v2: Added this patch as 2/2. Changes from v1: No changes. drivers/staging/rtl8723bs/core/rtw_cmd.c| 27 ++--- drivers/staging/rtl8723bs/include

[Outreachy patch] [PATCH v3 1/2] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
Suggested-by: Matthew Wilcox Suggested-by: Dan Carpenter Signed-off-by: Fabio M. De Francesco --- Changes from v2: no changes. Changes from v1: Corrected a bad solution to this issue that made use of an unnecessary dummy function. drivers/staging/rtl8723bs/core/rtw_cmd.c | 2

[Outreachy kernel] [PATCH v3 0/2] Remove led_blink_hdl and other related symbols

2021-04-14 Thread Fabio M. De Francesco
in comments for having them in line with the shift. Fabio M. De Francesco (2): staging: rtl8723bs: Remove useless led_blink_hdl() staging: rtl8723bs: Remove everything related with LedBlink drivers/staging/rtl8723bs/core/rtw_cmd.c | 27 +-- drivers/staging/rtl8723bs/core

Re: [Outreachy kernel] [PATCH v2] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 8:05:59 PM CEST Fabio M. De Francesco wrote: > On Wednesday, April 14, 2021 7:57:03 PM CEST Greg Kroah-Hartman wrote: > > On Wed, Apr 14, 2021 at 08:48:09PM +0300, Dan Carpenter wrote: > > > On Wed, Apr 14, 2021 at 07:00:41PM +0200, Greg K

Re: [Outreachy kernel] [PATCH v2] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 7:57:03 PM CEST Greg Kroah-Hartman wrote: > On Wed, Apr 14, 2021 at 08:48:09PM +0300, Dan Carpenter wrote: > > On Wed, Apr 14, 2021 at 07:00:41PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Apr 14, 2021 at 06:26:14PM +0200, Fabio M. D

[Outreachy kernel] [PATCH v2] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
Suggested-by: Dan Carpenter Signed-off-by: Fabio M. De Francesco --- Changes since v1: Corrected a bad solution to this issue that made use of an unnecessary dummy function. drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c| 9

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 3:24:14 PM CEST Dan Carpenter wrote: > On Wed, Apr 14, 2021 at 01:52:43PM +0200, Fabio M. De Francesco wrote: > > Removed the led_blink_hdl() function (declaration and definition). > > Declared dummy_function() in include/rtw_mlme_ext.h and defined

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 2:18:13 PM CEST Greg Kroah-Hartman wrote: > On Wed, Apr 14, 2021 at 01:52:43PM +0200, Fabio M. De Francesco wrote: > > Removed the led_blink_hdl() function (declaration and definition). > > Declared dummy_function() in include/rtw_mlme_ext.h and defined

[Outreachy kernel] [PATCH] staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
Carpenter Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 +++- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c| 9 - drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 3 ++- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 9:00:25 AM CEST Dan Carpenter wrote: > On Wed, Apr 14, 2021 at 08:33:48AM +0200, Fabio M. De Francesco wrote: > > On Wednesday, April 14, 2021 7:21:50 AM CEST Dan Carpenter wrote: > > > On Tue, Apr 13, 2021 at 10:08:32PM +0200, Fabio M. D

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 7:21:50 AM CEST Dan Carpenter wrote: > On Tue, Apr 13, 2021 at 10:08:32PM +0200, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 9:48:44 PM CEST Matthew Wilcox wrote: > > > On Tue, Apr 13, 2021 at 09:45:03PM +0200, Fabio M. De Francesco

[Outreachy kernel] [PATCH v2] staging: rtl8723bs: hal: Remove four set but not used variables

2021-04-14 Thread Fabio M. De Francesco
Removed four variables that were set but not used. Signed-off-by: Fabio M. De Francesco --- Changes from v1: deleted one blank line. drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 9:48:44 PM CEST Matthew Wilcox wrote: > On Tue, Apr 13, 2021 at 09:45:03PM +0200, Fabio M. De Francesco wrote: > > 1) The driver doesn't call that function from anywhere else than the > > macro. 2) You have explained that the macro add its s

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 9:25:05 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 8:57:20 PM CEST Julia Lawall wrote: > > > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > > > On Tuesday, Apri

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 8:57:20 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 8:20:50 PM CEST Dan Carpenter wrote: > > > On Tue, Apr 13, 2021 at 06:47:06PM +0200, Fabio M. De Francesco wrote: > > > >

[Outreachy kernel] [PATCH] staging: rtl8723bs: hal: Remove four set but not used variables

2021-04-13 Thread Fabio M. De Francesco
Removed four variables that were set but not used. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 8:20:50 PM CEST Dan Carpenter wrote: > On Tue, Apr 13, 2021 at 06:47:06PM +0200, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 6:27:17 PM CEST Julia Lawall wrote: > > > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > > >

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 6:27:17 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 6:04:16 PM CEST Julia Lawall wrote: > > > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > > > Removed the led_bli

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 6:04:16 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > Removed the led_blink_hdl() function (declaration, definition, and > > caller code) because it's useless. It only seems to check whether or > > not a

[Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
Removed the led_blink_hdl() function (declaration, definition, and caller code) because it's useless. It only seems to check whether or not a given pointer is NULL. There are other (simpler) means for that purpose. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/core

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: core: Remove unused but set variable

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 5:16:17 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > Removed "ledBlink_param" because it was set to the value of "pbuf" but > > was never reused. This set was made by direct assignment (no hel

[Outreachy kernel] [PATCH] staging: rtl8723bs: core: Remove unused but set variable

2021-04-13 Thread Fabio M. De Francesco
Removed "ledBlink_param" because it was set to the value of "pbuf" but was never reused. This set was made by direct assignment (no helper had been called), therefore it had no side effect to the location pointed by "pbuf". Signed-off-by: Fabio M. De Francesco ---

Re: [Outreachy kernel] [PATCH] staging: rtl8192u: ieee80211: Replaced strncpy() with strscpy()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 3:16:17 PM CEST Greg Kroah-Hartman wrote: > On Tue, Apr 13, 2021 at 03:12:02PM +0200, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 2:59:29 PM CEST Greg Kroah-Hartman wrote: > > > On Tue, Apr 13, 2021 at 02:30:41PM +0200, Fabio M. D

Re: [Outreachy kernel] [PATCH] staging: rtl8192u: ieee80211: Replaced strncpy() with strscpy()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 2:59:29 PM CEST Greg Kroah-Hartman wrote: > On Tue, Apr 13, 2021 at 02:30:41PM +0200, Fabio M. De Francesco wrote: > > Replaced strncpy() with strscpy() because of compilation time warnings > > about possible truncation of output [-Wstringop-truncati

Re: [Outreachy kernel] Re: [PATCH v2 3/4] staging: media: intel-ipu3: reduce length of line

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 12:56:36 PM CEST Mitali Borkar wrote: > On Tue, Apr 13, 2021 at 01:44:32PM +0300, Sakari Ailus wrote: > > On Tue, Apr 13, 2021 at 04:13:04PM +0530, Mitali Borkar wrote: > > > On Tue, Apr 13, 2021 at 01:01:34PM +0300, Sakari Ailus wrote: > > > > Hi Mitali, > > > > > > >

[Outreachy kernel] [PATCH] staging: rtl8192u: ieee80211: Replaced strncpy() with strscpy()

2021-04-13 Thread Fabio M. De Francesco
Replaced strncpy() with strscpy() because of compilation time warnings about possible truncation of output [-Wstringop-truncation]. Furthermore, according to the Linux official documentation, strscpy() is preferred to strncpy. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8192u

[Outreachy patch] [PATCH] staging: rtl8188eu: Move channel_table away from rtw_mlme_ext.h

2021-04-13 Thread Fabio M. De Francesco
not used [-Wunused-const-variable=]". Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 8 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/c

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: hal: Remove camelcase

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 9:39:44 AM CEST Greg Kroah-Hartman wrote: > On Mon, Apr 12, 2021 at 11:02:58PM +0200, Fabio M. De Francesco wrote: > > Removed camelcase in (some) symbols. Further work is needed. > > What symbols did you do this for? What did you c

[Outreachy kernel] [PATCH 2/2] staging: rtl8723bs: hal: Remove multiple blank lines

2021-04-12 Thread Fabio M. De Francesco
Removed unnecessary multiple blank lines. Issue detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/hal/Hal8723BReg.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/Hal8723BReg.h b/drivers/staging/rtl8723bs/hal

[Outreachy kernel] [PATCH 1/2] staging: rtl8723bs: hal: Remove spaces before tabs

2021-04-12 Thread Fabio M. De Francesco
Removed spaces before tabs. Issue detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/hal/Hal8723BReg.h | 36 ++--- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/Hal8723BReg.h b/drivers

[Outreachy kernel] [PATCH 0/2] Remove spaces and blank lines

2021-04-12 Thread Fabio M. De Francesco
Removed spaces before tabs and multiple blank lines from Hal8723BReg.h for readability improvement. Issues detected by checkpatch.pl. Fabio M. De Francesco (2): staging: rtl8723bs: hal Remove spaces before tabs staging: rtl8723bs: hal: Remove multiple blank lines drivers/staging/rtl8723bs

Re: [Outreachy kernel] [PATCH] staging: rtl8192u: Remove function

2021-04-12 Thread Fabio M. De Francesco
On Monday, April 12, 2021 12:22:03 PM CEST Greg KH wrote: > On Mon, Apr 12, 2021 at 12:12:34PM +0200, Fabio M. De Francesco wrote: > > On Monday, April 12, 2021 11:42:51 AM CEST Greg KH wrote: > > > On Sun, Apr 11, 2021 at 08:48:13PM +0200, Fabio M. De Francesco wro

Re: [Outreachy kernel] [PATCH] staging: rtl8192u: Remove variable set but not used

2021-04-12 Thread Fabio M. De Francesco
On Monday, April 12, 2021 11:31:15 AM CEST Greg KH wrote: > On Sun, Apr 11, 2021 at 07:41:43PM +0200, Fabio M. De Francesco wrote: > > Remove variable "int ret" which is instantiated but not used. > > > > Signed-off-by: Fabio M. De Francesco > > -

Re: [Outreachy kernel] [PATCH] staging: rtl8192u: Remove function

2021-04-12 Thread Fabio M. De Francesco
On Monday, April 12, 2021 11:42:51 AM CEST Greg KH wrote: > On Sun, Apr 11, 2021 at 08:48:13PM +0200, Fabio M. De Francesco wrote: > > Remove cmpk_handle_query_config_rx() because it just initializes a > > local > > variable and then returns "void". > > >

[Outreachy kernel] [PATCH] staging: rtl8192u: Remove function

2021-04-11 Thread Fabio M. De Francesco
Remove cmpk_handle_query_config_rx() because it just initializes a local variable and then returns "void". Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 40 1 file changed, 40 deletions(-) diff --git a/drivers/stagin

[Outreachy kernel] [PATCH v2] staging: rtl8192u: Remove variable set but not used

2021-04-11 Thread Fabio M. De Francesco
Remove variable "int ret", declared but not used. Signed-off-by: Fabio M. De Francesco --- Changes from v1: Change the text of the subject and log. drivers/staging/rtl8192u/r8192U_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c

Re: [Outreachy kernel] [PATCH] staging: rtl8192u: Remove variable set but not used

2021-04-11 Thread Fabio M. De Francesco
On Sunday, April 11, 2021 7:43:57 PM CEST Julia Lawall wrote: > On Sun, 11 Apr 2021, Fabio M. De Francesco wrote: > > Remove variable "int ret" which is instantiated but not used. > > instantiated -> declared? I thought instantiated could mean initialized, > but t

[Outreachy kernel] [PATCH] staging: rtl8192u: Remove variable set but not used

2021-04-11 Thread Fabio M. De Francesco
Remove variable "int ret" which is instantiated but not used. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8192u/r8192U_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index f4

[Outreachy kernel] [PATCH v5 4/4] staging: rtl8723bs: Change controlling expressions

2021-04-11 Thread Fabio M. De Francesco
Change controlling expressions within 'if' statements: don't compare with 'true'. Signed-off-by: Fabio M. De Francesco --- Changes from v4: Write patch version number in 2/4. Changes from v3: Move changes of controlling expressions in patch 4/4. Changes from v2: Rewrite subject in patch 0/4

[Outreachy kernel] [PATCH v5 3/4] staging: rtl8723bs: include: Change the type of a variable

2021-04-11 Thread Fabio M. De Francesco
Change the type of fw_current_in_ps_mode from u8 to bool, because it is used everywhere as a bool and, accordingly, it should be declared as a bool. Signed-off-by: Fabio M. De Francesco --- Changes from v4: Write patch version number in 2/4. Changes from v3: Move changes of controlling

[Outreachy kernel] [PATCH v5 2/4] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-11 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v4: Write patch version number in 2/4. Changes from v3: Move changes of controlling expressions in patch 4/4. Changes from v2: Rewrite subject

[Outreachy kernel] [PATCH v5 1/4] staging: rtl8723bs: Remove camelcase in several files

2021-04-11 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- Ch

[Outreachy kernel] [PATCH v5 0/4] staging: rtl8723bs: Change several files of the driver

2021-04-11 Thread Fabio M. De Francesco
: Rewrite subject in patch 0/4; remove a patch from the series because it had alreay been applied (rtl8723bs: core: Remove an unused variable). Changes from v1: Fix a typo in subject of patch 1/5, add patch 5/5. Fabio M. De Francesco (4): staging: rtl8723bs: Remove camelcase in several files

[Outreachy kernel] [PATCH v4 4/4] staging: rtl8723bs: Change controlling expressions

2021-04-11 Thread Fabio M. De Francesco
Change controlling expressions within 'if' statements: don't compare with 'true'. Signed-off-by: Fabio M. De Francesco --- Changes from v3: Move changes of controlling expressions in patch 4/4. Changes from v2: Rewrite subject in patch 0/4; remove a patch from the series because it had alreay

[Outreachy kernel] [PATCH v4 3/4] staging: rtl8723bs: include: Change the type of a variable

2021-04-11 Thread Fabio M. De Francesco
Change the type of fw_current_in_ps_mode from u8 to bool, because it is used everywhere as a bool and, accordingly, it should be declared as a bool. Signed-off-by: Fabio M. De Francesco --- Changes from v3: Move changes of controlling expressions in patch 4/4. Changes from v2: Rewrite subject

[Outreachy kernel] [PATCH 2/4] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-11 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v3: Move changes of controlling expressions in patch 4/4. Changes from v2: Rewrite subject in patch 0/4; remove a patch from the series because

[Outreachy kernel] [PATCH v4 1/4] staging: rtl8723bs: Remove camelcase in several files

2021-04-11 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- C

[Outreachy kernel] [PATCH v4 0/4] staging: rtl8723bs: Change several files of the driver

2021-04-11 Thread Fabio M. De Francesco
the series because it had alreay been applied (rtl8723bs: core: Remove an unused variable). Changes from v1: Fix a typo in subject of patch 1/5, add patch 5/5. Fabio M. De Francesco (4): staging: rtl8723bs: Remove camelcase in several files staging: rtl8723bs: include: Fix misspelled words

Re: [Outreachy kernel] [PATCH v3 4/4] staging: rtl8723bs: core: Change a controlling expression

2021-04-11 Thread Fabio M. De Francesco
On Sunday, April 11, 2021 12:10:17 PM CEST Julia Lawall wrote: > On Sun, 11 Apr 2021, Fabio M. De Francesco wrote: > > On Sunday, April 11, 2021 11:51:32 AM CEST Julia Lawall wrote: > > > On Sun, 11 Apr 2021, Fabio M. De Francesco wrote: > > > > On Sunday, April 1

Re: [Outreachy kernel] [PATCH v3 4/4] staging: rtl8723bs: core: Change a controlling expression

2021-04-11 Thread Fabio M. De Francesco
On Sunday, April 11, 2021 11:51:32 AM CEST Julia Lawall wrote: > On Sun, 11 Apr 2021, Fabio M. De Francesco wrote: > > On Sunday, April 11, 2021 11:26:41 AM CEST Julia Lawall wrote: > > > On Sun, 11 Apr 2021, Fabio M. De Francesco wrote: > > > > Change a

Re: [Outreachy kernel] [PATCH v3 4/4] staging: rtl8723bs: core: Change a controlling expression

2021-04-11 Thread Fabio M. De Francesco
On Sunday, April 11, 2021 11:26:41 AM CEST Julia Lawall wrote: > On Sun, 11 Apr 2021, Fabio M. De Francesco wrote: > > Change a controlling expression within an 'if' statement: don't compare > > with 'true'. > > > > Signed-off-by: Fabio M. De Francesco > > ---

[Outreachy kernel] [PATCH v3 4/4] staging: rtl8723bs: core: Change a controlling expression

2021-04-11 Thread Fabio M. De Francesco
Change a controlling expression within an 'if' statement: don't compare with 'true'. Signed-off-by: Fabio M. De Francesco --- Changes from v2: Rewrite subject in patch 0/4; remove a patch from the series because it had alreay been applied (rtl8723bs: core: Remove an unused variable). Changes

[Outreachy kernel] [PATCH v3 3/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-11 Thread Fabio M. De Francesco
Change the type of fw_current_in_ps_mode from u8 to bool, because it is used everywhere as a bool and, accordingly, it should be declared as a bool. Shorten the controlling expression of an 'if' statement. Signed-off-by: Fabio M. De Francesco --- Changes from v2: Rewrite subject in patch 0/4

[Outreachy kernel] [PATCH v3 2/4] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-11 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v2: Rewrite subject in patch 0/4; remove a patch from the series because it had alreay been applied (rtl8723bs: core: Remove an unused

[Outreachy kernel] [PATCH v3 1/4] staging: rtl8723bs: Remove camelcase in several files

2021-04-11 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- Chan

[Outreachy kernel] [PATCH v3 0/4] staging: rtl8723bs: Change several files of the driver

2021-04-11 Thread Fabio M. De Francesco
an unused variable). Changes from v1: Fix a typo in subject of patch 1/5, add patch 5/5. Fabio M. De Francesco (4): staging: rtl8723bs: Remove camelcase in several files staging: rtl8723bs: include: Fix misspelled words in comments staging: rtl8723bs: Change the type and use of a variable

Re: [Outreachy kernel] [PATCH v2 0/5] staging: rtl8723bs: Change

2021-04-11 Thread Fabio M. De Francesco
On Sunday, April 11, 2021 8:39:18 AM CEST Greg KH wrote: > On Sat, Apr 10, 2021 at 05:00:03PM +0200, Fabio M. De Francesco wrote: > > Remove camelcase, correct misspelled words in comments, remove an > > unused > > variable, change the type of a variable and its us

[Outreachy kernel] [PATCH v2 5/5] staging: rtl8723bs: core: Change a controlling expression

2021-04-10 Thread Fabio M. De Francesco
Change a controlling expression within an 'if' statement: don't compare with 'true'. Signed-off-by: Fabio M. De Francesco --- Changes from v1: No changes. This related patch is new to this series. drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[Outreachy kernel] [PATCH v2 4/5] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
Change the type of fw_current_in_ps_mode from u8 to bool, because it is used everywhere as a bool and, accordingly, it should be declared as a bool. Shorten the controlling expression of an 'if' statement. Signed-off-by: Fabio M. De Francesco --- Changes from v1: No changes. drivers/staging

[Outreachy kernel] [PATCH v2 3/5] staging: rtl8723bs: core: Remove an unused variable

2021-04-10 Thread Fabio M. De Francesco
Delete local variable "u8 sec_idx" because is declared and set, but never used. Signed-off-by: Fabio M. De Francesco --- Changes from v1: No changes. drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging

[Outreachy kernel] [PATCH v2 2/5] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-10 Thread Fabio M. De Francesco
Signed-off-by: Fabio M. De Francesco --- Changes from v1: No changes. .../rtl8723bs/include/Hal8192CPhyReg.h| 8 ++--- .../staging/rtl8723bs/include/basic_types.h | 2 +- drivers/staging/rtl8723bs/include/drv_types.h | 2 +- drivers/staging/rtl8723bs/include/hal_com.h | 2

[Outreachy kernel] [PATCH v2 1/5] staging: rtl8723bs: Remove camelcase in several files

2021-04-10 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco ---

[Outreachy kernel] [PATCH v2 0/5] staging: rtl8723bs: Change

2021-04-10 Thread Fabio M. De Francesco
Remove camelcase, correct misspelled words in comments, remove an unused variable, change the type of a variable and its use, change comparisons with 'true' in controlling expressions. Changes from v1: Fix a typo in subject of patch 1/5, add patch 5/5. Fabio M. De Francesco (5): staging

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 3:24:43 PM CEST Julia Lawall wrote: > On Sat, 10 Apr 2021, Fabio M. De Francesco wrote: > > On Saturday, April 10, 2021 2:12:28 PM CEST Julia Lawall wrote: > > > On Sat, 10 Apr 2021, Fabio M. De Francesco wrote: > > > > On Saturday, April

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 2:12:28 PM CEST Julia Lawall wrote: > On Sat, 10 Apr 2021, Fabio M. De Francesco wrote: > > On Saturday, April 10, 2021 1:37:30 PM CEST Julia Lawall wrote: > > > > That variable has global scope and is assigned at least in: > > > What do y

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 1:37:30 PM CEST Julia Lawall wrote: > > That variable has global scope and is assigned at least in: > What do you mean by global scope? None of the following look like > references to global variables. > > julia I just mean that fw_current_in_ps_mode is a field of a

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 1:03:34 PM CEST Greg KH wrote: > On Sat, Apr 10, 2021 at 12:58:06PM +0200, Fabio M. De Francesco wrote: > > On Saturday, April 10, 2021 12:31:27 PM CEST Greg KH wrote: > > > On Sat, Apr 10, 2021 at 11:56:48AM +0200, Fabio M. De Francesco wrote: &

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 12:31:27 PM CEST Greg KH wrote: > On Sat, Apr 10, 2021 at 11:56:48AM +0200, Fabio M. De Francesco wrote: > > On Saturday, April 10, 2021 11:31:16 AM CEST Greg KH wrote: > > > On Sat, Apr 10, 2021 at 11:22:32AM +0200, Fabio M. De Francesco wrote: >

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 11:31:16 AM CEST Greg KH wrote: > On Sat, Apr 10, 2021 at 11:22:32AM +0200, Fabio M. De Francesco wrote: > > Change the type of fw_current_in_ps_mode from u8 to bool, because > > it is used everywhere as a bool and, accordingly, it should be > &g

Re: [Outreachy kernel] [PATCH v7 1/3] staging: rtl8723bs: Remove camelcase in several files

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 11:32:00 AM CEST Greg KH wrote: > On Sat, Apr 10, 2021 at 11:22:29AM +0200, Fabio M. De Francesco wrote: > > Remove camelcase in bFwCurrentInPSMode, a variable used by code > > of several subdirectories/files of the driver. Issue detected by > >

[Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: Change the type and use of a variable

2021-04-10 Thread Fabio M. De Francesco
Change the type of fw_current_in_ps_mode from u8 to bool, because it is used everywhere as a bool and, accordingly, it should be declared as a bool. Shorten the controlling expression of an 'if' statement. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/hal/hal_intf.c

[Outreachy kernel] [PATCH 3/4] staging: rtl8723bs: core: Remove an unused variable

2021-04-10 Thread Fabio M. De Francesco
Delete local variable "u8 sec_idx" because it is declared and initialised, but never used. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw

[Outreachy kernel] [PATCH 2/4] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-10 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v1: Substitute "mispelled" with "misspelled" in the Subject. .../rtl8723bs/include/Hal8192CPhyReg.h| 8 ++--- .

[Outreachy kernel] [PATCH v7 1/3] staging: rtl8723bs: Remove camelcase in several files

2021-04-10 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- C

[Outreachy kernel] [PATCH 0/4] staging: rtl8723bs: Change several files of the driver

2021-04-10 Thread Fabio M. De Francesco
Remove camelcase, correct misspelled words in comments, remove an unused variable, change type and use of another variable. These changes affect files in different subdirectories of this driver. Fabio M. De Francesco (4): staging: rtl8723bs: Remove camelcase in several files staging

Re: [Outreachy kernel] [Patch 0/3]

2021-04-10 Thread Fabio M. De Francesco
On Saturday, April 10, 2021 9:29:29 AM CEST Greg KH wrote: > On Fri, Apr 09, 2021 at 06:29:59PM +0200, Fabio M. De Francesco wrote: > > This patch series removes camelcases, changes the type and use of a > > variable, and correct misspelled words. > > > > Patch 1/3:

[Outreachy kernel] [PATCH] staging: rtl8723bs: core: Remove an unused variable

2021-04-09 Thread Fabio M. De Francesco
Delete local variable "u8 sec_idx" because is declared and set, but never used. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Change the type and use of a variable

2021-04-09 Thread Fabio M. De Francesco
On Friday, April 9, 2021 4:12:37 PM CEST Greg KH wrote: > On Thu, Apr 08, 2021 at 01:19:42PM +0200, Fabio M. De Francesco wrote: > > Change the type of fw_current_in_ps_mode from u8 to bool, because > > it is used everywhere as a bool and, accordingly, it should be > > declar

[Outreachy kernel] [PATCH v2 3/3] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-09 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v1: Substitute "mispelled" with "misspelled" in Subject. .../rtl8723bs/include/Hal8192CPhyReg.h| 8 ++--- .

[Outreachy kernel] [PATCH 2/3] staging: rtl8723bs: Change the type and use of a variable

2021-04-09 Thread Fabio M. De Francesco
Change the type of fw_current_in_ps_mode from u8 to bool, because it is used everywhere as a bool and, accordingly, it should be declared as a bool. Shorten the controlling expression of an 'if' statement. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/hal/hal_intf.c

[Outreachy kernel] [Resend Patch 0/3] staging: rtl8723bs: Patchset for rtl8723bs

2021-04-09 Thread Fabio M. De Francesco
| 2 +- drivers/staging/rtl8723bs/include/sta_info.h | 2 +- drivers/staging/rtl8723bs/include/wifi.h | 2 +- 16 files changed, 46 insertions(+), 46 deletions(-) Fabio M. De Francesco

[Outreachy kernel] [PATCH v7 1/3] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- C

[Outreachy kernel] [Patch 0/3]

2021-04-09 Thread Fabio M. De Francesco
| 2 +- drivers/staging/rtl8723bs/include/sta_info.h | 2 +- drivers/staging/rtl8723bs/include/wifi.h | 2 +- 16 files changed, 46 insertions(+), 46 deletions(-) Fabio M. De Francesco

[Outreachy kernel] [PATCH v2] staging: rtl8723bs: include: Fix misspelled words in comments

2021-04-09 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v1: Substitute "mispelled" with "misspelled" in Subject .../rtl8723bs/include/Hal8192CPhyReg.h| 8 ++--- .

[Outreachy kernel] [PATCH] staging: rtl8723bs: include: Correct mispelled words in comments

2021-04-09 Thread Fabio M. De Francesco
Correct misspelled words in comments of several files. Issue (largely) detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- .../rtl8723bs/include/Hal8192CPhyReg.h| 8 ++--- .../staging/rtl8723bs/include/basic_types.h | 2 +- drivers/staging/rtl8723bs/include

Re: [Outreachy kernel] [PATCH v6] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
On Friday, April 9, 2021 10:04:08 AM CEST Julia Lawall wrote: > On Fri, 9 Apr 2021, Fabio M. De Francesco wrote: > > Remove camelcase in bFwCurrentInPSMode, a variable used by code > > of several subdirectories/files of the driver. Issue detected by > > checkpatch.pl. Dele

[Outreachy kernel] [PATCH v7] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- C

[Outreachy kernel] [PATCH v6] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- C

Re: [Outreachy kernel] [PATCH v5] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
On Friday, April 9, 2021 9:22:54 AM CEST Julia Lawall wrote: > On Fri, 9 Apr 2021, Fabio M. De Francesco wrote: > > Remove camelcase in bFwCurrentInPSMode, a variable used by code > > of several subdirectories/files of the driver. Issue detected by > > checkpatch.pl. Dele

[Outreachy kernel] [PATCH v5] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- Chan

[Outreachy kernel] [PATCH v4] staging: rtl8723bs: Remove camelcase in several files

2021-04-08 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v3: Discard v3 because "b_" is not yet removed. Changes from v2: Discard v2 because it

[Outreachy kernel] [PATCH v3] staging: rtl8723bs: Remove camelcase in several files

2021-04-08 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Signed-off-by: Fabio M. De Francesco --- Changes from v2: Discard v2 because it is a diff against v1 instead of a replacement for v1. Changes from v1

Re: [Outreachy kernel] [PATCH v2] staging: rtl8723bs: Remove camelcase in several files

2021-04-08 Thread Fabio M. De Francesco
On Thursday, April 8, 2021 1:55:29 PM CEST Matthew Wilcox wrote: > On Thu, Apr 08, 2021 at 12:39:54PM +0200, Fabio M. De Francesco wrote: > > Remove camelcase in bFwCurrentInPSMode, a variable used by code > > of several subdirectories/files of the driver. Issue detected by &g

  1   2   >