[PATCH 1/2] kobject: Export kobject_set_name_vargs() symbol

Vasily Gorbik
2024-08-13T10:42:48Z

The net/iucv module requires the kobject_set_name_vargs() function to
set kobject names dynamically based on variable arguments. Export the
kobject_set_name_vargs() symbol, allowing the net/iucv module and other
potential modules to use this utility function.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408091131.ATGn6YSh-lkp@intel.com/
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
---
lib/kobject.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/kobject.c b/lib/kobject.c
index 72fa20f405f1..96caa8bfdc40 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -295,6 +295,7 @@ int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,

return 0;
}
+EXPORT_SYMBOL(kobject_set_name_vargs);

/**
* kobject_set_name() - Set the name of a kobject.
--
2.41.0