2.4.0.12.4: dummy.o problem (again)

From: Horst von Brand (vonbrand@inf.utfsm.cl)
Date: Mon Dec 04 2000 - 11:57:44 EST


A better (right, IMVHO) patch is:

--- linux-2.4.0-test/include/linux/module.h~ Mon Dec 4 09:06:47 2000
+++ linux-2.4.0-test/include/linux/module.h Mon Dec 4 13:55:18 2000
@@ -345,7 +345,7 @@
 #endif /* MODULE */
 
 #ifdef CONFIG_MODULES
-#define SET_MODULE_OWNER(some_struct) do { some_struct->owner = THIS_MODULE; } while (0)
+#define SET_MODULE_OWNER(some_struct) do { (some_struct)->owner = THIS_MODULE; } while (0)
 #else
 #define SET_MODULE_OWNER(some_struct) do { } while (0)
 #endif

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 21:00:11 EST