build problems with powerpc allmodconfig
When trying to build an allmodconfig kernel on powerpc I run into three errors, all related to the integeration of iseries support into the main kernel image:
- vicocons.c can't be compiled at the same time as CONFIG_VT, but instead of expressing that in the Kconfig it errors out in that case. This should at least be a Kconfig dependency, but long term viocons must work at the same time as the normal vt code to have a single ppc64 image
- vioscsi linkage fails because iseries_vscsi.c and rpa_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 tree
- arch/powerpc/platforms/iseries/setup.c references rd_size when CONFIG_INITRD is set. But rd_size is defined drivers/block/rd.c which can me modular (and is selected by CONFIG_BLK_DEV_RAM). This same bug is repeated in the arm amd arm26 code, but except for those no one outside of rd.c uses this symbol. I don't see a point why arch code should modify this as it's already big enough.
Quoted 6 lines · On Tue, 31 Oct 2006 15:22:13 +0100 Christoph Hellwig <[email protected]> wrote:
-
vicocons.ccan't be compiled at the same time asCONFIG_VT, but instead of expressing that in theKconfigit errors out in that case. This should at least be aKconfigdependency, but long term viocons must work at the same time as the normal vt code to have a single ppc64 image
viocons is deprecated (in favour of hvc_iseries) so we just need Kconfig to say to build it only CONFIG_VT is not defined.
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 tree
The 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.
Quoted 6 lines
-
arch/powerpc/platforms/iseries/setup.creferencesrd_sizewhenCONFIG_INITRDis set. Butrd_sizeis defineddrivers/block/rd.cwhich can me modular (and is selected byCONFIG_BLK_DEV_RAM). This same bug is repeated in the arm amd arm26 code, but except for those no one outside ofrd.cuses this symbol. I don't see a point why arch code should modify this as it's already big enough.
A fix for this has already been posted
(http://patchwork.ozlabs.org/linuxppc/patch?id=7523).
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/
Quoted 10 lines · On Wed, 1 Nov 2006 02:22:13 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 7 lines · On Tue, 31 Oct 2006 15:22:13 +0100 Christoph Hellwig <[email protected]> wrote:
-
arch/powerpc/platforms/iseries/setup.creferencesrd_sizewhenCONFIG_INITRDis set. Butrd_sizeis defineddrivers/block/rd.cwhich can me modular (and is selected byCONFIG_BLK_DEV_RAM). This same bug is repeated in the arm amd arm26 code, but except for those no one outside ofrd.cuses this symbol. I don't see a point why arch code should modify this as it's already big enough.
Quoted 2 lines
A fix for this has already been posted
(http://patchwork.ozlabs.org/linuxppc/patch?id=7523).
This patch is already in the powerpc git tree.
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/