summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-02-11 07:44:38 +0100
committerIlya Dryomov <idryomov@gmail.com>2017-02-20 13:06:02 +0100
commitb9942bc9d3c70d359496a1a0afc528d4ab89be46 (patch)
tree9e73d944b4e7d6c5ea860ded6148c5a077bb86a6 /drivers/block
parentrbd: kill obj_request->object_name and rbd_segment_name_cache (diff)
downloadlinux-b9942bc9d3c70d359496a1a0afc528d4ab89be46.tar.xz
linux-b9942bc9d3c70d359496a1a0afc528d4ab89be46.zip
rbd: constify device_type structure
Declare device_type structure as const as it is only stored in the type field of a device structure. This field is of type const, so add const to the declaration of device_type structure. File size before: text data bss dec hex filename 61546 11610 208 73364 11e94 drivers/block/rbd.o File size after: text data bss dec hex filename 61610 11578 208 73396 11eb4 drivers/block/rbd.o Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block')
-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 b6e269b4d534..ffb8d3afc6b4 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -4630,7 +4630,7 @@ static const struct attribute_group *rbd_attr_groups[] = {
static void rbd_dev_release(struct device *dev);
-static struct device_type rbd_device_type = {
+static const struct device_type rbd_device_type = {
.name = "rbd",
.groups = rbd_attr_groups,
.release = rbd_dev_release,