linux-brain/arch/mn10300
Randy Dunlap 093d494c6d mn10300: fix build error of missing fpu_save()
[ Upstream commit 3705ccfdd1 ]

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/dc421c4f-4842-4429-1b99-92865c2f24b6@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-17 06:41:56 +02:00
..
boot kbuild: delete unnecessary "@:" 2016-04-20 10:36:57 +02:00
configs arch/defconfig: remove CONFIG_RESOURCE_COUNTERS 2016-05-23 17:04:14 -07:00
include mn10300: fix build error of missing fpu_save() 2017-06-17 06:41:56 +02:00
kernel Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-11 23:38:39 -07:00
lib mn10300: copy_from_user() should zero on access_ok() failure... 2016-09-13 17:49:42 -04:00
mm dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
oprofile MN10300: Kill MN10300's own profiling Kconfig 2009-04-09 10:53:16 -07:00
proc-mn2ws0050 char/genrtc: remove mn10300 support 2016-06-04 00:23:03 +02:00
proc-mn103e010 mn10300: use RTC_DRV_CMOS instead of CONFIG_RTC 2016-06-26 01:20:08 +02:00
unit-asb2303 mn10300: don't use module_init in non-modular flash.c code 2015-06-16 14:12:30 -04:00
unit-asb2305 PCI: Revert "PCI: Call pci_read_bridge_bases() from core instead of arch code" 2015-09-15 13:18:04 -05:00
unit-asb2364 mn10300: Remove deprecated IRQF_DISABLED 2014-03-04 21:47:51 +01:00
Kconfig mn10300: use RTC_DRV_CMOS instead of CONFIG_RTC 2016-06-26 01:20:08 +02:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Makefile mn10300: Remove redundant debugging info flag 2014-01-28 10:57:06 +01:00