Messages in this thread Patch in this message | | | Date | Sat, 24 Jan 2004 12:40:16 +0100 (MET) | From | Mikael Pettersson <> | 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/
| |