[lkml]   [2009]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 2/4] powerpc: Panic on platform ppc-xicp when CONFIG_XICS not set instead of build failure
    If CONFIG_XICS is not set but CONFIG_PPC_PSERIES is, then the kernel
    fails to build with

    arch/powerpc/platforms/pseries/smp.c: In function ‘smp_init_pseries_xics’:
    arch/powerpc/platforms/pseries/smp.c:202: error: ‘pSeries_xics_smp_ops’ undeclared (first use in this function)
    arch/powerpc/platforms/pseries/smp.c:202: error: (Each undeclared identifier is reported only once
    arch/powerpc/platforms/pseries/smp.c:202: error: for each function it appears in.)
    make[2]: *** [arch/powerpc/platforms/pseries/smp.o] Error 1

    As CONFIG_XICS is not always necessary, this patch allows the kernel to
    build but the system will panic at runtime if it is found that XICS is

    Signed-off-by: Mel Gorman <>
    arch/powerpc/platforms/pseries/smp.c | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c
    index 440000c..da78ea5 100644
    --- a/arch/powerpc/platforms/pseries/smp.c
    +++ b/arch/powerpc/platforms/pseries/smp.c
    @@ -199,7 +199,11 @@ void __init smp_init_pseries_mpic(void)

    void __init smp_init_pseries_xics(void)
    +#ifdef CONFIG_XICS
    smp_ops = &pSeries_xics_smp_ops;
    + panic("Support for platform ppc-xicp not configured");

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-17 13:09    [W:0.022 / U:7.236 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site