diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:44:04 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:44:04 -0500 |
| commit | abc36be236358162202e86ad88616ff95a755101 (patch) | |
| tree | cbb14c01e837fa2c82fb271337e333a5e393b850 /include/linux | |
| parent | f14fc0ccee5521e5b38cdd1df4385d32c6e1805b (diff) | |
| parent | 6ace4f6bbcfde70278a33c11443ecda3ed0ec1b6 (diff) | |
Merge tag 'configfs-for-4.15' of git://git.infradead.org/users/hch/configfs
Pull configfs updates from Christoph Hellwig:
"A couple of configfs cleanups:
- proper use of the bool type (Thomas Meyer)
- constification of struct config_item_type (Bhumika Goyal)"
* tag 'configfs-for-4.15' of git://git.infradead.org/users/hch/configfs:
RDMA/cma: make config_item_type const
stm class: make config_item_type const
ACPI: configfs: make config_item_type const
nvmet: make config_item_type const
usb: gadget: configfs: make config_item_type const
PCI: endpoint: make config_item_type const
iio: make function argument and some structures const
usb: gadget: make config_item_type structures const
dlm: make config_item_type const
netconsole: make config_item_type const
nullb: make config_item_type const
ocfs2/cluster: make config_item_type const
target: make config_item_type const
configfs: make ci_type field, some pointers and function arguments const
configfs: make config_item_type const
configfs: Fix bool initialization/comparison
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/configfs.h | 8 | ||||
| -rw-r--r-- | include/linux/iio/sw_device.h | 2 | ||||
| -rw-r--r-- | include/linux/iio/sw_trigger.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/configfs.h b/include/linux/configfs.h index c96709049683..90b90f8baf99 100644 --- a/include/linux/configfs.h +++ b/include/linux/configfs.h | |||
| @@ -58,7 +58,7 @@ struct config_item { | |||
| 58 | struct list_head ci_entry; | 58 | struct list_head ci_entry; |
| 59 | struct config_item *ci_parent; | 59 | struct config_item *ci_parent; |
| 60 | struct config_group *ci_group; | 60 | struct config_group *ci_group; |
| 61 | struct config_item_type *ci_type; | 61 | const struct config_item_type *ci_type; |
| 62 | struct dentry *ci_dentry; | 62 | struct dentry *ci_dentry; |
| 63 | }; | 63 | }; |
| 64 | 64 | ||
| @@ -72,7 +72,7 @@ static inline char *config_item_name(struct config_item * item) | |||
| 72 | 72 | ||
| 73 | extern void config_item_init_type_name(struct config_item *item, | 73 | extern void config_item_init_type_name(struct config_item *item, |
| 74 | const char *name, | 74 | const char *name, |
| 75 | struct config_item_type *type); | 75 | const struct config_item_type *type); |
| 76 | 76 | ||
| 77 | extern struct config_item *config_item_get(struct config_item *); | 77 | extern struct config_item *config_item_get(struct config_item *); |
| 78 | extern struct config_item *config_item_get_unless_zero(struct config_item *); | 78 | extern struct config_item *config_item_get_unless_zero(struct config_item *); |
| @@ -101,7 +101,7 @@ struct config_group { | |||
| 101 | extern void config_group_init(struct config_group *group); | 101 | extern void config_group_init(struct config_group *group); |
| 102 | extern void config_group_init_type_name(struct config_group *group, | 102 | extern void config_group_init_type_name(struct config_group *group, |
| 103 | const char *name, | 103 | const char *name, |
| 104 | struct config_item_type *type); | 104 | const struct config_item_type *type); |
| 105 | 105 | ||
| 106 | static inline struct config_group *to_config_group(struct config_item *item) | 106 | static inline struct config_group *to_config_group(struct config_item *item) |
| 107 | { | 107 | { |
| @@ -261,7 +261,7 @@ void configfs_remove_default_groups(struct config_group *group); | |||
| 261 | struct config_group * | 261 | struct config_group * |
| 262 | configfs_register_default_group(struct config_group *parent_group, | 262 | configfs_register_default_group(struct config_group *parent_group, |
| 263 | const char *name, | 263 | const char *name, |
| 264 | struct config_item_type *item_type); | 264 | const struct config_item_type *item_type); |
| 265 | void configfs_unregister_default_group(struct config_group *group); | 265 | void configfs_unregister_default_group(struct config_group *group); |
| 266 | 266 | ||
| 267 | /* These functions can sleep and can alloc with GFP_KERNEL */ | 267 | /* These functions can sleep and can alloc with GFP_KERNEL */ |
diff --git a/include/linux/iio/sw_device.h b/include/linux/iio/sw_device.h index fa7931933067..8642b91a7577 100644 --- a/include/linux/iio/sw_device.h +++ b/include/linux/iio/sw_device.h | |||
| @@ -60,7 +60,7 @@ void iio_sw_device_type_configfs_unregister(struct iio_sw_device_type *dt); | |||
| 60 | static inline | 60 | static inline |
| 61 | void iio_swd_group_init_type_name(struct iio_sw_device *d, | 61 | void iio_swd_group_init_type_name(struct iio_sw_device *d, |
| 62 | const char *name, | 62 | const char *name, |
| 63 | struct config_item_type *type) | 63 | const struct config_item_type *type) |
| 64 | { | 64 | { |
| 65 | #if IS_ENABLED(CONFIG_CONFIGFS_FS) | 65 | #if IS_ENABLED(CONFIG_CONFIGFS_FS) |
| 66 | config_group_init_type_name(&d->group, name, type); | 66 | config_group_init_type_name(&d->group, name, type); |
diff --git a/include/linux/iio/sw_trigger.h b/include/linux/iio/sw_trigger.h index c97eab67558f..0c43738a9e24 100644 --- a/include/linux/iio/sw_trigger.h +++ b/include/linux/iio/sw_trigger.h | |||
| @@ -60,7 +60,7 @@ void iio_sw_trigger_type_configfs_unregister(struct iio_sw_trigger_type *tt); | |||
| 60 | static inline | 60 | static inline |
| 61 | void iio_swt_group_init_type_name(struct iio_sw_trigger *t, | 61 | void iio_swt_group_init_type_name(struct iio_sw_trigger *t, |
| 62 | const char *name, | 62 | const char *name, |
| 63 | struct config_item_type *type) | 63 | const struct config_item_type *type) |
| 64 | { | 64 | { |
| 65 | #if IS_ENABLED(CONFIG_CONFIGFS_FS) | 65 | #if IS_ENABLED(CONFIG_CONFIGFS_FS) |
| 66 | config_group_init_type_name(&t->group, name, type); | 66 | config_group_init_type_name(&t->group, name, type); |
