mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
MIPS: adding a safety check for cpu_has_fpu
There is a chance 'cpu_has_fpu' would still be overridden when the CONFIG_MIPS_FP_SUPPORT configuration option has been disabled. So add a safety check for 'cpu_has_fpu'. Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Shida Zhang <zhangshida@kylinos.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
d0ab32b0f0
commit
912a4427be
@ -133,6 +133,9 @@
|
|||||||
# define raw_cpu_has_fpu 0
|
# define raw_cpu_has_fpu 0
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
|
# if cpu_has_fpu
|
||||||
|
# error "Forcing `cpu_has_fpu' to non-zero is not supported"
|
||||||
|
# endif
|
||||||
# define raw_cpu_has_fpu cpu_has_fpu
|
# define raw_cpu_has_fpu cpu_has_fpu
|
||||||
#endif
|
#endif
|
||||||
#ifndef cpu_has_32fpr
|
#ifndef cpu_has_32fpr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user