Re: [PATCH -next] inet: fix compilation warnings in fqdir_pre_exit()

From: Eric Dumazet
Date: Thu Jun 20 2019 - 11:26:37 EST


On Thu, Jun 20, 2019 at 10:52 AM Qian Cai <cai@xxxxxx> wrote:
>
> The linux-next commit "inet: fix various use-after-free in defrags
> units" [1] introduced compilation warnings,
>
> ./include/net/inet_frag.h:117:1: warning: 'inline' is not at beginning
> of declaration [-Wold-style-declaration]
> static void inline fqdir_pre_exit(struct fqdir *fqdir)
> ^~~~~~

Interesting warning, this is kind of new compiler major feature I guess :/

BTW :

$ git grep -n "static void inline" | wc -l
9