public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl.
@ 2017-06-28  2:49 Quytelda Kahja
  2017-06-28  8:29 ` Frans Klaver
  2017-06-29 14:30 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Quytelda Kahja @ 2017-06-28  2:49 UTC (permalink / raw)
  To: david.kershner, gregkh; +Cc: devel, linux-kernel, Quytelda Kahja

Replace the literal function name "visorbus_create_instance" with the format
specifier "%s" so it can be dynamically filled by the __func__ macro.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
---
 drivers/staging/unisys/visorbus/visorbus_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index 1c785dd19ddd..1c6dc3a3e64a 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -1030,7 +1030,7 @@ visorbus_create_instance(struct visor_device *dev)
 err_debugfs_dir:
 	debugfs_remove_recursive(dev->debugfs_dir);
 	kfree(hdr_info);
-	dev_err(&dev->device, "visorbus_create_instance failed: %d\n", err);
+	dev_err(&dev->device, "%s failed: %d\n", __func__, err);
 	return err;
 }
 
-- 
2.13.2

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

* Re: [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl.
  2017-06-28  2:49 [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl Quytelda Kahja
@ 2017-06-28  8:29 ` Frans Klaver
  2017-06-29 14:30 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Frans Klaver @ 2017-06-28  8:29 UTC (permalink / raw)
  To: Quytelda Kahja
  Cc: david.kershner, Greg KH, driverdevel,
	linux-kernel@vger.kernel.org

Hi,

On Wed, Jun 28, 2017 at 4:49 AM, Quytelda Kahja <quytelda@tamalin.org> wrote:
> Replace the literal function name "visorbus_create_instance" with the format
> specifier "%s" so it can be dynamically filled by the __func__ macro.

On a general note, I think the actual change or effect is more import
to mention in the subject than the fact that you "fix some issue
highlighted by checkpatch".

Something like

Subject: [PATCH] staging: unisys: visorbus: use __func__ instead of
function name

Of course you can still mention that checkpatch highlighted the issue
for you in the description.

>
> Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
> ---
>  drivers/staging/unisys/visorbus/visorbus_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
> index 1c785dd19ddd..1c6dc3a3e64a 100644
> --- a/drivers/staging/unisys/visorbus/visorbus_main.c
> +++ b/drivers/staging/unisys/visorbus/visorbus_main.c
> @@ -1030,7 +1030,7 @@ visorbus_create_instance(struct visor_device *dev)
>  err_debugfs_dir:
>         debugfs_remove_recursive(dev->debugfs_dir);
>         kfree(hdr_info);
> -       dev_err(&dev->device, "visorbus_create_instance failed: %d\n", err);
> +       dev_err(&dev->device, "%s failed: %d\n", __func__, err);
>         return err;
>  }

It looks sane, anyway.

Frans

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

* Re: [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl.
  2017-06-28  2:49 [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl Quytelda Kahja
  2017-06-28  8:29 ` Frans Klaver
@ 2017-06-29 14:30 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2017-06-29 14:30 UTC (permalink / raw)
  To: Quytelda Kahja; +Cc: david.kershner, devel, linux-kernel

On Tue, Jun 27, 2017 at 07:49:05PM -0700, Quytelda Kahja wrote:
> Replace the literal function name "visorbus_create_instance" with the format
> specifier "%s" so it can be dynamically filled by the __func__ macro.
> 
> Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
> ---
>  drivers/staging/unisys/visorbus/visorbus_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

When you make a new version of a patch, always correctly version it, as
the documentation tells you to do.

Please fix that up here and resend.

thanks,

greg k-h

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

end of thread, other threads:[~2017-06-29 14:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-28  2:49 [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl Quytelda Kahja
2017-06-28  8:29 ` Frans Klaver
2017-06-29 14:30 ` Greg KH

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