Re: [PATCH] ring-buffer: Update "shortest_full" in polling

2023-09-30 Thread Julia Lawall
6 wakeups in 6.0 to only 3 with this patch. I can do some more tests. > > Cc: sta...@vger.kernel.org > Fixes: 42fb0a1e84ff ("tracing/ring-buffer: Have polling block on watermark") > Reported-by: Julia Lawall > Signed-off-by: Steven Rostedt (Google) Tested-by: Julia Lawall ju

Re: [PATCH] tracing/eprobe: drop unneeded breaks

2023-09-29 Thread Julia Lawall
On Fri, 29 Sep 2023, Masami Hiramatsu wrote: > On Thu, 28 Sep 2023 12:43:34 +0200 > Julia Lawall wrote: > > > Drop break after return. > > > > Good catch! This looks good to me. > > Acked-by: Masami Hiramatsu (Google) > > And > > Fixes: 7491

[PATCH] tracing/eprobe: drop unneeded breaks

2023-09-28 Thread Julia Lawall
Drop break after return. Signed-off-by: Julia Lawall --- kernel/trace/trace_eprobe.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c index 72714cbf475c..03c851f57969 100644 --- a/kernel/trace/trace_eprobe.c

[PATCH] Coccinelle: drop context *s

2021-04-19 Thread Julia Lawall
Context mode is not supported, so the *s are just confusing to people who use the rule outside of make coccicheck. So, drop the *s. Fixes: 6dd9379e8f32 ("coccinelle: also catch kzfree() issues") Reported-by: Fabio M. De Francesco Signed-off-by: Julia Lawall --- scripts/cocci

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Julia Lawall
On Fri, 16 Apr 2021, Sakari Ailus wrote: > On Fri, Apr 16, 2021 at 10:46:54AM +0200, Julia Lawall wrote: > > > > If you're running into the 80 character limit, then it's fine to use > > > > two tabs. I think we have been rejecting patches that push align the >

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Julia Lawall
> > If you're running into the 80 character limit, then it's fine to use > > two tabs. I think we have been rejecting patches that push align the > > parameters but push past the 80 character limit. Using one tab is > > confusing because it makes the decalarations line up with the code. > >

Re: [Outreachy kernel] Re: [PATCH v4 2/2] staging: media: zoran: add BIT() macro and align code

2021-04-15 Thread Julia Lawall
> > > +#define ZR36057_JMC_JPG_EXP_MODE (0 << 29) > > > +#define ZR36057_JMC_JPG_CMP_MODE BIT(29) > > > +#define ZR36057_JMC_MJPG_EXP_MODE(2 << 29) > > > +#define ZR36057_JMC_MJPG_CMP_MODE(3 << 29) > > Same as above. Please change back

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

2021-04-14 Thread Julia Lawall
On Wed, 14 Apr 2021, Fabio M. De Francesco wrote: > Removed useless led_blink_hdl() prototype and definition. In wlancmds[] > the slot #60 is now set to NULL using the macro GEN_MLME_EXT_HANDLER. This > change has not unwanted side effects because the code in rtw_cmd.c checks > if the function

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

2021-04-14 Thread Julia Lawall
On Wed, 14 Apr 2021, Fabio M. De Francesco wrote: > Removed struct LedBlink_param. Removed LedBlink entries in > rtw_cmd_callback[] and in wlancmds[]. Everything related to LedBlink is > not anymore needed. Removed extra blank lines in the two mentioned > arrays and changend the numbers set in

Re: [Outreachy kernel] Re: [PATCH 1/2] staging: media: atomisp: pci: Correct identation in block of conditional statements in file atomisp_v4l2.c

2021-04-14 Thread Julia Lawall
On Wed, 14 Apr 2021, Dan Carpenter wrote: > On Wed, Apr 14, 2021 at 11:06:02AM -0300, Aline Santana Cordeiro wrote: > > Correct identation in block of conditional statements. > > The function "v4l2_device_unregister_subdev()" depends on > > the results of the macro function

Re: [Outreachy kernel] Re: [PATCH v3 4/4] staging: media: intel-ipu3: remove space before tabs

2021-04-13 Thread Julia Lawall
On Wed, 14 Apr 2021, Mitali Borkar wrote: > On Tue, Apr 13, 2021 at 09:17:12PM +0300, Dan Carpenter wrote: > > On Tue, Apr 13, 2021 at 08:59:34PM +0530, Mitali Borkar wrote: > > > Removed unnecessary space before tabs to adhere to linux kernel coding > > > style. > > > Reported by checkpatch.

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

