From: Frederic Weisbecker <fweisbec@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] mips: fix build error on malta
Date: Tue, 21 Oct 2008 02:04:07 +0200 [thread overview]
Message-ID: <48FD1C77.6070601@gmail.com> (raw)
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 <fweisbec@gmail.com>
---
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 <linux/init.h>
#include <linux/smp.h>
-#include <asm-mips/addrspace.h>
-#include <asm-mips/mips-boards/launch.h>
-#include <asm-mips/mipsmtregs.h>
+#include <asm/addrspace.h>
+#include <asm/mips-boards/launch.h>
+#include <asm/mipsmtregs.h>
int amon_cpu_avail(int cpu)
{
next reply other threads:[~2008-10-21 0:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 0:04 Frederic Weisbecker [this message]
2008-10-23 21:30 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48FD1C77.6070601@gmail.com \
--to=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome