diff options
Diffstat (limited to 'include/block.h')
-rw-r--r-- | include/block.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/block.h b/include/block.h index 1fb40e942f..8740a03d36 100644 --- a/include/block.h +++ b/include/block.h @@ -50,9 +50,9 @@ static inline int block_flush(struct block_device *blk) } #ifdef CONFIG_BLOCK -struct block_device *cdev_get_block_device(struct cdev *cdev); +struct block_device *cdev_get_block_device(const struct cdev *cdev); #else -static inline struct block_device *cdev_get_block_device(struct cdev *cdev) +static inline struct block_device *cdev_get_block_device(const struct cdev *cdev) { return NULL; } |