diff mbox

[next] spi: loopback-test: make several module parameters static

Message ID 20170718124232.24644-1-colin.king@canonical.com (mailing list archive)
State Accepted
Commit 59a8831da31ebdabf82cac82bf01270d215bf149
Headers show

Commit Message

Colin King July 18, 2017, 12:42 p.m. UTC
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(-)

Comments

Mark Brown July 18, 2017, 1:09 p.m. UTC | #1
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.
Colin King July 18, 2017, 1:13 p.m. UTC | #2
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?
Mark Brown July 18, 2017, 1:27 p.m. UTC | #3
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!
diff mbox

Patch

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");