build problems with powerpc allmodconfig
Quoted 10 lines
Quoted 4 lines
- vioscsi linkage fails because
iseries_vscsi.candrpa_vscsi.c. This needs some trivial indirection via function vectors, but how can we find out which one to use from the driver? Both seem to look the same in the device treeThe maintainer suggested that we just don't build vioscsi for iseries if we are building the rpa version as it is not often used (in particular, it is not used for installations). We could, however distinguish them by changing the "compat" field in the iSeries device tree if we wished.
How about just adding an 'ifndef' in the Makefile, as in the patch below? This compiles ibmvscsic.o fine.
Judith Lebzelter
---
drivers/scsi/ibmvscsi/Makefile +2 -0
@@ -1,7 +1,9 @@ obj-$(CONFIG_SCSI_IBMVSCSI) += ibmvscsic.o ibmvscsic-y += ibmvscsi.o +ifndef CONFIG_PPC_PSERIES ibmvscsic-$(CONFIG_PPC_ISERIES) += iseries_vscsi.o +endif ibmvscsic-$(CONFIG_PPC_PSERIES) += rpa_vscsi.o obj-$(CONFIG_SCSI_IBMVSCSIS) += ibmvstgt.o
Quoted 3 lines · On Tue, 7 Nov 2006 10:09:37 -0800 Judith Lebzelter <[email protected]> wrote:
How about just adding an 'ifndef' in the
Makefile, as in the patch below? This compiles ibmvscsic.o fine.
Looks good. Please resend with a comment (both for the commit and in the Makefile) and a Signed-off-by line.
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/