kobject: modify kobject_get_path() to take a const *
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Oct 2022 16:53:15 +0000 (18:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2022 07:54:57 +0000 (09:54 +0200)
commit33a0a1e3b3d17445832177981dc7a1c6a5b009f8
treed99fd659f64aff011fc1a8514dac012d7bc9e5d1
parent92b57842f43014e6ca81ddf6d5d59e9ddf762e12
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>
include/linux/kobject.h
lib/kobject.c