]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: constify device_type structure
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 11 Feb 2017 06:44:38 +0000 (12:14 +0530)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 12:06:02 +0000 (13:06 +0100)
commit13aa0423faf7e0e1e0f3a5497d4a89a8bedd510e
tree9e73d944b4e7d6c5ea860ded6148c5a077bb86a6
parent27a3f2f9c110a5c315edff25a4ad01cb562ee7d4
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>
drivers/block/rbd.c