* [PATCH][next] spi: loopback-test: make several module parameters static
@ 2017-07-18 12:42 Colin King
[not found] ` <20170718124232.24644-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2017-07-18 13:49 ` Applied "spi: loopback-test: make several module parameters static" to the spi tree Mark Brown
0 siblings, 2 replies; 5+ messages in thread
From: Colin King @ 2017-07-18 12:42 UTC (permalink / raw)
To: Mark Brown, linux-spi; +Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
Several module parameters are local to the source, so make them
static. Cleans up several sparse warnings such as:
"symbol 'loop_req' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/spi/spi-loopback-test.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index 0d3c56e2526c..64a1e6f212c1 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -32,45 +32,45 @@
#include "spi-test.h"
/* flag to only simulate transfers */
-int simulate_only;
+static int simulate_only;
module_param(simulate_only, int, 0);
MODULE_PARM_DESC(simulate_only, "if not 0 do not execute the spi message");
/* dump spi messages */
-int dump_messages;
+static int dump_messages;
module_param(dump_messages, int, 0);
MODULE_PARM_DESC(dump_messages,
"=1 dump the basic spi_message_structure, " \
"=2 dump the spi_message_structure including data, " \
"=3 dump the spi_message structure before and after execution");
/* the device is jumpered for loopback - enabling some rx_buf tests */
-int loopback;
+static int loopback;
module_param(loopback, int, 0);
MODULE_PARM_DESC(loopback,
"if set enable loopback mode, where the rx_buf " \
"is checked to match tx_buf after the spi_message " \
"is executed");
-int loop_req;
+static int loop_req;
module_param(loop_req, int, 0);
MODULE_PARM_DESC(loop_req,
"if set controller will be asked to enable test loop mode. " \
"If controller supported it, MISO and MOSI will be connected");
/* run only a specific test */
-int run_only_test = -1;
+static int run_only_test = -1;
module_param(run_only_test, int, 0);
MODULE_PARM_DESC(run_only_test,
"only run the test with this number (0-based !)");
/* use vmalloc'ed buffers */
-int use_vmalloc;
+static int use_vmalloc;
module_param(use_vmalloc, int, 0644);
MODULE_PARM_DESC(use_vmalloc,
"use vmalloc'ed buffers instead of kmalloc'ed");
/* check rx ranges */
-int check_ranges = 1;
+static int check_ranges = 1;
module_param(check_ranges, int, 0644);
MODULE_PARM_DESC(check_ranges,
"checks rx_buffer pattern are valid");
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH][next] spi: loopback-test: make several module parameters static
[not found] ` <20170718124232.24644-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2017-07-18 13:09 ` Mark Brown
2017-07-18 13:13 ` Colin Ian King
0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2017-07-18 13:09 UTC (permalink / raw)
To: Colin King
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
On Tue, Jul 18, 2017 at 01:42:32PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
It would be very helpful if you could ensure your commit author and
e-mail From: line up so that git doesn't make your patches look like
non-author signoffs.
The [next] isn't needed in the subject line either, it just makes more
of the subject line get hidden.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH][next] spi: loopback-test: make several module parameters static
2017-07-18 13:09 ` Mark Brown
@ 2017-07-18 13:13 ` Colin Ian King
[not found] ` <362dce57-c28b-3258-7411-1c0724545c3f-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Colin Ian King @ 2017-07-18 13:13 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-spi, kernel-janitors, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 488 bytes --]
On 18/07/17 14:09, Mark Brown wrote:
> On Tue, Jul 18, 2017 at 01:42:32PM +0100, Colin King wrote:
>> From: Colin Ian King <colin.king@canonical.com>
>
> It would be very helpful if you could ensure your commit author and
> e-mail From: line up so that git doesn't make your patches look like
> non-author signoffs.
>
> The [next] isn't needed in the subject line either, it just makes more
> of the subject line get hidden.
>
ACK, will do. Want me to resend this patch?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 837 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH][next] spi: loopback-test: make several module parameters static
[not found] ` <362dce57-c28b-3258-7411-1c0724545c3f-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2017-07-18 13:27 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2017-07-18 13:27 UTC (permalink / raw)
To: Colin Ian King
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
On Tue, Jul 18, 2017 at 02:13:35PM +0100, Colin Ian King wrote:
> On 18/07/17 14:09, Mark Brown wrote:
> > It would be very helpful if you could ensure your commit author and
> > e-mail From: line up so that git doesn't make your patches look like
> > non-author signoffs.
> ACK, will do. Want me to resend this patch?
No, it's fine - I've already applied it. Thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Applied "spi: loopback-test: make several module parameters static" to the spi tree
2017-07-18 12:42 [PATCH][next] spi: loopback-test: make several module parameters static Colin King
[not found] ` <20170718124232.24644-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2017-07-18 13:49 ` Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2017-07-18 13:49 UTC (permalink / raw)
To: Colin Ian King
Cc: Mark Brown, Mark Brown, linux-spi, kernel-janitors, linux-kernel,
linux-spi
The patch
spi: loopback-test: make several module parameters static
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 59a8831da31ebdabf82cac82bf01270d215bf149 Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Tue, 18 Jul 2017 13:42:32 +0100
Subject: [PATCH] spi: loopback-test: make several module parameters static
Several module parameters are local to the source, so make them
static. Cleans up several sparse warnings such as:
"symbol 'loop_req' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/spi/spi-loopback-test.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index 0d3c56e2526c..64a1e6f212c1 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -32,45 +32,45 @@
#include "spi-test.h"
/* flag to only simulate transfers */
-int simulate_only;
+static int simulate_only;
module_param(simulate_only, int, 0);
MODULE_PARM_DESC(simulate_only, "if not 0 do not execute the spi message");
/* dump spi messages */
-int dump_messages;
+static int dump_messages;
module_param(dump_messages, int, 0);
MODULE_PARM_DESC(dump_messages,
"=1 dump the basic spi_message_structure, " \
"=2 dump the spi_message_structure including data, " \
"=3 dump the spi_message structure before and after execution");
/* the device is jumpered for loopback - enabling some rx_buf tests */
-int loopback;
+static int loopback;
module_param(loopback, int, 0);
MODULE_PARM_DESC(loopback,
"if set enable loopback mode, where the rx_buf " \
"is checked to match tx_buf after the spi_message " \
"is executed");
-int loop_req;
+static int loop_req;
module_param(loop_req, int, 0);
MODULE_PARM_DESC(loop_req,
"if set controller will be asked to enable test loop mode. " \
"If controller supported it, MISO and MOSI will be connected");
/* run only a specific test */
-int run_only_test = -1;
+static int run_only_test = -1;
module_param(run_only_test, int, 0);
MODULE_PARM_DESC(run_only_test,
"only run the test with this number (0-based !)");
/* use vmalloc'ed buffers */
-int use_vmalloc;
+static int use_vmalloc;
module_param(use_vmalloc, int, 0644);
MODULE_PARM_DESC(use_vmalloc,
"use vmalloc'ed buffers instead of kmalloc'ed");
/* check rx ranges */
-int check_ranges = 1;
+static int check_ranges = 1;
module_param(check_ranges, int, 0644);
MODULE_PARM_DESC(check_ranges,
"checks rx_buffer pattern are valid");
--
2.13.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-18 13:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 12:42 [PATCH][next] spi: loopback-test: make several module parameters static Colin King
[not found] ` <20170718124232.24644-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2017-07-18 13:09 ` Mark Brown
2017-07-18 13:13 ` Colin Ian King
[not found] ` <362dce57-c28b-3258-7411-1c0724545c3f-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2017-07-18 13:27 ` Mark Brown
2017-07-18 13:49 ` Applied "spi: loopback-test: make several module parameters static" to the spi tree Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).