Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'configfs-for-v6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/linux

Pull configfs updates from Andreas Hindborg:
"Two commits changing constness of the configfs vtable pointers. We
plan to follow up with changes at call sites down the road"

* tag 'configfs-for-v6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/linux:
configfs: Constify ct_item_ops in struct config_item_type
configfs: Constify ct_group_ops in struct config_item_type

+4 -4
+1 -1
fs/configfs/dir.c
··· 598 598 static int populate_attrs(struct config_item *item) 599 599 { 600 600 const struct config_item_type *t = item->ci_type; 601 - struct configfs_group_operations *ops; 601 + const struct configfs_group_operations *ops; 602 602 struct configfs_attribute *attr; 603 603 struct configfs_bin_attribute *bin_attr; 604 604 int error = 0;
+1 -1
fs/configfs/file.c
··· 30 30 size_t count; 31 31 loff_t pos; 32 32 char * page; 33 - struct configfs_item_operations * ops; 33 + const struct configfs_item_operations *ops; 34 34 struct mutex mutex; 35 35 int needs_read_fill; 36 36 bool read_in_progress;
+2 -2
include/linux/configfs.h
··· 64 64 65 65 struct config_item_type { 66 66 struct module *ct_owner; 67 - struct configfs_item_operations *ct_item_ops; 68 - struct configfs_group_operations *ct_group_ops; 67 + const struct configfs_item_operations *ct_item_ops; 68 + const struct configfs_group_operations *ct_group_ops; 69 69 struct configfs_attribute **ct_attrs; 70 70 struct configfs_bin_attribute **ct_bin_attrs; 71 71 };