Messages in this thread Patch in this message |  | | Subject | 2.4.0.12.4: dummy.o problem (again) | Date | Mon, 04 Dec 2000 13:57:44 -0300 | From | Horst von Brand <> |
| |
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/
|  |