patch-1.3.36 linux/include/linux/module.h
Next file: linux/include/linux/mroute.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Oct 19 16:32:20 1995
- Orig file:
v1.3.35/linux/include/linux/module.h
- Orig date:
Tue Oct 10 18:46:38 1995
diff -u --recursive --new-file v1.3.35/linux/include/linux/module.h linux/include/linux/module.h
@@ -90,12 +90,12 @@
* define the count variable, and usage macros.
*/
-extern long mod_use_count_;
#if defined(CONFIG_MODVERSIONS) && defined(MODULE) && !defined(__GENKSYMS__)
int Using_Versions; /* gcc will handle this global (used as a flag) correctly */
#endif
#ifdef MODULE
+extern long mod_use_count_;
#define MOD_INC_USE_COUNT mod_use_count_++
#define MOD_DEC_USE_COUNT mod_use_count_--
#define MOD_IN_USE (mod_use_count_ != 0)
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