summaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-05-30 19:09:58 +0200
committerJens Axboe <axboe@kernel.dk>2023-05-30 11:12:43 -0600
commitcdb37f73cf05631c4f7401f2cd99878733c0c3d9 (patch)
tree17fbebaad45715241074a5a8323bad520db60d74 /include/linux/blkdev.h
parent539050f92ea7666bca17c2c380d8071d2f93dcde (diff)
downloadlinux-stable-cdb37f73cf05631c4f7401f2cd99878733c0c3d9.tar.gz
linux-stable-cdb37f73cf05631c4f7401f2cd99878733c0c3d9.tar.bz2
linux-stable-cdb37f73cf05631c4f7401f2cd99878733c0c3d9.zip
block: constify struct part_type part_type
The struct is never modified so it can be const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20230419-const-partition-v3-2-4e14e48be367@weissschuh.net Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index b2ac587e3402..d89c2da14698 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -41,7 +41,7 @@ struct blk_stat_callback;
struct blk_crypto_profile;
extern const struct device_type disk_type;
-extern struct device_type part_type;
+extern const struct device_type part_type;
extern struct class block_class;
/*