From: Colin Ian King Date: Thu, 30 Nov 2017 13:30:06 +0000 (+0000) Subject: iw_cxgb4: make pointer reg_workq static X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~6071^2~223 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0cb65d421a2ad714d336e673d448184ea51bb66a;p=mirror_ubuntu-focal-kernel.git iw_cxgb4: make pointer reg_workq static 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? Fixes: 1c8f1da5d851 ("iw_cxgb4: Fix possible circular dependency locking warning") Signed-off-by: Colin Ian King Reviewed-by: Leon Romanovsky Reviewed-by: Steve Wise Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c index cbdf35ea0cbe..7a9d0de89d6a 100644 --- a/drivers/infiniband/hw/cxgb4/device.c +++ b/drivers/infiniband/hw/cxgb4/device.c @@ -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