rbd: avoid format-security warning inside alloc_workqueue()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 12 Aug 2014 07:22:07 +0000 (11:22 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 10 Sep 2014 07:59:06 +0000 (11:59 +0400)
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>
drivers/block/rbd.c

index 623c84145b792b9ddaa852e45c2cdbf80b1f08d5..2cd01ca1b5b4f48984c0de25d06734367022b511 100644 (file)
@@ -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;