Commit b60a8280 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

af_unix.h: Remove extern from function prototypes

There are a mix of function prototypes with and without extern
in the kernel sources.  Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler.  Its use is as unnecessary as
using auto to declare automatic/local variables in a block.

Reflow modified prototypes to 80 columns.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e8e54d3c
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
#include <linux/mutex.h> #include <linux/mutex.h>
#include <net/sock.h> #include <net/sock.h>
extern void unix_inflight(struct file *fp); void unix_inflight(struct file *fp);
extern void unix_notinflight(struct file *fp); void unix_notinflight(struct file *fp);
extern void unix_gc(void); void unix_gc(void);
extern void wait_for_unix_gc(void); void wait_for_unix_gc(void);
extern struct sock *unix_get_socket(struct file *filp); struct sock *unix_get_socket(struct file *filp);
extern struct sock *unix_peer_get(struct sock *); struct sock *unix_peer_get(struct sock *);
#define UNIX_HASH_SIZE 256 #define UNIX_HASH_SIZE 256
#define UNIX_HASH_BITS 8 #define UNIX_HASH_BITS 8
...@@ -71,8 +71,8 @@ long unix_inq_len(struct sock *sk); ...@@ -71,8 +71,8 @@ long unix_inq_len(struct sock *sk);
long unix_outq_len(struct sock *sk); long unix_outq_len(struct sock *sk);
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
extern int unix_sysctl_register(struct net *net); int unix_sysctl_register(struct net *net);
extern void unix_sysctl_unregister(struct net *net); void unix_sysctl_unregister(struct net *net);
#else #else
static inline int unix_sysctl_register(struct net *net) { return 0; } static inline int unix_sysctl_register(struct net *net) { return 0; }
static inline void unix_sysctl_unregister(struct net *net) {} static inline void unix_sysctl_unregister(struct net *net) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment