Skip to contentSkip to conversation

sh: fixup section mismatch worning for intc_set_ack_handle()

PATCH Paul Mundt 2 participants 2 messages Mar 23, 2012 SuperH

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw
Quoted 11 lines · Kuninori Morimoto

This patch fixup below warning

WARNING: drivers/built-in.o(.text+0x5d760):
Section mismatch in reference from the function intc_set_ack_handle() to the function .init.text:intc_ack_data() The function intc_set_ack_handle()
references the function __init intc_ack_data().
This is often because intc_set_ack_handle lacks a __init annotation or the annotation of intc_ack_data is wrong.

Hmm, no. This is just papering over the problem. The real issue is that intc_ack_data() is flagged __init when it shouldn't be. I'll fix it up, thanks for reporting it.

#1 lore raw

Hi Paul

Quoted 8 lines
Quoted 8 lines

WARNING: drivers/built-in.o(.text+0x5d760):
Section mismatch in reference from the function intc_set_ack_handle() to the function .init.text:intc_ack_data() The function intc_set_ack_handle()
references the function __init intc_ack_data().
This is often because intc_set_ack_handle lacks a __init annotation or the annotation of intc_ack_data is wrong.

Quoted 5 lines
Quoted 1 line

Hmm, no. This is just papering over the problem. The real issue is that intc_ack_data() is flagged __init when it shouldn't be. I'll fix it up, thanks for reporting it.

OK. thank you.
please add

Best regards
---
Kuninori Morimoto