Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377937 - gentoo-sources-3.0.0 SFF SATA driver modpost failure
Summary: gentoo-sources-3.0.0 SFF SATA driver modpost failure
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 02:51 UTC by Micah P. Dombrowski
Modified: 2011-08-10 18:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Micah P. Dombrowski 2011-08-06 02:51:24 UTC
Kernel built fine at first, boots, runs, hunky-dory.  Then I found that I needed to add a driver module for a Marvell 88SX7042 SATA card.  Enabled ATA_SFF, ATA_BMDMA, and SATA_MV.  Also noted the PATA_AMD driver, and wanted to see if that would work on this motherboard, so enabled that too.  Seems like the drivers themselves compile, but maybe something weird is going on with a dependency?

Reproducible: Always

Steps to Reproduce:
1. Compile an SFF-free gentoo-sources-3.0.0 kernel
2. Enable ATA_SFF, ATA_BMDMA, and SATA_MV and/or PATA_AMD (other SFF drivers?)
3. 'make modules'
Actual Results:  
  Building modules, stage 2.
  MODPOST 248 modules
ERROR: "ata_bmdma_port_ops" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_sff_port_ops" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_bmdma_port_intr" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_sff_queue_pio_task" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_bmdma_qc_issue" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_sff_softreset" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_sff_dma_pause" [drivers/ata/sata_mv.ko] undefined!
ERROR: "ata_bmdma_port_ops" [drivers/ata/pata_amd.ko] undefined!
ERROR: "ata_bmdma32_port_ops" [drivers/ata/pata_amd.ko] undefined!
ERROR: "ata_pci_bmdma_init_one" [drivers/ata/pata_amd.ko] undefined!
ERROR: "ata_sff_prereset" [drivers/ata/pata_amd.ko] undefined!
ERROR: "ata_pci_bmdma_clear_simplex" [drivers/ata/pata_amd.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Expected Results:  
Finished making the driver modules?

Phenom II X4, 64-bit, gcc (Gentoo 4.4.5 p1.3, pie-0.4.5) 4.4.5, glibc-2.13-r4
Comment 1 Micah P. Dombrowski 2011-08-10 18:32:21 UTC
The CONFIG_ATA_SFF and CONFIG_ATA_BMDMA options cause some functions to be built into the kernel itself.  Thus, simply running 'make modules' failed, because those functions were not present.  Running a full 'make' worked.

Problem between keyboard and chair, I suppose.