All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] thermal/drivers/qcom-spmi-mbg-tm: Add module namespace import for IIO_CONSUMER
@ 2026-08-13  1:17 Nathan Chancellor
  2026-08-13  1:35 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Chancellor @ 2026-08-13  1:17 UTC (permalink / raw)
  To: Amit Kucheria, Thara Gopinath, Rafael J. Wysocki, Daniel Lezcano
  Cc: Mark Brown, Jonathan Cameron, Zhang Rui, Lukasz Luba, linux-iio,
	linux-pm, linux-arm-msm, linux-kernel, Nathan Chancellor

Commit ebf1d03dab96 ("iio: inkern: Use namespaced exports") in the iio
tree restricts certain exported core functions that a driver added in
commit c3dce117333c ("thermal/drivers/qcom: Add support for Qualcomm MBG
thermal monitoring") from the thermal tree uses, causing modpost to
warn (or error without CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS):

  ERROR: modpost: drivers/thermal/qcom/qcom-spmi-mbg-tm.ko: module uses symbol 'devm_iio_channel_get' from namespace 'IIO_CONSUMER', but does not import it.
  ERROR: modpost: drivers/thermal/qcom/qcom-spmi-mbg-tm.ko: module uses symbol 'iio_read_channel_processed' from namespace 'IIO_CONSUMER', but does not import it.

Add the IIO_CONSUMER namespace import to clear up the error.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
I am not sure how this should be handled. As far as I can tell, there is
no error if this patch is applied to the thermal tree directly but it
would leave an "orphaned" module namespace import until the iio and
thermal trees are combined, which may not be preferable. Otherwise, it
would need to be applied to whatever merge happens second (hence
including Mark and Jonathan in this conversation).
---
 drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
index 0492d5eeca01..a05bb444627a 100644
--- a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
+++ b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
@@ -254,3 +254,4 @@ module_platform_driver(mbg_tm_driver);
 
 MODULE_DESCRIPTION("PMIC MBG Temperature monitor driver");
 MODULE_LICENSE("GPL");
+MODULE_IMPORT_NS("IIO_CONSUMER");

---
base-commit: 28d012efb4327f9c75d5e042a7c91e9a542efa98
change-id: 20260812-qcom-spmi-mbg-tm-ns-modpost-error-fad8be2f985c

Best regards,
--  
Cheers,
Nathan


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

end of thread, other threads:[~2026-08-14  0:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13  1:17 [PATCH linux-next] thermal/drivers/qcom-spmi-mbg-tm: Add module namespace import for IIO_CONSUMER Nathan Chancellor
2026-08-13  1:35 ` Jonathan Cameron
2026-08-14  0:05   ` Nathan Chancellor

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.