summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-01-25 19:11:19 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-01-30 13:06:22 -0800
commit45678b6b7891b8eef5b5951415287d1fa0ff71ad (patch)
treeb9e6e1c22d890d024f85b346868db00fc66f4ab9 /drivers/infiniband
parent67f091f290d055441db28045703d9b075a2ae051 (diff)
downloadop-kernel-dev-45678b6b7891b8eef5b5951415287d1fa0ff71ad.zip
op-kernel-dev-45678b6b7891b8eef5b5951415287d1fa0ff71ad.tar.gz
iser-target: Fix sparse warning
isert_debug_level should be static, hence no need to initialize it. Reported-by: Shachar Raindel <raindel@mellanox.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index dafb3c5..29adca1 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -38,7 +38,7 @@
#define ISER_MAX_CQ_LEN (ISER_MAX_RX_CQ_LEN + ISER_MAX_TX_CQ_LEN + \
ISERT_MAX_CONN)
-int isert_debug_level = 0;
+static int isert_debug_level;
module_param_named(debug_level, isert_debug_level, int, 0644);
MODULE_PARM_DESC(debug_level, "Enable debug tracing if > 0 (default:0)");
OpenPOWER on IntegriCloud