Skip to contentSkip to conversation

arm64: ipipe: Fix section mismatch of __ipipe_tsc_register

PATCH In review Jan Kiszka 2 participants 2 messages Mar 15, 2022 arm64

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 arm64: ipipe: Fix section mismatch of __ipipe_tsc_register

From: Jan Kiszka <[email protected]>

The kernel warns:

The function dw_apb_clocksource_register() references the function __init __ipipe_tsc_register().
This is often because dw_apb_clocksource_register lacks a __init annotation or the annotation of __ipipe_tsc_register is wrong.

---

Developed for 5.4 but probably also 4.19 material.

 arch/arm64/kernel/ipipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/ipipe.c +1 -1
index 9dcb54c636395..a60787230fd84 100644
@@ -228,7 +228,7 @@ void __ipipe_root_sync(void)
 
 static struct __ipipe_tscinfo tsc_info;
 
-void __init __ipipe_tsc_register(struct __ipipe_tscinfo *info)
+void __ipipe_tsc_register(struct __ipipe_tscinfo *info)
 {
 	tsc_info = *info;
 	__ipipe_hrclock_freq = info->freq;
Signature · 6 lines
2.34.1


-- 
Siemens AG, Technology
Competence Center Embedded Linux
#1 lore raw
Quoted 34 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

The kernel warns:

The function dw_apb_clocksource_register() references the function __init __ipipe_tsc_register().
This is often because dw_apb_clocksource_register lacks a __init annotation or the annotation of __ipipe_tsc_register is wrong.

---

Developed for 5.4 but probably also 4.19 material.

 arch/arm64/kernel/ipipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/ipipe.c +1 -2
index 9dcb54c636395..a60787230fd84 100644
@@ -228,7 +228,7 @@ void __ipipe_root_sync(void)
 
 static struct __ipipe_tscinfo tsc_info;
 
-void __init __ipipe_tsc_register(struct __ipipe_tscinfo *info)
+void __ipipe_tsc_register(struct __ipipe_tscinfo *info)
 {
        tsc_info = *info;
        __ipipe_hrclock_freq = info->freq;
--

2.34.1

Quoted 3 lines

--
Siemens AG, Technology
Competence Center Embedded Linux

I’ll apply to 5.4 and check it it’s needed for 4.19

-Greg

Quoted 2 lines