summaryrefslogtreecommitdiff
path: root/block/elevator.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-01-02 13:01:31 +0100
committerJens Axboe <axboe@kernel.dk>2025-01-02 13:20:29 -0700
commit044792cda05a97ae1da330771ec2140ae86439ec (patch)
tree6b5164e64d2eedacc610d1a03a4061b08511d6a3 /block/elevator.h
parentcb01ecb79943367f9903b1f1ffb4afb6a3f4d715 (diff)
downloadlinux-044792cda05a97ae1da330771ec2140ae86439ec.tar.gz
linux-044792cda05a97ae1da330771ec2140ae86439ec.tar.bz2
linux-044792cda05a97ae1da330771ec2140ae86439ec.zip
elevator: Enable const sysfs attributes
The elevator core does not need to modify the sysfs attributes added by the elevators. Reflect this in the types, so the attributes can be moved into read-only memory. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20250102-sysfs-const-attr-elevator-v1-1-9837d2058c60@weissschuh.net Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/elevator.h')
-rw-r--r--block/elevator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/elevator.h b/block/elevator.h
index dbf357ef4fab..e526662c5dbb 100644
--- a/block/elevator.h
+++ b/block/elevator.h
@@ -71,7 +71,7 @@ struct elevator_type
size_t icq_size; /* see iocontext.h */
size_t icq_align; /* ditto */
- struct elv_fs_entry *elevator_attrs;
+ const struct elv_fs_entry *elevator_attrs;
const char *elevator_name;
const char *elevator_alias;
struct module *elevator_owner;