From: Jeff Dike Date: Fri, 6 Jan 2006 08:19:02 +0000 (-0800) Subject: [PATCH] uml: better diagnostics for broken configs X-Git-Tag: v2.6.16-rc1~936^2~131 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44700a4469b6bb89e6f1edd32b8a4a915dd967c6;p=linux-2.6 [PATCH] uml: better diagnostics for broken configs Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/include/choose-mode.h b/arch/um/include/choose-mode.h index f25fa83a5d..b87b36a87d 100644 --- a/arch/um/include/choose-mode.h +++ b/arch/um/include/choose-mode.h @@ -23,6 +23,9 @@ static inline void *__choose_mode(void *tt, void *skas) { #elif defined(UML_CONFIG_MODE_TT) #define CHOOSE_MODE(tt, skas) (tt) + +#else +#error CONFIG_MODE_SKAS and CONFIG_MODE_TT are both disabled #endif #define CHOOSE_MODE_PROC(tt, skas, args...) \