Skip to content

Commit

Permalink
x86: move dma_supported and dma_set_mask to pci-dma_32.c, fix
Browse files Browse the repository at this point in the history
ERROR: "dma_supported" [drivers/ssb/ssb.ko] undefined!
ERROR: "dma_set_mask" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!
ERROR: "dma_set_mask" [drivers/scsi/aic7xxx/aic7xxx.ko] undefined!
ERROR: "dma_set_mask" [drivers/scsi/aic7xxx/aic79xx.ko] undefined!
ERROR: "dma_supported" [drivers/net/pcnet32.ko] undefined!
ERROR: "dma_supported" [drivers/media/video/saa7134/saa7134.ko] undefined!
ERROR: "dma_set_mask" [drivers/media/video/meye.ko] undefined!
ERROR: "dma_supported" [drivers/media/video/cx88/cx8802.ko] undefined!
ERROR: "dma_supported" [drivers/media/video/cx88/cx8800.ko] undefined!
ERROR: "dma_supported" [drivers/media/video/cx88/cx88-alsa.ko] undefined!
ERROR: "dma_supported" [drivers/media/video/cx23885/cx23885.ko] undefined!

They just need to be exported like on x86_64.

dma_supported() and dma_set_mask() were previously inlined,
but are now moved to pci-dma_32.c.

Since they're used by various drivers, they need to be
exported.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Mark McLoughlin authored and Ingo Molnar committed Apr 19, 2008
1 parent b7107a3 commit 19e395a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/pci-dma_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ dma_supported(struct device *dev, u64 mask)

return 1;
}
EXPORT_SYMBOL(dma_supported);

int
dma_set_mask(struct device *dev, u64 mask)
Expand All @@ -191,6 +192,7 @@ dma_set_mask(struct device *dev, u64 mask)

return 0;
}
EXPORT_SYMBOL(dma_set_mask);


static __devinit void via_no_dac(struct pci_dev *dev)
Expand Down

0 comments on commit 19e395a

Please sign in to comment.