diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-01 19:53:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-22 10:54:57 +0300 |
commit | 33a0a1e3b3d17445832177981dc7a1c6a5b009f8 (patch) | |
tree | d99fd659f64aff011fc1a8514dac012d7bc9e5d1 /include/linux/kobject.h | |
parent | 92b57842f43014e6ca81ddf6d5d59e9ddf762e12 (diff) | |
download | linux-33a0a1e3b3d17445832177981dc7a1c6a5b009f8.tar.xz |
kobject: modify kobject_get_path() to take a const *
kobject_get_path() does not modify the kobject passed to it, so make the
pointer constant.
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20221001165315.2690141-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r-- | include/linux/kobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 57fb972fea05..592f9785b058 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -115,7 +115,7 @@ extern void kobject_put(struct kobject *kobj); extern const void *kobject_namespace(struct kobject *kobj); extern void kobject_get_ownership(struct kobject *kobj, kuid_t *uid, kgid_t *gid); -extern char *kobject_get_path(struct kobject *kobj, gfp_t flag); +extern char *kobject_get_path(const struct kobject *kobj, gfp_t flag); struct kobj_type { void (*release)(struct kobject *kobj); |