lkml.org 
[lkml]   [2000]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: test12-pre4 drivers/net/dummy
Ok, so here's the proper patch for those who dont want to wait for t5 =)
Ignore previous.

On Mon, 4 Dec 2000, Jeff Garzik wrote:

> the fix is in module.h which needs extra parens in the def of
> set_module_owner...
>
> Jeff

--

=====================================================================
Mohammad A. Haque http://www.haque.net/
mhaque@haque.net

"Alcohol and calculus don't mix. Project Lead
Don't drink and derive." --Unknown http://wm.themes.org/
batmanppc@themes.org
=====================================================================
--- linux/include/linux/module.h.orig Mon Dec 4 09:15:38 2000
+++ linux/include/linux/module.h Mon Dec 4 09:35:25 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
\
 
 \ /
  Last update: 2005-03-22 12:51    [W:0.034 / U:5.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site