2021-04-13 Thread Julia Lawall
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, April 13, 2021 8:20:50 PM CEST Dan Carpenter wrote: > > > > On Tue, Apr 13, 2

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

2021-04-13 Thread Julia Lawall
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: > > > On Tuesday, April 13, 2021 6:27:17 PM CEST Julia Lawall wrote: > > > &

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

2021-04-13 Thread Julia Lawall
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_blink_hdl() function (declaration, definition, and > > > caller code) be

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

2021-04-13 Thread Julia Lawall
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 > given pointer is NULL. There are other (simpler) means for that purpose. > > Signed-off-by:

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

2021-04-13 Thread Julia Lawall
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 helper had been > called), therefore it had no side effect to the location pointed by "pbuf". > >

Re: cocci script hints request

2021-04-13 Thread Julia Lawall
On Tue, 13 Apr 2021, Fabio Aiuto wrote: > Hi, > > I would like to improve the following coccinelle script: > > @@ > expression a, fmt; > expression list var_args; > @@ > > - DBG_871X_LEVEL(a, fmt, var_args); > + printk(fmt, var_args); > > I would replace the DBG_871X_LEVEL macro

Re: [Outreachy kernel] Subject: [PATCH v2] staging: media: meson: vdec: declare u32 as static const appropriately

2021-04-13 Thread Julia Lawall
On Tue, 13 Apr 2021, Mitali Borkar wrote: > Declared 32 bit unsigned int as static constant inside a function > appropriately. I don't think that the description matches what is done. Perhaps all the meaning is intended to be in the word "appropriately", but that is not very clear. The

Re: [Outreachy kernel][PATCH 1/4 v2] staging: media: omap4iss: Replace macro function by static inline function in file iss.c

2021-04-12 Thread Julia Lawall
On Mon, 12 Apr 2021, ascordeiro wrote: > Em seg, 2021-04-12 às 18:11 +0300, Laurent Pinchart escreveu: > > Hi Aline, > > > > On Mon, Apr 12, 2021 at 10:58:45AM -0300, ascordeiro wrote: > > > Em seg, 2021-04-12 às 16:40 +0300, Laurent Pinchart escreveu: > > > > While testing on a device isn't a

Re: [Outreachy kernel] Re: [PATCH 1/6] staging: media: intel-ipu3: replace bit shifts with BIT() macro

2021-04-12 Thread Julia Lawall
On Mon, 12 Apr 2021, Greg KH wrote: > On Mon, Apr 12, 2021 at 12:42:30PM +0300, Sakari Ailus wrote: > > Hi Mitali, > > > > On Mon, Apr 12, 2021 at 04:38:39AM +0530, Mitali Borkar wrote: > > > Added #include and replaced bit shifts by BIT() macro. > > > This BIT() macro from linux/bitops.h is

Re: [Outreachy kernel] [PATCH] Staging: Remove line to fix checkpatch error

2021-04-12 Thread Julia Lawall
nly the changed lines and a few lines before and after. > Signed-off-by: tawahpeggy You need to put your real name when contributing to the Linux kernel. For example, I would put: Julia Lawall julia > > --- > drivers/staging/comedi/comedi_pcmcia.mod.c | 1 - > 1 file changed, 0 insert

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

2021-04-11 Thread Julia Lawall
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 that doesn't seem to be the case. julia > > Signed-off-by: Fabio M. De Francesco > --- >

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

2021-04-11 Thread Julia Lawall
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 11, 2021 11:26:41 AM CEST Julia Lawall wrote: > > > > On Sun, 11 Apr 202

Re: [Outreachy kernel] [PATCH v3 1/3] staging: rtl8192e: remove parentheses around boolean expression

2021-04-11 Thread Julia Lawall
On Sun, 11 Apr 2021, Mitali Borkar wrote: > Removed unnecessary parentheses around '!xyz' boolean expression as '!' has > higher > precedance than '||' The log message is too wide. It should be at most around 70 characters wide, because git will indent it a little. julia > >

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

2021-04-11 Thread Julia Lawall
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 controlling expression within an 'if' statement: don't compare > > > with 'tr

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

2021-04-11 Thread Julia Lawall
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 > --- > > Changes from v2: Rewrite subject in patch 0/4; remove a patch from the > series because it had alreay

