public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: Add blank line after struct declaration
@ 2024-03-10  5:37 Dorine Tipo
  2024-03-10 10:47 ` [PATCH v2] " Dorine Tipo
  2024-03-11 23:04 ` [PATCH] " Alison Schofield
  0 siblings, 2 replies; 4+ messages in thread
From: Dorine Tipo @ 2024-03-10  5:37 UTC (permalink / raw)
  To: gregkh, pure.logic, johan, linux-staging, outreachy; +Cc: Dorine Tipo

Add a blank line after the loopback_class struct declaration to silence
checkpatch warning Please use a blank line after
function/struct/union/enum declarations.

Signed-off-by: Dorine Tipo <dorine.a.tipo@gmail.com>
---
 drivers/staging/greybus/loopback.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index bb33379b5297..4313d3bbc23a 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -101,6 +101,7 @@ struct gb_loopback {
 static struct class loopback_class = {
 	.name		= "gb_loopback",
 };
+
 static DEFINE_IDA(loopback_ida);

 /* Min/max values in jiffies */
--
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2] staging: greybus: Add blank line after struct declaration
  2024-03-10  5:37 [PATCH] staging: greybus: Add blank line after struct declaration Dorine Tipo
@ 2024-03-10 10:47 ` Dorine Tipo
  2024-03-10 11:41   ` Julia Lawall
  2024-03-11 23:04 ` [PATCH] " Alison Schofield
  1 sibling, 1 reply; 4+ messages in thread
From: Dorine Tipo @ 2024-03-10 10:47 UTC (permalink / raw)
  To: gregkh, pure.logic, johan, linux-staging, outreachy; +Cc: Dorine Tipo

Add a blank line after the loopback_class struct declaration to improve
code readability and adherence to coding style guidelines

Signed-off-by: Dorine Tipo <dorine.a.tipo@gmail.com>
---
Changes in v2:
  - Make the commit message clearer

 drivers/staging/greybus/loopback.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index bb33379b5297..4313d3bbc23a 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -101,6 +101,7 @@ struct gb_loopback {
 static struct class loopback_class = {
 	.name		= "gb_loopback",
 };
+
 static DEFINE_IDA(loopback_ida);

 /* Min/max values in jiffies */
--
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] staging: greybus: Add blank line after struct declaration
  2024-03-10 10:47 ` [PATCH v2] " Dorine Tipo
@ 2024-03-10 11:41   ` Julia Lawall
  0 siblings, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2024-03-10 11:41 UTC (permalink / raw)
  To: Dorine Tipo; +Cc: gregkh, pure.logic, johan, linux-staging, outreachy



On Sun, 10 Mar 2024, Dorine Tipo wrote:

> Add a blank line after the loopback_class struct declaration to improve
> code readability and adherence to coding style guidelines
>
> Signed-off-by: Dorine Tipo <dorine.a.tipo@gmail.com>

Acked-by: Julia Lawall <julia.lawall@inria.fr>

> ---
> Changes in v2:
>   - Make the commit message clearer
>
>  drivers/staging/greybus/loopback.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
> index bb33379b5297..4313d3bbc23a 100644
> --- a/drivers/staging/greybus/loopback.c
> +++ b/drivers/staging/greybus/loopback.c
> @@ -101,6 +101,7 @@ struct gb_loopback {
>  static struct class loopback_class = {
>  	.name		= "gb_loopback",
>  };
> +
>  static DEFINE_IDA(loopback_ida);
>
>  /* Min/max values in jiffies */
> --
> 2.25.1
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: greybus: Add blank line after struct declaration
  2024-03-10  5:37 [PATCH] staging: greybus: Add blank line after struct declaration Dorine Tipo
  2024-03-10 10:47 ` [PATCH v2] " Dorine Tipo
@ 2024-03-11 23:04 ` Alison Schofield
  1 sibling, 0 replies; 4+ messages in thread
From: Alison Schofield @ 2024-03-11 23:04 UTC (permalink / raw)
  To: Dorine Tipo; +Cc: gregkh, pure.logic, johan, linux-staging, outreachy

On Sun, Mar 10, 2024 at 05:37:18AM +0000, Dorine Tipo wrote:
> Add a blank line after the loopback_class struct declaration to silence
> checkpatch warning Please use a blank line after

Hi Dorine,

I think you have a few patches posted where using a similar
phrase '...to silence checkpatch warning'. 

The phrase is awkward because we never have a goal of silencing
any warnings.  We 'address' them. This checkpatch warning is
reporting something that does not adhere to the kernel coding
style. So, more fitting to say - "...to adhere to the kernel
coding style."  Adding 'Issue found using checkpatch' or 
the actual checkpatch warnging is commonly added.

When you are addressing checkpatch warnings, you can bet you 
are not the first one to address it. So, you can search on
previous commit messages and see what was well received, and
if you search on Lore history, you can also see what was not
well received. The Outreachy mailing list is a treasure trove
of checkpatch commits. 

This, linked in the First Patch Tutorial, is helpful -
https://kernelnewbies.org/PatchPhilosophy

- Alison


> function/struct/union/enum declarations.
> 
> Signed-off-by: Dorine Tipo <dorine.a.tipo@gmail.com>
> ---
>  drivers/staging/greybus/loopback.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
> index bb33379b5297..4313d3bbc23a 100644
> --- a/drivers/staging/greybus/loopback.c
> +++ b/drivers/staging/greybus/loopback.c
> @@ -101,6 +101,7 @@ struct gb_loopback {
>  static struct class loopback_class = {
>  	.name		= "gb_loopback",
>  };
> +
>  static DEFINE_IDA(loopback_ida);
> 
>  /* Min/max values in jiffies */
> --
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-11 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-10  5:37 [PATCH] staging: greybus: Add blank line after struct declaration Dorine Tipo
2024-03-10 10:47 ` [PATCH v2] " Dorine Tipo
2024-03-10 11:41   ` Julia Lawall
2024-03-11 23:04 ` [PATCH] " Alison Schofield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox