mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
kobject: make kobject_namespace take a const *
kobject_namespace() should take a const *kobject as it does not modify the kobject passed to it. Change that, and the functions kobj_child_ns_ops() and kobj_ns_ops() needed to also be changed to const *. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20221121094649.1556002-2-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -47,8 +47,8 @@ struct kobj_ns_type_operations {
|
||||
|
||||
int kobj_ns_type_register(const struct kobj_ns_type_operations *ops);
|
||||
int kobj_ns_type_registered(enum kobj_ns_type type);
|
||||
const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent);
|
||||
const struct kobj_ns_type_operations *kobj_ns_ops(struct kobject *kobj);
|
||||
const struct kobj_ns_type_operations *kobj_child_ns_ops(const struct kobject *parent);
|
||||
const struct kobj_ns_type_operations *kobj_ns_ops(const struct kobject *kobj);
|
||||
|
||||
bool kobj_ns_current_may_mount(enum kobj_ns_type type);
|
||||
void *kobj_ns_grab_current(enum kobj_ns_type type);
|
||||
|
||||
Reference in New Issue
Block a user