patch-1.3.33 linux/include/linux/module.h

Next file: linux/include/linux/mouse.h
Previous file: linux/include/linux/lp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.32/linux/include/linux/module.h linux/include/linux/module.h
@@ -95,8 +95,14 @@
 int Using_Versions; /* gcc will handle this global (used as a flag) correctly */
 #endif
 
+#ifdef MODULE
 #define MOD_INC_USE_COUNT      mod_use_count_++
 #define MOD_DEC_USE_COUNT      mod_use_count_--
 #define MOD_IN_USE	       (mod_use_count_ != 0)
+#else
+#define MOD_INC_USE_COUNT	do { } while (0)
+#define MOD_DEC_USE_COUNT	do { } while (0)
+#define MOD_IN_USE		1
+#endif
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this