mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
inet*.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. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e60ab84dd5
commit
1fd5115538
8 changed files with 155 additions and 163 deletions
|
@ -120,9 +120,9 @@ static inline void inetpeer_transfer_peer(unsigned long *to, unsigned long *from
|
|||
}
|
||||
}
|
||||
|
||||
extern void inet_peer_base_init(struct inet_peer_base *);
|
||||
void inet_peer_base_init(struct inet_peer_base *);
|
||||
|
||||
void inet_initpeers(void) __init;
|
||||
void inet_initpeers(void) __init;
|
||||
|
||||
#define INETPEER_METRICS_NEW (~(u32) 0)
|
||||
|
||||
|
@ -159,11 +159,11 @@ static inline struct inet_peer *inet_getpeer_v6(struct inet_peer_base *base,
|
|||
}
|
||||
|
||||
/* can be called from BH context or outside */
|
||||
extern void inet_putpeer(struct inet_peer *p);
|
||||
extern bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout);
|
||||
void inet_putpeer(struct inet_peer *p);
|
||||
bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout);
|
||||
|
||||
extern void inetpeer_invalidate_tree(struct inet_peer_base *);
|
||||
extern void inetpeer_invalidate_family(int family);
|
||||
void inetpeer_invalidate_tree(struct inet_peer_base *);
|
||||
void inetpeer_invalidate_family(int family);
|
||||
|
||||
/*
|
||||
* temporary check to make sure we dont access rid, ip_id_count, tcp_ts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue