All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: gasket: gasket_sysfs.c: Fix multiple string split issue.
@ 2019-03-18 13:49 Sanjana Sanikommu
  2019-03-18 15:05 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Sanjana Sanikommu @ 2019-03-18 13:49 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel

Remove string " across the line.
Issue found by checkpatch.pl semantic patch results for gasket_sysfs.c

WARNING:quoted string split across line.

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
---
 drivers/staging/gasket/gasket_sysfs.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/gasket/gasket_sysfs.c b/drivers/staging/gasket/gasket_sysfs.c
index fc45f0d13e87..a2d67c28f530 100644
--- a/drivers/staging/gasket/gasket_sysfs.c
+++ b/drivers/staging/gasket/gasket_sysfs.c
@@ -223,8 +223,7 @@ int gasket_sysfs_create_entries(struct device *device,
 
 	if (!mapping) {
 		dev_dbg(device,
-			"Creating entries for device without first "
-			"initializing mapping\n");
+			"Creating entries for device without first initializing mapping\n");
 		return -EINVAL;
 	}
 
@@ -233,8 +232,7 @@ int gasket_sysfs_create_entries(struct device *device,
 		i++) {
 		if (mapping->attribute_count == GASKET_SYSFS_MAX_NODES) {
 			dev_err(device,
-				"Maximum number of sysfs nodes reached for "
-				"device\n");
+				"Maximum number of sysfs nodes reached for device\n");
 			mutex_unlock(&mapping->mutex);
 			put_mapping(mapping);
 			return -ENOMEM;
@@ -264,8 +262,7 @@ void gasket_sysfs_remove_mapping(struct device *device)
 
 	if (!mapping) {
 		dev_err(device,
-			"Attempted to remove non-existent sysfs mapping to "
-			"device\n");
+			"Attempted to remove non-existent sysfs mapping to device\n");
 		return;
 	}
 
-- 
2.17.1



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

* Re: [Outreachy kernel] [PATCH] Staging: gasket: gasket_sysfs.c: Fix multiple string split issue.
  2019-03-18 13:49 [PATCH] Staging: gasket: gasket_sysfs.c: Fix multiple string split issue Sanjana Sanikommu
@ 2019-03-18 15:05 ` Julia Lawall
  2019-03-18 16:11   ` sanjana99reddy99
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2019-03-18 15:05 UTC (permalink / raw)
  To: Sanjana Sanikommu; +Cc: gregkh, outreachy-kernel

The subject line is not correct.  You need to see what other people have
done to describe the affected files, using git log --oneline, rather than
making something up yourself.

On Mon, 18 Mar 2019, Sanjana Sanikommu wrote:

> Remove string " across the line.

The change looks ok, but the message is not understandable.  You don't
remove anything.  Everything that was in the code before is still there.

This could be "Concatenate a multi-line string constant into a single
line".

> Issue found by checkpatch.pl semantic patch results for gasket_sysfs.c

Just "Issue found by checkpatch" would be fine.  Check patch is a tool
that runs a bunch of perl regular expressions.  There are no semantic
patches involved.  And it is not necessary to mention the file name.  That
is apparent just below.

julia

>
> WARNING:quoted string split across line.
>
> Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
> ---
>  drivers/staging/gasket/gasket_sysfs.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/gasket/gasket_sysfs.c b/drivers/staging/gasket/gasket_sysfs.c
> index fc45f0d13e87..a2d67c28f530 100644
> --- a/drivers/staging/gasket/gasket_sysfs.c
> +++ b/drivers/staging/gasket/gasket_sysfs.c
> @@ -223,8 +223,7 @@ int gasket_sysfs_create_entries(struct device *device,
>
>  	if (!mapping) {
>  		dev_dbg(device,
> -			"Creating entries for device without first "
> -			"initializing mapping\n");
> +			"Creating entries for device without first initializing mapping\n");
>  		return -EINVAL;
>  	}
>
> @@ -233,8 +232,7 @@ int gasket_sysfs_create_entries(struct device *device,
>  		i++) {
>  		if (mapping->attribute_count == GASKET_SYSFS_MAX_NODES) {
>  			dev_err(device,
> -				"Maximum number of sysfs nodes reached for "
> -				"device\n");
> +				"Maximum number of sysfs nodes reached for device\n");
>  			mutex_unlock(&mapping->mutex);
>  			put_mapping(mapping);
>  			return -ENOMEM;
> @@ -264,8 +262,7 @@ void gasket_sysfs_remove_mapping(struct device *device)
>
>  	if (!mapping) {
>  		dev_err(device,
> -			"Attempted to remove non-existent sysfs mapping to "
> -			"device\n");
> +			"Attempted to remove non-existent sysfs mapping to device\n");
>  		return;
>  	}
>
> --
> 2.17.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190318134950.14056-1-sanjana99reddy99%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


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

* Re: [Outreachy kernel] [PATCH] Staging: gasket: gasket_sysfs.c: Fix multiple string split issue.
  2019-03-18 15:05 ` [Outreachy kernel] " Julia Lawall
@ 2019-03-18 16:11   ` sanjana99reddy99
  0 siblings, 0 replies; 3+ messages in thread
From: sanjana99reddy99 @ 2019-03-18 16:11 UTC (permalink / raw)
  To: outreachy-kernel


[-- Attachment #1.1: Type: text/plain, Size: 68 bytes --]


>
> I would change the log and subject line :)

Thanks 

Sanjana
 

[-- Attachment #1.2: Type: text/html, Size: 257 bytes --]

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

end of thread, other threads:[~2019-03-18 16:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 13:49 [PATCH] Staging: gasket: gasket_sysfs.c: Fix multiple string split issue Sanjana Sanikommu
2019-03-18 15:05 ` [Outreachy kernel] " Julia Lawall
2019-03-18 16:11   ` sanjana99reddy99

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.