projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f598f82
)
mn10300: fix build error of missing fpu_save()
author
Randy Dunlap
<
[email protected]
>
Tue, 24 Jan 2017 23:18:49 +0000
(15:18 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 25 Jan 2017 00:26:14 +0000
(16:26 -0800)
When CONFIG_FPU is not enabled on arch/mn10300, <asm/switch_to.h> causes
a build error with a call to fpu_save():
kernel/built-in.o: In function `.L410':
core.c:(.sched.text+0x28a): undefined reference to `fpu_save'
Fix this by including <asm/fpu.h> in <asm/switch_to.h> so that an empty
static inline fpu_save() is defined.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Randy Dunlap <
[email protected]
>
Reported-by: kbuild test robot <
[email protected]
>
Reviewed-by: David Howells <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/mn10300/include/asm/switch_to.h
patch
|
blob
|
history
diff --git
a/arch/mn10300/include/asm/switch_to.h
b/arch/mn10300/include/asm/switch_to.h
index 393d311735c8b573bd5702eac1dcaaac1103600e..67e333aa7629c406745564cb24acc5903733ec41 100644
(file)
--- a/
arch/mn10300/include/asm/switch_to.h
+++ b/
arch/mn10300/include/asm/switch_to.h
@@
-16,7
+16,7
@@
struct task_struct;
struct thread_struct;
-#if !defined(CONFIG_LAZY_SAVE_FPU)
+#if
defined(CONFIG_FPU) &&
!defined(CONFIG_LAZY_SAVE_FPU)
struct fpu_state_struct;
extern asmlinkage void fpu_save(struct fpu_state_struct *);
#define switch_fpu(prev, next) \