2000-12-04 17:28:55

by Horst H. von Brand

[permalink] [raw]
Subject: 2.4.0.12.4: dummy.o problem (again)

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:[email protected]
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513