Skip to content

Commit 08003d0

Browse files
Qian Caidavem330
authored andcommitted
inet: fix compilation warnings in fqdir_pre_exit()
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) ^~~~~~ In file included from ./include/net/netns/ipv4.h:10, from ./include/net/net_namespace.h:20, from ./include/linux/netdevice.h:38, from ./include/linux/icmpv6.h:13, from ./include/linux/ipv6.h:86, from ./include/net/ipv6.h:12, from ./include/rdma/ib_verbs.h:51, from ./include/linux/mlx5/device.h:37, from ./include/linux/mlx5/driver.h:51, from drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c:37: [1] https://lore.kernel.org/netdev/[email protected]/ Signed-off-by: Qian Cai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c9acece commit 08003d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/inet_frag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void inet_frags_fini(struct inet_frags *);
114114

115115
int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net);
116116

117-
static void inline fqdir_pre_exit(struct fqdir *fqdir)
117+
static inline void fqdir_pre_exit(struct fqdir *fqdir)
118118
{
119119
fqdir->high_thresh = 0; /* prevent creation of new frags */
120120
fqdir->dead = true;

0 commit comments

Comments
 (0)