mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[UNIX]: Extend unix_sysctl_(un)register prototypes
Add the struct net * argument to both of them to use in the future. Also make the register one return an error code. It is useless right now, but will make the future patches much simpler. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dd88590995
commit
97577e3828
3 changed files with 9 additions and 8 deletions
|
@ -60,11 +60,11 @@ struct unix_sock {
|
|||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
extern int sysctl_unix_max_dgram_qlen;
|
||||
extern void unix_sysctl_register(void);
|
||||
extern void unix_sysctl_unregister(void);
|
||||
extern int unix_sysctl_register(struct net *net);
|
||||
extern void unix_sysctl_unregister(struct net *net);
|
||||
#else
|
||||
static inline void unix_sysctl_register(void) {}
|
||||
static inline void unix_sysctl_unregister(void) {}
|
||||
static inline int unix_sysctl_register(struct net *net) { return 0; }
|
||||
static inline void unix_sysctl_unregister(struct net *net) {}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue