diff options
| author | Christoph Hellwig <hch@sgi.com> | 2003-02-20 21:44:13 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-20 21:44:13 -0800 |
| commit | 6fe56a9ff8a854dd27ba9bfe4f52d1c2cd0b6b8a (patch) | |
| tree | b9dd043b0a921cb8449fed396b658aed5880164b /include | |
| parent | 3d3f22bee87945d0590568873e93268a2639e7db (diff) | |
[PATCH] try_module_get(THIS_MODULE) is bogus
In most cases the fix is to add an struct module * member to the operations
vector instead and manipulate the refcounts in the callers context.
For the ALSA cases it was completly superflous (when will people get it that
using an exported symbol will make it's module unloadable?..)
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ipmi_smi.h | 11 | ||||
| -rw-r--r-- | include/linux/sunrpc/auth.h | 1 |
2 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/ipmi_smi.h b/include/linux/ipmi_smi.h index 5916dea748e3..f18187b00c05 100644 --- a/include/linux/ipmi_smi.h +++ b/include/linux/ipmi_smi.h @@ -78,6 +78,8 @@ struct ipmi_smi_msg struct ipmi_smi_handlers { + struct module *owner; + /* Called to enqueue an SMI message to be sent. This operation is not allowed to fail. If an error occurs, it should report back the error in a received message. It may @@ -93,15 +95,6 @@ struct ipmi_smi_handlers events from the BMC we are attached to. */ void (*request_events)(void *send_info); - /* Called when someone is using the interface, so the module can - adjust it's use count. Return zero if successful, or an - errno if not. */ - int (*new_user)(void *send_info); - - /* Called when someone is no longer using the interface, so the - module can adjust it's use count. */ - void (*user_left)(void *send_info); - /* Called when the interface should go into "run to completion" mode. If this call sets the value to true, the interface should make sure that all messages are flushed diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index a1ed52af2895..5fd520bb6c47 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h @@ -84,6 +84,7 @@ struct rpc_auth { * Client authentication ops */ struct rpc_authops { + struct module *owner; rpc_authflavor_t au_flavor; /* flavor (RPC_AUTH_*) */ #ifdef RPC_DEBUG char * au_name; |
