summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2003-01-15 19:38:42 -0800
committerChristoph Hellwig <hch@sgi.com>2003-01-15 19:38:42 -0800
commitca58c4b632d3aaaa0640cbc4d886b70eec4bae5f (patch)
tree45f69a636d388395195461d18d2a2b3b934231e9 /include
parentcf34d92350569ae3840b43dd70577a596ec9dd33 (diff)
[PATCH] remove MOD_IN_USE
Another left-over from ancient module code, it was supposed to return non-zero if the module has a use count, but currently it always evaluates to 0. There are a few users of different types: (1) ioctl that perform a while(MOD_IN_USE) MOD_DEC_USE_COUNT loop. Just rip them out, we now have forced module unloading. (2) printk's that moan if the use-count in not zero in the exitfunc. Just rip them out, this can't happen. (3) if(MOD_IN_USE) MOD_DEC_USE_COUNT constructs in ->close of a few serial drivers. Just remove the conditional, we did a MOD_INC_USE_COUNT in ->open. (4) This one is interesting: drivers/sbus/char/display7seg.c uses the module use count to track openers. Replace this with an atomic_t. In addition remove tons of stale comments in network driver that aren't understandable for anyone who doesn't know ancient Linux module semantics.
Diffstat (limited to 'include')
-rw-r--r--include/linux/module.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index eb5540bd3119..6dad1479105f 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -437,7 +437,6 @@ static inline void __deprecated _MOD_INC_USE_COUNT(struct module *module)
#endif
}
#define EXPORT_NO_SYMBOLS
-#define MOD_IN_USE 0
#define __MODULE_STRING(x) __stringify(x)
/*