[2.6 patch] UML - Prevent MODE_SKAS=n and MODE_TT=n

From: Adrian Bunk
Date: Fri Jan 06 2006 - 07:44:35 EST


On Wed, Jan 04, 2006 at 09:21:29PM -0500, Jeff Dike wrote:
> On Wed, Jan 04, 2006 at 03:24:33PM -0800, Andrew Morton wrote:
> > Jeff Dike <jdike@xxxxxxxxxxx> wrote:
> > >
> > > Produce a compile-time error if both MODE_SKAS and MODE_TT are disabled.
> > Is there no sane way to prevent this situation within Kconfig?
>
> I tried. The best I managed was to get *config to moan about circular
> dependencies.

The patch below implements this in Kconfig.

> Jeff

cu
Adrian


<-- snip -->


If MODE_TT=n, MODE_SKAS must be y.


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-git/arch/um/Kconfig.old 2006-01-06 13:41:02.000000000 +0100
+++ linux-git/arch/um/Kconfig 2006-01-06 13:41:14.000000000 +0100
@@ -83,7 +83,7 @@
of physical memory.

config MODE_SKAS
- bool "Separate Kernel Address Space support"
+ bool "Separate Kernel Address Space support" if MODE_TT
default y
help
This option controls whether skas (separate kernel address space)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/