Skip to contentSkip to conversation

soc: samsung: exynos-chipid: correct helpers __init annotation

PATCH Applied Krzysztof Kozlowski 1 participant 2 messages Jan 5, 2021 – Jan 8, 2021 Arm Samsung Exynos

lore
Share & tools
lore

Krzysztof Kozlowski

author maintainer
#0 lore raw

PATCH 1/1 soc: samsung: exynos-chipid: correct helpers __init annotation

After converting to builtin driver, the probe function should not call __init functions anymore:

Quoted 1 line
Quoted 1 line

WARNING: modpost: vmlinux.o(.text+0x8884d4):

Section mismatch in reference from the function exynos_chipid_probe() to the function .init.text:product_id_to_soc_id()

Fixes 352bfbb3e023 ("soc: samsung: exynos-chipid: convert to driver and merge exynos-asv")
---
 drivers/soc/samsung/exynos-chipid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/samsung/exynos-chipid.c +1 -1
index fa6a9b9f6d70..5c1d0f97f766 100644
@@ -44,7 +44,7 @@ static const struct exynos_soc_id {
 	{ "EXYNOS7420", 0xE7420000 },
 };
 
-static const char * __init product_id_to_soc_id(unsigned int product_id)
+static const char *product_id_to_soc_id(unsigned int product_id)
 {
 	int i;
 
Signature · 1 line
2.25.1
author maintainer Applied
#1 lore raw

Re: (subset) [PATCH] soc: samsung: exynos-chipid: correct helpers __init annotation

Quoted 5 lines · Krzysztof Kozlowski

After converting to builtin driver, the probe function should not call __init functions anymore:

Quoted 1 line
Quoted 1 line

WARNING: modpost: vmlinux.o(.text+0x8884d4):

Section mismatch in reference from the function exynos_chipid_probe() to the function .init.text:product_id_to_soc_id()

Applied, thanks!

[1/1] soc: samsung: exynos-chipid: correct helpers __init annotation

      commit: 6166174afc2bc74ca550af388508384b57d5163d

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>