Skip to contentSkip to conversation

iw_cxgb4: make pointer reg_workq static

PATCH Applied Colin King 4 participants 4 messages Nov 30, 2017 – Dec 13, 2017

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 iw_cxgb4: make pointer reg_workq static

From: Colin Ian King <[email protected]>

The pointer reg_workq is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
drivers/infiniband/hw/cxgb4/device.c:69:25: warning: symbol 'reg_workq' was not declared. Should it be static?

---
 drivers/infiniband/hw/cxgb4/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/device.c +1 -1
index af77d128d242..91cbe3aae32e 100644
@@ -66,7 +66,7 @@ MODULE_PARM_DESC(c4iw_wr_log_size_order,
 
 static LIST_HEAD(uld_ctx_list);
 static DEFINE_MUTEX(dev_mutex);
-struct workqueue_struct *reg_workq;
+static struct workqueue_struct *reg_workq;
 
 #define DB_FC_RESUME_SIZE 64
 #define DB_FC_RESUME_DELAY 1
Signature · 1 line
2.14.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Colin King

From: Colin Ian King <[email protected]>

The pointer reg_workq is local to the source and does not need to be in global scope, so make it static.

Quoted 9 lines

Cleans up sparse warning:
drivers/infiniband/hw/cxgb4/device.c:69:25: warning: symbol 'reg_workq' was not declared. Should it be static?

---
 drivers/infiniband/hw/cxgb4/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks,

Reviewed-by on v1 1/1
#2 lore raw
In reply to Colin King
Quoted 11 lines

From: Colin Ian King <[email protected]>

The pointer reg_workq is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
drivers/infiniband/hw/cxgb4/device.c:69:25: warning: symbol 'reg_workq' was not declared. Should it be static?

Looks correct. This fixes a recent commit.

Fixes 1c8f1da5d851 ("iw_cxgb4: Fix possible circular dependency locking warning")

Thanks,

Steve.

#3 lore raw
In reply to Colin King
Quoted 9 lines · Colin Ian King

From: Colin Ian King <[email protected]>

The pointer reg_workq is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
drivers/infiniband/hw/cxgb4/device.c:69:25: warning: symbol 'reg_workq' was not declared. Should it be static?

Quoted 5 lines
 drivers/infiniband/hw/cxgb4/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to -next

Jason