mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
Andreas Hindborg
parent
f2f36500a6
commit
f7f7809869
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user