summaryrefslogtreecommitdiff
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-08-12 11:22:07 +0400
committerIlya Dryomov <ilya.dryomov@inktank.com>2014-09-10 11:59:06 +0400
commit58d1362b50dc87ebf18cd137e7a879fd99b7e721 (patch)
treea54953752ab81856c60042bfe7d6fd697c8a03ac /drivers/block/rbd.c
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd (diff)
downloadlwn-58d1362b50dc87ebf18cd137e7a879fd99b7e721.tar.gz
lwn-58d1362b50dc87ebf18cd137e7a879fd99b7e721.zip
rbd: avoid format-security warning inside alloc_workqueue()
drivers/block/rbd.c: In function ‘rbd_dev_device_setup’: drivers/block/rbd.c:5090:19: warning: format not a string literal and no format arguments [-Wformat-security] Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 623c84145b79..2cd01ca1b5b4 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -5087,7 +5087,7 @@ static int rbd_dev_device_setup(struct rbd_device *rbd_dev)
set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE);
set_disk_ro(rbd_dev->disk, rbd_dev->mapping.read_only);
- rbd_dev->rq_wq = alloc_workqueue(rbd_dev->disk->disk_name, 0, 0);
+ rbd_dev->rq_wq = alloc_workqueue("%s", 0, 0, rbd_dev->disk->disk_name);
if (!rbd_dev->rq_wq)
goto err_out_mapping;