[PATCH] ppc32: Fix sector_t definition with CONFIG_LBD

From: Benjamin Herrenschmidt
Date: Mon Mar 29 2004 - 01:33:18 EST


Hi !

sector_t depends on CONFIG_LBD but include/config.h may not be there
thus causing interesting breakage in some places...

Here's the fix for ppc32 (problem found by Roman Zippel, other archs
need a similar fix).

diff -urN linux-2.5/include/asm-ppc/types.h linuxppc-2.5-benh/include/asm-ppc/types.h
--- linux-2.5/include/asm-ppc/types.h 2004-03-01 18:13:06.000000000 +1100
+++ linuxppc-2.5-benh/include/asm-ppc/types.h 2004-03-29 13:14:50.000000000 +1000
@@ -37,6 +37,8 @@

#ifndef __ASSEMBLY__

+#include <linux/config.h>
+
typedef signed char s8;
typedef unsigned char u8;



-
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/