2021-07-13 08:13:50

by Alice Guo (OSS)

[permalink] [raw]
Subject: [PATCH v1] base: soc: export soc_device_to_device API

From: Alice Guo <[email protected]>

Driver which uses soc_device_to_device needs to be built as a module, so
export this API.

Signed-off-by: Alice Guo <[email protected]>
---
drivers/base/soc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 0af5363a582c..6b3db25611ee 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -41,6 +41,7 @@ struct device *soc_device_to_device(struct soc_device *soc_dev)
{
return &soc_dev->dev;
}
+EXPORT_SYMBOL_GPL(soc_device_to_device);

static umode_t soc_attribute_mode(struct kobject *kobj,
struct attribute *attr,
--
2.17.1


2021-07-13 10:47:59

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v1] base: soc: export soc_device_to_device API

On Tue, Jul 13, 2021 at 04:12:55PM +0800, Alice Guo (OSS) wrote:
> From: Alice Guo <[email protected]>
>
> Driver which uses soc_device_to_device needs to be built as a module, so
> export this API.

What in-kernel driver needs this? I have not seen any build errors,
where were they reported?

thanks,

greg k-h