Commit b448d6ad authored by Paul Mundt's avatar Paul Mundt

sh: intc: Fix up section mismatch for intc_ack_data

intc_ack_data is flagged as __init when it shouldn't be, causing section
mismatches in non-init paths like intc_set_ack_handle():

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.
Reported-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent adaf7fd2
...@@ -172,9 +172,8 @@ intc_get_prio_handle(struct intc_desc *desc, struct intc_desc_int *d, ...@@ -172,9 +172,8 @@ intc_get_prio_handle(struct intc_desc *desc, struct intc_desc_int *d,
return 0; return 0;
} }
static unsigned int __init intc_ack_data(struct intc_desc *desc, static unsigned int intc_ack_data(struct intc_desc *desc,
struct intc_desc_int *d, struct intc_desc_int *d, intc_enum enum_id)
intc_enum enum_id)
{ {
struct intc_mask_reg *mr = desc->hw.ack_regs; struct intc_mask_reg *mr = desc->hw.ack_regs;
unsigned int i, j, fn, mode; unsigned int i, j, fn, mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment