[PATCH] mips: fix build error on malta - Kernel

This is a discussion on [PATCH] mips: fix build error on malta - Kernel ; When trying to build a kernel configured for malta board, one get these errors and then the build craches: arch/mips/mti-malta/malta-amon.c:25:32: asm-mips/addrspace.h: No such file or directory arch/mips/mti-malta/malta-amon.c:26:41: asm-mips/mips-boards/launch.h: No such file or directory arch/mips/mti-malta/malta-amon.c:27:33: asm-mips/mipsmtregs.h: No such file or directory ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] mips: fix build error on malta

  1. [PATCH] mips: fix build error on malta

    When trying to build a kernel configured for malta board, one get
    these errors and then the build craches:

    arch/mips/mti-malta/malta-amon.c:25:32: asm-mips/addrspace.h: No such file or directory
    arch/mips/mti-malta/malta-amon.c:26:41: asm-mips/mips-boards/launch.h: No such file or directory
    arch/mips/mti-malta/malta-amon.c:27:33: asm-mips/mipsmtregs.h: No such file or directory
    arch/mips/mti-malta/malta-amon.c: In function `amon_cpu_avail':
    arch/mips/mti-malta/malta-amon.c:31: error: `CPULAUNCH' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c:31: error: (Each undeclared identifier is reported only once
    arch/mips/mti-malta/malta-amon.c:31: error: for each function it appears in.)
    arch/mips/mti-malta/malta-amon.c:33: error: `NCPULAUNCH' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c:38: error: invalid use of undefined type `struct cpulaunch'
    arch/mips/mti-malta/malta-amon.c:39: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:39: error: `LAUNCH_FREADY' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c:43: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:43: error: `LAUNCH_FGO' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c:43: error: `LAUNCH_FGONE' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c: In function `amon_cpu_start':
    arch/mips/mti-malta/malta-amon.c:56: error: `CPULAUNCH' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c:64: error: invalid use of undefined type `struct cpulaunch'
    arch/mips/mti-malta/malta-amon.c:68: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:69: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:70: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:71: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:76: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:76: error: `LAUNCH_FGO' undeclared (first use in this function)
    arch/mips/mti-malta/malta-amon.c:77: error: dereferencing pointer to incomplete type
    arch/mips/mti-malta/malta-amon.c:77: error: `LAUNCH_FGONE' undeclared (first use in this function)
    make[1]: *** [arch/mips/mti-malta/malta-amon.o] Erreur 1

    This patch corrects the path for mips headers in
    arch/mips/mti-malta/malta-amon.c

    Signed-off-by: Frederic Weisbecker
    ---
    diff --git a/arch/mips/mti-malta/malta-amon.c b/arch/mips/mti-malta/malta-amon.c
    index 96236bf..df9e526 100644
    --- a/arch/mips/mti-malta/malta-amon.c
    +++ b/arch/mips/mti-malta/malta-amon.c
    @@ -22,9 +22,9 @@
    #include
    #include

    -#include
    -#include
    -#include
    +#include
    +#include
    +#include

    int amon_cpu_avail(int cpu)
    {
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] mips: fix build error on malta

    On Tue, Oct 21, 2008 at 02:04:07AM +0200, Frederic Weisbecker wrote:

    > This patch corrects the path for mips headers in
    > arch/mips/mti-malta/malta-amon.c
    >
    > Signed-off-by: Frederic Weisbecker


    Thanks for your patch. I've already got an equivalent patch commited; it
    just hasn't yet made it to kernel.org.

    Please always cc MIPS patches to linux-mips@linux-mips.org.

    Ralf
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread