patch-2.4.0-test12 linux/include/linux/module.h
Next file: linux/include/linux/mtd/cfi.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon Dec 11 16:26:39 2000
- Orig file:
v2.4.0-test11/linux/include/linux/module.h
- Orig date:
Sun Nov 19 18:44:22 2000
diff -u --recursive --new-file v2.4.0-test11/linux/include/linux/module.h linux/include/linux/module.h
@@ -168,6 +168,7 @@
* Keith Owens <kaos@ocs.com.au> 28 Oct 2000.
*/
+#ifdef __KERNEL__
#define HAVE_INTER_MODULE
extern void inter_module_register(const char *, struct module *, const void *);
extern void inter_module_unregister(const char *);
@@ -183,6 +184,7 @@
};
extern int try_inc_mod_count(struct module *mod);
+#endif /* __KERNEL__ */
#if defined(MODULE) && !defined(__GENKSYMS__)
@@ -345,7 +347,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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)