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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]> 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 <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux