diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-03-28 11:28:19 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-03-28 11:28:19 -0400 |
commit | b448d6adf733cc130339685531940f28902f2b75 (patch) | |
tree | d04e45cb805eb66045fa5ed436b3ad1cdf6e07e9 /drivers/sh/intc | |
parent | adaf7fd2df4a6560cb5c46fae6364aabce2a84fd (diff) |
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh/intc')
-rw-r--r-- | drivers/sh/intc/handle.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/sh/intc/handle.c b/drivers/sh/intc/handle.c index 057ce56829bf..d80799f111df 100644 --- a/drivers/sh/intc/handle.c +++ b/drivers/sh/intc/handle.c | |||
@@ -172,9 +172,8 @@ intc_get_prio_handle(struct intc_desc *desc, struct intc_desc_int *d, | |||
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
174 | 174 | ||
175 | static unsigned int __init intc_ack_data(struct intc_desc *desc, | 175 | static unsigned int intc_ack_data(struct intc_desc *desc, |
176 | struct intc_desc_int *d, | 176 | struct intc_desc_int *d, intc_enum enum_id) |
177 | intc_enum enum_id) | ||
178 | { | 177 | { |
179 | struct intc_mask_reg *mr = desc->hw.ack_regs; | 178 | struct intc_mask_reg *mr = desc->hw.ack_regs; |
180 | unsigned int i, j, fn, mode; | 179 | unsigned int i, j, fn, mode; |