summaryrefslogtreecommitdiff
path: root/fs/configfs/file.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2025-10-25 13:15:38 +0200
committerAndreas Hindborg <a.hindborg@kernel.org>2025-11-27 12:03:27 +0100
commitf7f78098690d60a03b47942ac7d73ea17b42239e (patch)
treee61d14e8171edfc4d3e82eed97b54440b210de2a /fs/configfs/file.c
parentf2f36500a63b73a8be90127322ad740253cf89c0 (diff)
configfs: Constify ct_item_ops in struct config_item_type
Make 'ct_item_ops' const in struct config_item_type. This allows constification of many structures which hold some function pointers. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Breno Leitao <leitao@debian.org> Link: https://lore.kernel.org/r/f43cb57418a7f59e883be8eedc7d6abe802a2094.1761390472.git.christophe.jaillet@wanadoo.fr Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'fs/configfs/file.c')
-rw-r--r--fs/configfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/configfs/file.c b/fs/configfs/file.c
index 0ad32150611e..affe4742bbb5 100644
--- a/fs/configfs/file.c
+++ b/fs/configfs/file.c
@@ -30,7 +30,7 @@ struct configfs_buffer {
size_t count;
loff_t pos;
char * page;
- struct configfs_item_operations * ops;
+ const struct configfs_item_operations *ops;
struct mutex mutex;
int needs_read_fill;
bool read_in_progress;