mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 17:43:43 +00:00
tcp/dccp: fix old style declarations
I’m using the compilation flag -Werror=old-style-declaration, which
requires that the “inline” word would come at the beginning of the code
line.
$ make drivers/net/ethernet/intel/e1000e/e1000e.ko
...
include/net/inet_timewait_sock.h:116:1: error: ‘inline’ is not at
beginning of declaration [-Werror=old-style-declaration]
static void inline inet_twsk_schedule(struct inet_timewait_sock *tw, int
timeo)
include/net/inet_timewait_sock.h:121:1: error: ‘inline’ is not at
beginning of declaration [-Werror=old-style-declaration]
static void inline inet_twsk_reschedule(struct inet_timewait_sock *tw,
int timeo)
Fixes: ed2e923945
("tcp/dccp: fix timewait races in timer handling")
Signed-off-by: Raanan Avargil <raanan.avargil@intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
33a8316d9c
commit
8695a144da
@ -113,12 +113,12 @@ void __inet_twsk_hashdance(struct inet_timewait_sock *tw, struct sock *sk,
|
||||
void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo,
|
||||
bool rearm);
|
||||
|
||||
static void inline inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo)
|
||||
static inline void inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo)
|
||||
{
|
||||
__inet_twsk_schedule(tw, timeo, false);
|
||||
}
|
||||
|
||||
static void inline inet_twsk_reschedule(struct inet_timewait_sock *tw, int timeo)
|
||||
static inline void inet_twsk_reschedule(struct inet_timewait_sock *tw, int timeo)
|
||||
{
|
||||
__inet_twsk_schedule(tw, timeo, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user