mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Jeff Dike <jdike@addtoit.com>
Cc: linux-kernel@vger.kernel.org,
	user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [PATCH 4/9] UML - Better diagnostics for broken configs
Date: Wed, 4 Jan 2006 15:24:33 -0800	[thread overview]
Message-ID: <20060104152433.7304ec75.akpm@osdl.org> (raw)
In-Reply-To: <200601042151.k04LpxbH009237@ccure.user-mode-linux.org>

Jeff Dike <jdike@addtoit.com> wrote:
>
> Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled.
> 
> Signed-off-by: Jeff Dike <jdike@addtoit.com>
> 
> Index: linux-2.6.15/arch/um/include/choose-mode.h
> ===================================================================
> --- linux-2.6.15.orig/arch/um/include/choose-mode.h	2005-08-28 19:41:01.000000000 -0400
> +++ linux-2.6.15/arch/um/include/choose-mode.h	2005-11-17 10:43:47.000000000 -0500
> @@ -23,6 +23,9 @@ static inline void *__choose_mode(void *
>  
>  #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...) \

Is there no sane way to prevent this situation within Kconfig?

  reply	other threads:[~2006-01-04 23:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-04 21:51 Jeff Dike
2006-01-04 23:24 ` Andrew Morton [this message]
2006-01-05  2:21   ` Jeff Dike
2006-01-06 12:44     ` [2.6 patch] UML - Prevent MODE_SKAS=n and MODE_TT=n Adrian Bunk
2006-01-06 16:39       ` Jeff Dike
2006-01-06 16:18         ` Adrian Bunk
2006-01-07  5:22           ` Jeff Dike
2006-01-07  5:23       ` Jeff Dike
2006-01-05  7:45 ` [PATCH 4/9] UML - Better diagnostics for broken configs Jan Engelhardt
2006-01-05 16:14   ` Jeff Dike
2006-01-05 21:59     ` Jan Engelhardt
2006-01-06  0:53       ` Jeff Dike
2006-01-07  0:01       ` [uml-devel] " Rob Landley
2006-01-07  2:37         ` Jeff Dike
2006-01-07 15:12           ` Jan Engelhardt
2006-01-07 23:17             ` Jeff Dike
2006-01-08  3:50             ` Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060104152433.7304ec75.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=jdike@addtoit.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®