diff options
author | Arnd Bergmann <[email protected]> | 2012-11-06 22:55:32 +0100 |
---|---|---|
committer | Jeff Garzik <[email protected]> | 2012-11-15 23:44:27 -0500 |
commit | c37472d3f4ec6bf98b443490e069f31d18bcd6f5 (patch) | |
tree | a2d207a112fcae949c27f80aac84d6296d973350 /tools/perf/util/trace-event-scripting.c | |
parent | 9addf6afeef0f2c9a1fef880e2dbe633d15a89bd (diff) |
sata_highbank: mark ahci_highbank_probe as __devinit
The ahci_highbank_probe function is incorrectly marked as __init,
which means it can get discarded at boot time, which might be
a problem if for some reason the device only becomes operational
after loading another module.
Using __devinit instead avoids seeing this warning for every build:
WARNING: vmlinux.o(.data+0xf7b0): Section mismatch in reference from the
variable ahci_highbank_driver to the function .init.text:ahci_highbank_probe()
The variable ahci_highbank_driver references
the function __init ahci_highbank_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Mark Langsdorf <[email protected]>
Cc: Rob Herring <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions