* [PATCH] sh: fix build error in fpu.c
@ 2012-04-04 2:16 Shimoda, Yoshihiro
2012-04-04 3:01 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Shimoda, Yoshihiro @ 2012-04-04 2:16 UTC (permalink / raw)
To: linux-sh
This patch fixes the following build error:
CC arch/sh/kernel/cpu/sh4/fpu.o
arch/sh/kernel/cpu/sh4/fpu.c:405: warning: return type defaults to ‘int’
arch/sh/kernel/cpu/sh4/fpu.c:405: warning: function declaration isn’t a prototype
arch/sh/kernel/cpu/sh4/fpu.c: In function ‘BUILD_TRAP_HANDLER’:
arch/sh/kernel/cpu/sh4/fpu.c:407: error: ‘TRAP_HANDLER_DECL’ undeclared (first use in this function)
arch/sh/kernel/cpu/sh4/fpu.c:407: error: (Each undeclared identifier is reported only once
arch/sh/kernel/cpu/sh4/fpu.c:407: error: for each function it appears in.)
arch/sh/kernel/cpu/sh4/fpu.c:409: error: ‘regs’ undeclared (first use in this function)
arch/sh/kernel/cpu/sh4/fpu.c:423: warning: ‘return’ with no value, in function returning non-void
CC arch/sh/kernel/cpu/fpu.o
arch/sh/kernel/cpu/fpu.c:80: warning: return type defaults to ‘int’
arch/sh/kernel/cpu/fpu.c:80: warning: function declaration isn’t a prototype
arch/sh/kernel/cpu/fpu.c: In function ‘BUILD_TRAP_HANDLER’:
arch/sh/kernel/cpu/fpu.c:81: error: ‘TRAP_HANDLER_DECL’ undeclared (first use in this function)
arch/sh/kernel/cpu/fpu.c:81: error: (Each undeclared identifier is reported only once
arch/sh/kernel/cpu/fpu.c:81: error: for each function it appears in.)
arch/sh/kernel/cpu/fpu.c:83: error: ‘regs’ undeclared (first use in this function)
arch/sh/kernel/cpu/fpu.c:83: error: called object ‘fpu_state_restore’ is not a function
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/sh/kernel/cpu/fpu.c | 1 +
arch/sh/kernel/cpu/sh4/fpu.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/sh/kernel/cpu/fpu.c b/arch/sh/kernel/cpu/fpu.c
index 7f1b70c..f8f7af5 100644
--- a/arch/sh/kernel/cpu/fpu.c
+++ b/arch/sh/kernel/cpu/fpu.c
@@ -2,6 +2,7 @@
#include <linux/slab.h>
#include <asm/processor.h>
#include <asm/fpu.h>
+#include <asm/traps.h>
int init_fpu(struct task_struct *tsk)
{
diff --git a/arch/sh/kernel/cpu/sh4/fpu.c b/arch/sh/kernel/cpu/sh4/fpu.c
index e74cd6c..69ab4d3 100644
--- a/arch/sh/kernel/cpu/sh4/fpu.c
+++ b/arch/sh/kernel/cpu/sh4/fpu.c
@@ -16,6 +16,7 @@
#include <cpu/fpu.h>
#include <asm/processor.h>
#include <asm/fpu.h>
+#include <asm/traps.h>
/* The PR (precision) bit in the FP Status Register must be clear when
* an frchg instruction is executed, otherwise the instruction is undefined.
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sh: fix build error in fpu.c
2012-04-04 2:16 [PATCH] sh: fix build error in fpu.c Shimoda, Yoshihiro
@ 2012-04-04 3:01 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2012-04-04 3:01 UTC (permalink / raw)
To: linux-sh
On Wed, Apr 04, 2012 at 11:16:09AM +0900, Shimoda, Yoshihiro wrote:
> This patch fixes the following build error:
>
> CC arch/sh/kernel/cpu/sh4/fpu.o
> arch/sh/kernel/cpu/sh4/fpu.c:405: warning: return type defaults to ???int???
> arch/sh/kernel/cpu/sh4/fpu.c:405: warning: function declaration isn???t a prototype
> arch/sh/kernel/cpu/sh4/fpu.c: In function ???BUILD_TRAP_HANDLER???:
> arch/sh/kernel/cpu/sh4/fpu.c:407: error: ???TRAP_HANDLER_DECL??? undeclared (first use in this function)
> arch/sh/kernel/cpu/sh4/fpu.c:407: error: (Each undeclared identifier is reported only once
> arch/sh/kernel/cpu/sh4/fpu.c:407: error: for each function it appears in.)
> arch/sh/kernel/cpu/sh4/fpu.c:409: error: ???regs??? undeclared (first use in this function)
> arch/sh/kernel/cpu/sh4/fpu.c:423: warning: ???return??? with no value, in function returning non-void
> CC arch/sh/kernel/cpu/fpu.o
> arch/sh/kernel/cpu/fpu.c:80: warning: return type defaults to ???int???
> arch/sh/kernel/cpu/fpu.c:80: warning: function declaration isn???t a prototype
> arch/sh/kernel/cpu/fpu.c: In function ???BUILD_TRAP_HANDLER???:
> arch/sh/kernel/cpu/fpu.c:81: error: ???TRAP_HANDLER_DECL??? undeclared (first use in this function)
> arch/sh/kernel/cpu/fpu.c:81: error: (Each undeclared identifier is reported only once
> arch/sh/kernel/cpu/fpu.c:81: error: for each function it appears in.)
> arch/sh/kernel/cpu/fpu.c:83: error: ???regs??? undeclared (first use in this function)
> arch/sh/kernel/cpu/fpu.c:83: error: called object ???fpu_state_restore??? is not a function
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Already fixed in my tree.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-04 3:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 2:16 [PATCH] sh: fix build error in fpu.c Shimoda, Yoshihiro
2012-04-04 3:01 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox