tcp/dccp: fix old style declarations
authorRaanan Avargil <raanan.avargil@intel.com>
Thu, 1 Oct 2015 11:48:53 +0000 (04:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 11:02:59 +0000 (04:02 -0700)
commit8695a144da9e500a5a60fa34c06694346ec1048f
treebd3b0e2b8200b609c0822be43177ef4f2009e70c
parent33a8316d9cda4368e7cb477fff36c9ee35d4164e
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: ed2e92394589 ("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>
include/net/inet_timewait_sock.h