Skip to content
  • Raanan Avargil's avatar
    tcp/dccp: fix old style declarations · 8695a144
    Raanan Avargil authored
    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: ed2e9239
    
     ("tcp/dccp: fix timewait races in timer handling")
    Signed-off-by: default avatarRaanan Avargil <raanan.avargil@intel.com>
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8695a144