All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] base: soc: export soc_device_to_device API
@ 2021-07-13  8:12 Alice Guo (OSS)
  2021-07-13 10:46 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Alice Guo (OSS) @ 2021-07-13  8:12 UTC (permalink / raw)
  To: linux-kernel, gregkh, rafael

From: Alice Guo <alice.guo@nxp.com>

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

Signed-off-by: Alice Guo <alice.guo@nxp.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] base: soc: export soc_device_to_device API
  2021-07-13  8:12 [PATCH v1] base: soc: export soc_device_to_device API Alice Guo (OSS)
@ 2021-07-13 10:46 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2021-07-13 10:46 UTC (permalink / raw)
  To: Alice Guo (OSS); +Cc: linux-kernel, rafael

On Tue, Jul 13, 2021 at 04:12:55PM +0800, Alice Guo (OSS) wrote:
> From: Alice Guo <alice.guo@nxp.com>
> 
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-13 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13  8:12 [PATCH v1] base: soc: export soc_device_to_device API Alice Guo (OSS)
2021-07-13 10:46 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.