Skip to content

Commit

Permalink
ARM: Fix SA1100 Assabet/Neponset PCMCIA section mismatch warnings
Browse files Browse the repository at this point in the history
WARNING: drivers/pcmcia/sa1100_cs.o(.data+0x48): Section mismatch in reference from the variable sa11x0_pcmcia_hw_init to the function .init.text:pcmcia_assabet_init()
The variable sa11x0_pcmcia_hw_init references
the function __init pcmcia_assabet_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

WARNING: drivers/pcmcia/sa1111_cs.o(.text+0x298): Section mismatch in reference from the function pcmcia_probe() to the function .init.text:pcmcia_neponset_init()
The function pcmcia_probe() references
the function __init pcmcia_neponset_init().
This is often because pcmcia_probe lacks a __init
annotation or the annotation of pcmcia_neponset_init is wrong.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Russell King committed Sep 28, 2009
1 parent 7f8b717 commit b29cf62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pcmcia/sa1100_assabet.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static struct pcmcia_low_level assabet_pcmcia_ops = {
.socket_suspend = assabet_pcmcia_socket_suspend,
};

int __init pcmcia_assabet_init(struct device *dev)
int pcmcia_assabet_init(struct device *dev)
{
int ret = -ENODEV;

Expand Down
2 changes: 1 addition & 1 deletion drivers/pcmcia/sa1100_neponset.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static struct pcmcia_low_level neponset_pcmcia_ops = {
.socket_suspend = sa1111_pcmcia_socket_suspend,
};

int __init pcmcia_neponset_init(struct sa1111_dev *sadev)
int pcmcia_neponset_init(struct sa1111_dev *sadev)
{
int ret = -ENODEV;

Expand Down

0 comments on commit b29cf62

Please sign in to comment.