summaryrefslogtreecommitdiff
path: root/include/asm-m68k/fpu.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2008-06-11 10:42:55 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-06-11 10:42:55 +1000
commitb403b4551aca9275b431e416219552f8e6d2dccb (patch)
tree50f404612bf9275e808add35736dff3424daa1df /include/asm-m68k/fpu.h
parent95eca5e93d215cad8003a306d490dccf9f7f21d1 (diff)
m68k: Allow no CPU/platform type for allnoconfig
Allow no CPU/platform type for allnoconfig - Provide a dummy value for FPSTATESIZE if no CPU type was selected - Provide a dummy value for NR_IRQS if no platform type was selected - Warn the user if no CPU or platform type was selected Note: you still cannot build an allnoconfig kernel, as CONFIG_SWAP=n doesn't build and we cannot easily fix that (http://groups.google.com/group/linux.kernel/browse_thread/thread/d430c78b07e1827b) Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'include/asm-m68k/fpu.h')
-rw-r--r--include/asm-m68k/fpu.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-m68k/fpu.h b/include/asm-m68k/fpu.h
index 59701d7b4e78..ffb6b8cfc6d5 100644
--- a/include/asm-m68k/fpu.h
+++ b/include/asm-m68k/fpu.h
@@ -7,15 +7,15 @@
*/
#if defined(CONFIG_M68020) || defined(CONFIG_M68030)
-#define FPSTATESIZE (216/sizeof(unsigned char))
+#define FPSTATESIZE (216)
#elif defined(CONFIG_M68040)
-#define FPSTATESIZE (96/sizeof(unsigned char))
+#define FPSTATESIZE (96)
#elif defined(CONFIG_M68KFPU_EMU)
-#define FPSTATESIZE (28/sizeof(unsigned char))
+#define FPSTATESIZE (28)
#elif defined(CONFIG_M68060)
-#define FPSTATESIZE (12/sizeof(unsigned char))
+#define FPSTATESIZE (12)
#else
-#define FPSTATESIZE error no_cpu_type_configured
+#define FPSTATESIZE (0)
#endif
#endif /* __M68K_FPU_H */