arm64: ipipe: Fix section mismatch of __ipipe_tsc_register
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
@@ -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
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 becausedw_apb_clocksource_registerlacks a__initannotation or the annotation of__ipipe_tsc_registeris wrong.Signed-off-by Jan Kiszka <[email protected]>---
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@@ -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