Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1675192 > unrolled thread

[PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl.

Started byQuytelda Kahja <quytelda@tamalin.org>
First post2017-06-27 01:40 +0200
Last post2017-06-27 22:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl. Quytelda Kahja <quytelda@tamalin.org> - 2017-06-27 01:40 +0200
    RE: [PATCH] Staging: visorbus: Fix coding style warning from  checkpatch.pl. "Kershner, David A" <David.Kershner@unisys.com> - 2017-06-27 22:40 +0200

#1675192 — [PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl.

FromQuytelda Kahja <quytelda@tamalin.org>
Date2017-06-27 01:40 +0200
Subject[PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl.
Message-ID<tWLLQ-wL-17@gated-at.bofh.it>
Replace the literal function name "create_bus_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 a692561c81c8..b6caa7a98692 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -1032,7 +1032,7 @@ create_bus_instance(struct visor_device *dev)
 err_debugfs_dir:
 	debugfs_remove_recursive(dev->debugfs_dir);
 	kfree(hdr_info);
-	dev_err(&dev->device, "create_bus_instance failed: %d\n", err);
+	dev_err(&dev->device, "%s failed: %d\n", __func__, err);
 	return err;
 }
 
-- 
2.13.2

[toc] | [next] | [standalone]


#1676158 — RE: [PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl.

From"Kershner, David A" <David.Kershner@unisys.com>
Date2017-06-27 22:40 +0200
SubjectRE: [PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl.
Message-ID<tX5rb-5FM-3@gated-at.bofh.it>
In reply to#1675192
> -----Original Message-----
> From: Quytelda Kahja [mailto:quytelda@tamalin.org]
> Sent: Monday, June 26, 2017 7:32 PM
> To: Kershner, David A <David.Kershner@unisys.com>;
> gregkh@linuxfoundation.org; Sell, Timothy C <Timothy.Sell@unisys.com>;
> Binder, David Anthony <David.Binder@unisys.com>
> Cc: devel@driverdev.osuosl.org; linux-kernel@vger.kernel.org; Quytelda
> Kahja <quytelda@tamalin.org>
> Subject: [PATCH] Staging: visorbus: Fix coding style warning from
> checkpatch.pl.
> 
> Replace the literal function name "create_bus_instance" with the format
> specifier "%s" so it can be dynamically filled by the __func__ macro.
> 
> Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>

I can't get this to apply to Greg's staging-next branch. It appears to be missing
at least patch: 

commit 9e78fd35d staging: unisys: visorbus: renamed functions like *_bus_instance 
			       to match driver namespace

Please update and send again. 

Thanks, 
David Kershner

> ---
>  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 a692561c81c8..b6caa7a98692 100644
> --- a/drivers/staging/unisys/visorbus/visorbus_main.c
> +++ b/drivers/staging/unisys/visorbus/visorbus_main.c
> @@ -1032,7 +1032,7 @@ create_bus_instance(struct visor_device *dev)
>  err_debugfs_dir:
>  	debugfs_remove_recursive(dev->debugfs_dir);
>  	kfree(hdr_info);
> -	dev_err(&dev->device, "create_bus_instance failed: %d\n", err);
> +	dev_err(&dev->device, "%s failed: %d\n", __func__, err);
>  	return err;
>  }
> 
> --
> 2.13.2

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web