lkml.org 
[lkml]   [2004]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.4.25-pre7 load_LDT() bug in setup.c
The LDT changes in 2.4.25-pre7 are incomplete, resulting in:

setup.c: In function `cpu_init':
setup.c:3194: warning: passing arg 1 of `load_LDT' from incompatible pointer type

in arch/i386/kernel/setup.c. Fix below.

/Mikael

--- linux-2.4.25-pre7/arch/i386/kernel/setup.c.~1~ 2004-01-24 11:45:10.000000000 +0100
+++ linux-2.4.25-pre7/arch/i386/kernel/setup.c 2004-01-24 12:18:53.000000000 +0100
@@ -3191,7 +3191,7 @@
set_tss_desc(nr,t);
gdt_table[__TSS(nr)].b &= 0xfffffdff;
load_TR(nr);
- load_LDT(&init_mm);
+ load_LDT(&init_mm.context);

/*
* Clear all 6 debug registers:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.034 / U:1.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site