Re: [Outreachy kernel] [PATCH v3] staging: rtl8192e: fixed pointer error by adding '*'

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > Fixed pointer error by adding '*' to the function. > Reported by Julia. Actually, there is a proper tag for reported by, like Signed-off-by. Look through the git history to see what to do. julia > > Signed-off-by: Mitali Borkar > --- > Changes

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

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Fabio M. De Francesco wrote: > 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 A

Re: [Outreachy kernel] [PATCH v2 2/2] staging: media: zoran: remove and add comments; align code

2021-04-10 Thread Julia Lawall
> Mam, my new patch is ready but I am not sure how to send, the v1/2 is > not on top, I have not made changes in it because it was not required. Now, > how to > send these two mails as a patchset, since in between these two git > commits, I have another commits too. Suppose you have relevant

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

2021-04-10 Thread Julia Lawall
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 10, 2021 1:37:30 PM CEST Julia Lawall wrote: > > > > &g

Re: [Outreachy kernel] [PATCH v2] staging: rtl8192e: fixed pointer error by adding '*'

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > Fixed Comparison to NULL can be written as '!...' by replacing it with > simpler form i.e. boolean expression. This makes code more readable > alternative. > Reported by checkpatch. > > Signed-off-by: Mitali Borkar > --- > Changes from v1:- added

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

2021-04-10 Thread Julia Lawall
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 you mean by global scope? None of the following look like > > refere

Re: [Outreachy kernel] [PATCH] staging: rtl8192e: replace comparison to NULL by bool

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > Fixed Comparison to NULL can be written as '!...' by replacing it with > simpler form i.e boolean expression. This makes code more readable > alternative. > Reported by checkpatch. > > Signed-off-by: Mitali Borkar > --- >

Re: [Outreachy kernel] [PATCH v2 2/2] staging: media: zoran: remove and add comments; align code

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > On Fri, Apr 09, 2021 at 10:12:12PM +0200, Julia Lawall wrote: > > > > > > On Sat, 10 Apr 2021, Mitali Borkar wrote: > > > > > Removed comments from the same line and added them to new line above the > > >

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

2021-04-10 Thread Julia Lawall
> 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 > > drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:368: > pwrpriv->fw_current_in_ps_mode = false; > >

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

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Julia Lawall wrote: > > > On Sat, 10 Apr 2021, 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 e

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

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, 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 > > declared as a bool. Shorten the controlling

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

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Greg KH wrote: > On Sat, Apr 10, 2021 at 09:57:00AM +0200, Fabio M. De Francesco wrote: > > 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,

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

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Fabio M. De Francesco wrote: > 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

Re: [Outreachy kernel] [PATCH 1/3] staging: rtl8192e: replace comparison to NULL by boolean

2021-04-10 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > Replaced comparison to NULL by boolean expressions > (here used boolean negations). This improves readability of code. > Reported by checkpatch. > > Signed-off-by: Mitali Borkar > --- > drivers/staging/rtl8192e/rtl819x_HTProc.c | 10 +- > 1

Re: [Outreachy kernel] [PATCH v2 1/2] media: zoran: add spaces around '<<'

2021-04-09 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > No changes required in this patch. > In v1:- Added spaces around '<<' operator to improve readability and meet > linux kernel coding > style The text above would go in the git history. "No changes required in this patch." doesn't make sense in

Re: [Outreachy kernel] [PATCH v2 2/2] staging: media: zoran: remove and add comments; align code

2021-04-09 Thread Julia Lawall
On Sat, 10 Apr 2021, Mitali Borkar wrote: > Removed comments from the same line and added them to new line above the > blocks, aligned everything properly by using tabs to make code neater > and improve readability. > > Signed-off-by: Mitali Borkar > --- >

Re: [Outreachy kernel] Re: [PATCH 1/2 v2] staging: media: hantro: Align line break to the open parenthesis in file hantro_hw.h

2021-04-09 Thread Julia Lawall
On Thu, 8 Apr 2021, Ezequiel Garcia wrote: > Ola Aline, > > Welcome to the kernel community. Hope you enjoy some of this > Outreachy adventures. > > Normally, when you submit a v2, we want to know what changed > between the first submission and v2. > > If you are subscribed to linux-media, you

Re: [Outreachy kernel] Re: [PATCH 1/2] media: zoran: add spaces around '<<'

2021-04-09 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > On Fri, Apr 09, 2021 at 09:23:22AM +0200, Hans Verkuil wrote: > > Hi Mitali, > > > > On 08/04/2021 22:38, Mitali Borkar wrote: > > > Added spaces around '<<' operator to improve readability and meet linux > > > kernel coding style. > > > Reported by

Re: [Outreachy kernel][PATCH] staging: media: hantro: Rewrite macro function in lower case

2021-04-09 Thread Julia Lawall
On Fri, 9 Apr 2021, ascordeiro wrote: > Em sex, 2021-04-09 às 13:44 -0300, Ezequiel Garcia escreveu: > > Hi Aline, > > Hi Ezequiel, > > > > On Fri, 2021-04-09 at 10:54 -0300, Aline Santana Cordeiro wrote: > > > Rewrite macros resembling functions #define HANTRO_PP_REG_WRITE > > > and #define

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

2021-04-09 Thread Julia Lawall
On Fri, 9 Apr 2021, Fabio M. De Francesco wrote: > 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

Re: [Outreachy kernel] Re: [PATCH 1/2] media: zoran: add spaces around '<<'

2021-04-09 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > On Fri, Apr 09, 2021 at 09:23:22AM +0200, Hans Verkuil wrote: > > Hi Mitali, > > > > On 08/04/2021 22:38, Mitali Borkar wrote: > > > Added spaces around '<<' operator to improve readability and meet linux > > > kernel coding style. > > > Reported by

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

2021-04-09 Thread Julia Lawall
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. Delete the unnecessary "b" (that stands for "byte") from > the beginning of the name. I'm

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

2021-04-09 Thread Julia Lawall
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. Delete the unnecessary "b" (that stands for "byte") from > the beginning of the name. Isn't

Re: [Outreachy kernel] [PATCH 2/2] media: zoran: replace bit shifts by BIT() macro

2021-04-09 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > On Fri, Apr 09, 2021 at 12:10:06AM +0200, Julia Lawall wrote: > > > > > > On Fri, 9 Apr 2021, Mitali Borkar wrote: > > > > > On Thu, Apr 08, 2021 at 11:15:07PM +0200, Julia Lawall wrote: > > > > > &g

Re: [Outreachy kernel] [PATCH 2/2] media: zoran: replace bit shifts by BIT() macro

2021-04-08 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > On Thu, Apr 08, 2021 at 11:15:07PM +0200, Julia Lawall wrote: > > > > > > On Fri, 9 Apr 2021, Mitali Borkar wrote: > > > > > Added #include and replaced bit shifts by BIT() macro. > > > This BIT(

Re: [Outreachy kernel] [PATCH 1/2] media: zoran: add spaces around '<<'

2021-04-08 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > Added spaces around '<<' operator to improve readability and meet linux > kernel coding style. > Reported by checkpatch > > Signed-off-by: Mitali Borkar > --- > drivers/staging/media/zoran/zr36057.h | 14 +++--- > 1 file changed, 7

Re: [Outreachy kernel] [PATCH 2/2] media: zoran: replace bit shifts by BIT() macro

2021-04-08 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > Added #include and replaced bit shifts by BIT() macro. > This BIT() macro from linux/bitops.h is used to define ZR36057_VFESPFR_* > bitmasks. > Use of macro is better and neater. It maintains consistency. > Reported by checkpatch. > > Signed-off-by:

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

2021-04-08 Thread Julia Lawall
On Thu, 8 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. It could be reasonable to mention the removal of b in the log message. julia > >

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

2021-04-08 Thread Julia Lawall
On Thu, 8 Apr 2021, Fabio M. De Francesco wrote: > On Thursday, April 8, 2021 10:36:32 AM CEST Greg KH wrote: > > On Thu, Apr 08, 2021 at 10:07:14AM +0200, Fabio M. De Francesco wrote: > > > Remove camelcase in a symbol that is used by several files. > > > > What symbol? > > > > I'm not sure I

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

2021-04-08 Thread Julia Lawall
On Thu, 8 Apr 2021, Fabio M. De Francesco wrote: > Remove camelcase in a symbol that is used by several files. In addition to Greg's suggestion about dropping the b, there are some more things you can do to improve the usage of this field. First, I noticed that the type is u8. It can be

Re: [Outreachy kernel] [PATCH] staging: rtl8712: added spaces around '+'

2021-04-08 Thread Julia Lawall
The subject line should be in the imperative, so "add" instead of "added". On Thu, 8 Apr 2021, Mitali Borkar wrote: > Clean up Check:spaces preferred around that '+' (ctx:VxV) > Reported by checkpatch Please try to rephrase to explain what you did and why. "Clean up" kind of states what the

[PATCH] clk: fix semicolon.cocci warnings

2021-04-07 Thread Julia Lawall
From: kernel test robot Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Liam Beguin Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Liam-Beguin/add

[PATCH] clk: fix for_each_child.cocci warnings

2021-04-07 Thread Julia Lawall
From: kernel test robot For_each_child_of_node should have of_node_put() before goto. Generated by: scripts/coccinelle/iterators/for_each_child.cocci CC: Liam Beguin Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- url: https://github.com

Re: [PATCH] inotify: fix minmax.cocci warnings

2021-04-07 Thread Julia Lawall
On Wed, 7 Apr 2021, Jan Kara wrote: > On Tue 06-04-21 22:49:26, Julia Lawall wrote: > > From: kernel test robot > > > > Opportunity for min(). > > > > Generated by: scripts/coccinelle/misc/minmax.cocci > > > > Fixes: 8636e3295ce3 ("coccinell

Re: [Outreachy kernel] [PATCH 1/2] staging: media: omap4iss: Ending line with argument

2021-04-07 Thread Julia Lawall
On Wed, 7 Apr 2021, Beatriz Martins de Carvalho wrote: > > Em 01/04/21 16:28, Matthew Wilcox escreveu: > > On Thu, Apr 01, 2021 at 04:07:38PM +0100, Beatriz Martins de Carvalho wrote: > > > diff --git a/drivers/staging/media/omap4iss/iss.c > > > b/drivers/staging/media/omap4iss/iss.c > > >

[PATCH] inotify: fix minmax.cocci warnings

2021-04-06 Thread Julia Lawall
From: kernel test robot Opportunity for min(). Generated by: scripts/coccinelle/misc/minmax.cocci Fixes: 8636e3295ce3 ("coccinelle: misc: add minmax script") CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tre

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: hal: Add spaces around operators in HalBtc8723b2Ant.c

2021-04-06 Thread Julia Lawall
On Tue, 6 Apr 2021, Fabio M. De Francesco wrote: > Added spaces around operators in file HalBtc8723b2Ant.c. Issue detected > by checkpatch.pl. Spaces are preferred to improve readibility. You don't usually need the file name in the subject line or the commit message. One can easily see the

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: hal: Add spaces around operator in HalBtc8723b1Ant.h

2021-04-06 Thread Julia Lawall
On Tue, 6 Apr 2021, Fabio M. De Francesco wrote: > Added spaces around operators in file HalBtc8723b1Ant.h. Issue detected > by checkpatch.pl. Spaces are preferred to improve readibility. > > Signed-off-by: Fabio M. De Francesco > --- > drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.h | 2 +-

Re: [Outreachy kernel] [PATCH v2] staging: rtl8723bs: hal: Remove camelcase in Hal8723BReg.h

2021-04-06 Thread Julia Lawall
On Tue, 6 Apr 2021, FMDF wrote: > On Tue, Apr 6, 2021 at 4:11 PM Greg KH wrote: > > > > On Tue, Apr 06, 2021 at 03:05:56PM +0200, Fabio M. De Francesco wrote: > > > Remove camelcase in some symbols defined in Hal8723BReg.h. These symbols > > > are not used anywhere else, therefore this patch

Re: [Outreachy kernel] [PATCH 1/2] staging: rtl8712: Rewrite NULL comparisons

2021-04-06 Thread Julia Lawall
On Tue, 6 Apr 2021, Zhansaya Bagdauletkyzy wrote: > Replace NULL comparisons with boolean negation. This summarizes concisely what you did, which is helpful, but you could also say why. For example, to make the code more concise or to improve readability or for consistency with the rest of

Re: [Outreachy kernel] [PATCH 4/4] staging: rtl8723bs: core: align arguments with open parenthesis

2021-04-05 Thread Julia Lawall
On Mon, 5 Apr 2021, Beatriz Martins de Carvalho wrote: > Cleans up checks of "Alignment should match open parenthesis" > in file rtw_ap.c > > Signed-off-by: Beatriz Martins de Carvalho > > --- > drivers/staging/rtl8723bs/core/rtw_ap.c | 16 > 1 file changed, 8

Re: [Outreachy kernel] [PATCH] staging: emxx_udc: Ending line with argument

2021-04-05 Thread Julia Lawall
On Mon, 5 Apr 2021, Beatriz Martins de Carvalho wrote: > > Em 01/04/21 22:16, Julia Lawall escreveu: > > > > On Thu, 1 Apr 2021, Beatriz Martins de Carvalho wrote: > > > > > Cleans up check of "Lines should not end with a '('" > > > w

Re: [PATCH net-next v8 2/2] net: Add Qcom WWAN control driver (fwd)

2021-04-04 Thread Julia Lawall
There is a clear use after free on line 213. julia -- Forwarded message -- Date: Sat, 3 Apr 2021 04:42:45 +0800 From: kernel test robot To: kbu...@lists.01.org Cc: l...@intel.com, Julia Lawall Subject: Re: [PATCH net-next v8 2/2] net: Add Qcom WWAN control driver CC: kbuild

[PATCH] iommu: dart: fix call_kern.cocci warnings

2021-04-04 Thread Julia Lawall
Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/m1-pcie head: 1fd2c9634dd24fba323baba52200de18e4d3f4ee commit: ce67d3b3ef3734925631ec65deb1cf8078d826cf [14/15] iommu: dart: Add DART io

Re: [PATCH v3] coccinelle: misc: add swap script

2021-04-04 Thread Julia Lawall
On Sun, 28 Mar 2021, Denis Efremov wrote: > Ping? Applied. Thanks. > > On 3/5/21 1:09 PM, Denis Efremov wrote: > > Check for opencoded swap() implementation. > > > > Signed-off-by: Denis Efremov > > --- > > Changes in v2: > > - additional patch rule to drop excessive {} > > - fix

Re: [Outreachy kernel] [PATCH] staging: rtl8188eu: core: add comma within a comment

2021-04-04 Thread Julia Lawall
On Sat, 3 Apr 2021, Deborah Brouwer wrote: > On Sat, Apr 03, 2021 at 11:16:16PM +0200, Julia Lawall wrote: > > > > > > On Sat, 3 Apr 2021, Deborah Brouwer wrote: > > > > > Add a comma to separate repeated words in a comment. The comma preserves > &g

Re: [Outreachy kernel] [PATCH] staging: rtl8188eu: replace goto with direct return

2021-04-04 Thread Julia Lawall
On Sat, 3 Apr 2021, Deborah Brouwer wrote: > To conform with Linux kernel coding style, replace goto statement that > does no cleanup with a direct return. To preserve meaning, copy comments > from the original goto statement to the return statement. Identified by > the checkpatch warning:

Re: [Outreachy kernel] [PATCH] staging: rtl8188eu: core: add comma within a comment

2021-04-03 Thread Julia Lawall
On Sat, 3 Apr 2021, Deborah Brouwer wrote: > Add a comma to separate repeated words in a comment. The comma preserves > the meaning of the comment while also stopping the checkpatch warning: > WARNING: Possible repeated word: 'very'. Thanks. That is more understandable. Isn't this a v2? If

[PATCH] drm/amdgpu: fix semicolon.cocci warnings

2021-04-02 Thread Julia Lawall
From: kernel test robot Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 37439a51ff17 ("drm/amdgpu: Add mode2 reset support for aldebaran") CC: Lijo Lazar Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Ju

Re: [Outreachy kernel] [PATCH] staging: emxx_udc: Ending line with argument

2021-04-01 Thread Julia Lawall
On Thu, 1 Apr 2021, Beatriz Martins de Carvalho wrote: > Cleans up check of "Lines should not end with a '('" > with argument present in next line in file emxx_udc.c The coding style documentation encourages remaining within 80 characters. I'm not sure that the ( warning is worth increading

Re: [Outreachy kernel] [PATCH] staging: greybus: arche-platform: Fix ending '(' warnings

2021-03-31 Thread Julia Lawall
On Wed, 31 Mar 2021, Beatriz Martins de Carvalho wrote: > Fix checkpatch check "CHECK: Lines should not end with a '('" > in arche-platform.c:80 and arche-platform.c:184. Please try to express what you have done and why, without using the word Fix. "Fix" doesn't explain what you have done.

Re: [Outreachy kernel] [PATCH 1/3] staging: rtl8723bs: core: fix repeated word warning

2021-03-31 Thread Julia Lawall
On Wed, 31 Mar 2021, Deborah Brouwer wrote: > Fix checkpatch warning: > WARNING: Possible repeated word: 'very' This is a simple but clear example of how "Fix" doesn't help one understand the patch. In reading the log message, one would probably assume that you removed the repetition, but

Re: [Outreachy kernel] [PATCH 2/3] staging: rtl8723bs: core: fix block comment warning

2021-03-31 Thread Julia Lawall
On Wed, 31 Mar 2021, Deborah Brouwer wrote: > Fix checkpatch warning: > WARNING: Block comments use * on subsequent lines Try to find some way to express what you are doing without using Fix. It's pretty obvious that a patch fixes something, so the work Fix is not very useful. What is your

Re: [Outreachy kernel] [PATCH 3/3] staging: rtl8723bs: core: remove empty comment

2021-03-31 Thread Julia Lawall
On Wed, 31 Mar 2021, Deborah Brouwer wrote: > Remove empty comment instead of fixing the checkpatch warning that it was > generating. Maybe it woudl be better to focus on the purpose of what you are doing. Something like: Remove empty comment, which provides no information. julia > >

[PATCH] ASoC: cygnus: fix for_each_child.cocci warnings

2021-03-28 Thread Julia Lawall
Signed-off-by: Julia Lawall --- cygnus-ssp.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/sound/soc/bcm/cygnus-ssp.c +++ b/sound/soc/bcm/cygnus-ssp.c @@ -1348,8 +1348,10 @@ static int cygnus_ssp_probe(struct platf _ssp_dai[active_

[PATCH] sit: use min

2021-03-27 Thread Julia Lawall
From: kernel test robot Opportunity for min() Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot --- sit.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c

Re: [PATCH] coccinelle: misc: update uninitialized_var.cocci documentation

2021-03-24 Thread Julia Lawall
On Mon, 8 Mar 2021, Denis Efremov wrote: > Remove the documentation link from the warning message because commit > 3942ea7a10c9 ("deprecated.rst: Remove now removed uninitialized_var") > removed the section from documentation. Update the rule documentation > accordingly. > > Signed-off-by:

Re: [PATCH] coccinelle: misc: restrict patch mode in flexible_array.cocci

2021-03-24 Thread Julia Lawall
On Mon, 8 Mar 2021, Denis Efremov wrote: > Skip patches generation for structs/unions with a single field. > Changing a zero-length array to a flexible array member in a struct > with no named members breaks the compilation. However, reporting > such cases is still valuable, e.g. commit

[PATCH] of: overlay: fix for_each_child.cocci warnings

2021-03-22 Thread Julia Lawall
rted-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 812da4d39463a060738008a46cfc9f775e4bfcf6 commit: 82c2d81361ecd142a54e84a9da1e287113314a4f coccinelle: iterators: Add

Re: [PATCH v5] coccinelle: misc: add minmax script

2021-03-20 Thread Julia Lawall
On Tue, 9 Mar 2021, Denis Efremov wrote: > Check for opencoded min(), max() implementations. > > Signed-off-by: Denis Efremov Applied, thanks. julia > --- > Changes in v2: > - <... ...> instead of ... when any > - org mode reports fixed > - patch rule to drop excessive () > Changes in

Re: [PATCH] scripts/coccinelle: Add script to detect sign extension

2021-03-19 Thread Julia Lawall
On Fri, 19 Mar 2021, Evan Benn wrote: > Hello, > > I am attempting to create a coccinelle script that will detect possibly buggy > usage of the bitwise operators where integer promotion may result in bugs, > usually due to sign extension. > > I know this script needs a lot more work, but I am

[PATCH] asus-laptop: fix kobj_to_dev.cocci warnings

2021-03-17 Thread Julia Lawall
From: kernel test robot Use kobj_to_dev() instead of container_of() Generated by: scripts/coccinelle/api/kobj_to_dev.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel

[PATCH v2] tty: max310x: fix flexible_array.cocci warnings

2021-03-09 Thread Julia Lawall
CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- v2: reference the correct commit for Fixes tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 144c79ef33536b4ecb4951e07dbc1f2b7fa99

Re: [PATCH] tty: max310x: fix flexible_array.cocci warnings

2021-03-09 Thread Julia Lawall
On Tue, 9 Mar 2021, Greg Kroah-Hartman wrote: > On Mon, Mar 08, 2021 at 06:47:19PM +0100, Julia Lawall wrote: > > From: kernel test robot > > > > Zero-length and one-element arrays are deprecated, see > > Documentation/process/deprecated.rst > > Flexible-arr

Re: [PATCH v4] coccinelle: misc: add minmax script

2021-03-08 Thread Julia Lawall
> +@pmaxif depends on patch@ > +identifier func; > +expression x, y; > +expression max_val; > +binary operator cmp = {>=, >}; > +@@ > + > +func(...) > +{ > + <... > +-if ((x) cmp (y)) { > +-max_val = (x); > +-} else { > +-max_val = (y); > +-} > ++max_val

[PATCH] tty: max310x: fix flexible_array.cocci warnings

2021-03-08 Thread Julia Lawall
cript") CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 144c79ef33536b4ecb4951e07dbc1f2b7fa99

Re: linux-kernel janitorial RFP: Mark static arrays as const

2021-03-07 Thread Julia Lawall
On Sun, 7 Mar 2021, Joe Perches wrote: > On Sun, 2021-03-07 at 20:14 +0100, Julia Lawall wrote: > > > > On Wed, 3 Mar 2021, Joe Perches wrote: > > > > > On Wed, 2021-03-03 at 10:41 +0100, Rasmus Villemoes wrote: > > > > On 02/03/2021 18.42, Joe P

Re: linux-kernel janitorial RFP: Mark static arrays as const

2021-03-07 Thread Julia Lawall
On Wed, 3 Mar 2021, Joe Perches wrote: > On Wed, 2021-03-03 at 10:41 +0100, Rasmus Villemoes wrote: > > On 02/03/2021 18.42, Joe Perches wrote: > > > Here is a possible opportunity to reduce data usage in the kernel. > > > > > > $ git grep -P -n

Re: [PATCH v2 RESEND] coccinelle: misc: add minmax script

2021-03-06 Thread Julia Lawall
On Fri, 19 Feb 2021, Denis Efremov wrote: > Check for opencoded min(), max() implementations. > > Signed-off-by: Denis Efremov > --- > > Changes in v2: > - <... ...> instead of ... when any > - org mode reports fixed > - patch rule to drop excessive () > >

[PATCH] media: flexcop-usb: delete unneeded return

2021-03-06 Thread Julia Lawall
No need for a return after a break; Signed-off-by: Julia Lawall --- drivers/media/usb/b2c2/flexcop-usb.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c index e731243267e4..01d22834f4ac 100644 --- a/drivers

Re: [PATCH v2] coccinelle: misc: add swap script

2021-03-03 Thread Julia Lawall
On Fri, 19 Feb 2021, Denis Efremov wrote: > Check for opencoded swap() implementation. > > Signed-off-by: Denis Efremov > --- > Changes in v2: > - additional patch rule to drop excessive {} > - fix indentation in patch mode by anchoring ; > > scripts/coccinelle/misc/swap.cocci | 101

Re: [Cocci] linux-kernel janitorial RFP: Mark static arrays as const

2021-03-03 Thread Julia Lawall
On Tue, 2 Mar 2021, Bernd Petrovitsch wrote: > Hi all! > > On 02/03/2021 18:42, Joe Perches wrote: > [...] > > - For instance: (head -10 of the git grep for file statics) > > > > drivers/accessibility/speakup/keyhelp.c:18:static u_short masks[] = { 32, > > 16, 8, 4, 2, 1 }; > >

Re: [Cocci] linux-kernel janitorial RFP: Mark static arrays as const

2021-03-02 Thread Julia Lawall
On Tue, 2 Mar 2021, Joe Perches wrote: > Here is a possible opportunity to reduce data usage in the kernel. Does it actually reduce data usage? julia > > $ git grep -P -n '^static\s+(?!const|struct)(?:\w+\s+){1,3}\w+\s*\[\s*\]' > drivers/ | \ > grep -v __initdata | \ > wc -l > 3250 > >

[PATCH] PM / devfreq: fix odd_ptr_err.cocci warnings (fwd)

2021-03-01 Thread Julia Lawall
, Julia Lawall Subject: [PATCH] PM / devfreq: fix odd_ptr_err.cocci warnings CC: kbuild-...@lists.01.org TO: Saravana Kannan CC: Chanwoo Choi CC: Sibi Sankar CC: MyungJoo Ham CC: Kyungmin Park CC: linux...@vger.kernel.org CC: linux-kernel@vger.kernel.org From: kernel test robot drivers/devfreq

  1   2   3   4   5   6   7   8   9   10   >