summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-01-25 18:11:19 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2015-01-30 22:06:22 +0100
commit45678b6b7891b8eef5b5951415287d1fa0ff71ad (patch)
treeb9e6e1c22d890d024f85b346868db00fc66f4ab9 /drivers/infiniband
parentiscsi-target: Move iscsi_target_[core,stat].h under linux include (diff)
downloadlinux-45678b6b7891b8eef5b5951415287d1fa0ff71ad.tar.xz
linux-45678b6b7891b8eef5b5951415287d1fa0ff71ad.zip
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 dafb3c531f96..29adca121238 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)");