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

Vasily Gorbik posted 2 patches 1 year, 5 months ago
[PATCH 1/2] kobject: Export kobject_set_name_vargs() symbol
Posted by Vasily Gorbik 1 year, 5 months ago
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
Re: [PATCH 1/2] kobject: Export kobject_set_name_vargs() symbol
Posted by Greg Kroah-Hartman 1 year, 5 months ago
On Tue, Aug 13, 2024 at 12:42:34PM +0200, Vasily Gorbik wrote:
> 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);

EXPORT_SYMBOL_GPL() please.

thanks,

greg k-h