Skip to content

Commit 3705ccf

Browse files
rddunlaptorvalds
authored andcommitted
mn10300: fix build error of missing fpu_save()
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]>
1 parent f598f82 commit 3705ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mn10300/include/asm/switch_to.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
struct task_struct;
1717
struct thread_struct;
1818

19-
#if !defined(CONFIG_LAZY_SAVE_FPU)
19+
#if defined(CONFIG_FPU) && !defined(CONFIG_LAZY_SAVE_FPU)
2020
struct fpu_state_struct;
2121
extern asmlinkage void fpu_save(struct fpu_state_struct *);
2222
#define switch_fpu(prev, next) \

0 commit comments

Comments
 (0)