diff options
| author | Florian Fainelli <[email protected]> | 2014-09-24 17:55:11 +0000 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2014-11-24 06:44:06 +0000 |
| commit | 3964917c6b69f2e5908f603d8408390d40aadaf5 (patch) | |
| tree | b2561c31207b5902ff197b01ce8c8713c3c869e2 /drivers/tty/serial/sccnxp.c | |
| parent | MIPS: Netlogic: handle modular USB case (diff) | |
| download | kernel-3964917c6b69f2e5908f603d8408390d40aadaf5.tar.gz kernel-3964917c6b69f2e5908f603d8408390d40aadaf5.zip | |
MIPS: Netlogic: handle modular AHCI builds
Commits a951440971d0 ("MIPS: Netlogic: Support for XLP3XX on-chip SATA")
and fedfcb1137d2 ("MIPS: Netlogic: XLP9XX on-chip SATA support") added
ahci-init and ahci-init-xlp2 as objects to build when CONFIG_SATA_AHCI
is enabled.
If CONFIG_SATA_AHCI is made modular, these two files will also get built
as modules (obj-m), which will result in the following linking failure:
ERROR: "nlm_set_pic_extra_ack" [arch/mips/netlogic/xlp/ahci-init.ko]
undefined!
ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/ahci-init.ko] undefined!
ERROR: "nlm_nodes" [arch/mips/netlogic/xlp/ahci-init-xlp2.ko] undefined!
ERROR: "nlm_set_pic_extra_ack"
[arch/mips/netlogic/xlp/ahci-init-xlp2.ko] undefined!
ERROR: "xlp_socdev_to_node" [arch/mips/netlogic/xlp/ahci-init-xlp2.ko]
undefined!
ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/ahci-init-xlp2.ko]
undefined!
Just check whether CONFIG_SATA_AHCI is defined for this build, and if
that is the case, add these objects to the list of built-in object
files.
Signed-off-by: Florian Fainelli <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7855/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
