On Tue, Mar 15, 2022 at 3:00 PM Jan Kiszka <jan.kis...@siemens.com> wrote:
> From: Jan Kiszka <jan.kis...@siemens.com> > > 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. > > Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> > --- > > Developed for 5.4 but probably also 4.19 material. > > arch/arm64/kernel/ipipe.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/ipipe.c b/arch/arm64/kernel/ipipe.c > index 9dcb54c636395..a60787230fd84 100644 > --- a/arch/arm64/kernel/ipipe.c > +++ b/arch/arm64/kernel/ipipe.c > @@ -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 > > > -- > Siemens AG, Technology > Competence Center Embedded Linux I’ll apply to 5.4 and check it it’s needed for 4.19 -Greg > >