Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2023526ybi; Thu, 20 Jun 2019 07:54:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv2pdcjoyPmasJPP5bDJ5pEPOcaqCw3lkG4adGnvdv60RlW5i17wshiF38NLpiElkCNmvI X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr97996797plb.46.1561042494955; Thu, 20 Jun 2019 07:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561042494; cv=none; d=google.com; s=arc-20160816; b=Db0k7Qgi9bw3xh5UxzYTLjy0MwyhAo6Ist1Yfx0Pi7PzQY0cQjXnfBgNnQlzVNYoC1 KMb7l69EcPYzqwm6ekigS3fAjqXRsLXgyzo7+R8uxp6Z+upgP1C/BpmdT0rdqb1aMIFy EVGuBdtR+4fraTtsZ2dRDfZ7H5sZDN6BxncqntK4hEetY2hGw69RtUdv8UYXXCrsCPdD DBBQe9pAKQIcjPebUKainhRcT+amhoP/gy8SwCFdus0+UZFfAUwakckk8Zc85iYiVHzG w+6acx6H+zbFVv6RE1clGJfiYXDzHkoXgB3U5em5BlUtOhzT0kLw9f+6Ld63iq2jkdr5 0qdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=5oMdsQsw1n7pkd5dZK0BAR68goU9Cphs7Z7vjhmXNXA=; b=s0HOz98enLDxzLyaOlN888Nc82+2eEWxm3RImJ3AjNm/wZffeLcPN9lmJhgIu+opPq FvocKYdeSi1w6HjGRHDtHwClkkVJY6jaiHdiGJlr2IUCsgpjb7PbIqCUrL/vIguBu0iI /OaLOeTrDIJGXB4hrkJZccQo5Ep7mRuTRxtCGmiwZJY3WVCT7CWbVX75ryiXZJ7/mkcd 5Ggj96QA0Den8d6WRNAuUr5AgZDP1tuKxtqTLn/ghU+6CUg6i1/B0E+M7M4Q5G8euTok QlRpHnY+oSKo/zlIGbTeQvRdE02KVbExEFkcHXf3A7/3egCe9J8I7tTNtJcrQKzEiA6q O9Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=if6+rXao; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si14436311plo.223.2019.06.20.07.54.38; Thu, 20 Jun 2019 07:54:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=if6+rXao; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbfFTOxA (ORCPT + 99 others); Thu, 20 Jun 2019 10:53:00 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:36039 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732048AbfFTOw6 (ORCPT ); Thu, 20 Jun 2019 10:52:58 -0400 Received: by mail-qk1-f194.google.com with SMTP id g18so2109997qkl.3 for ; Thu, 20 Jun 2019 07:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=5oMdsQsw1n7pkd5dZK0BAR68goU9Cphs7Z7vjhmXNXA=; b=if6+rXaoBnz+H02oYwem3HWXB48VPwWoSvmotiKQcqueZkz88R/UOJrQJGPnqSxWh0 X3WWxz+KMriBFBvZG0/EZYb9KDDdGilbulSCa5O193BQx6OEd9S4APxsT3UV78tLkx6n 9WXhfxiDzSEcl6WRrOWKy533PY7TkmIDzQcBW47lcU6tBxY6A/Leti2v2Qxk0TsMDGA6 1hqoNBZw/ZyMe154WWMQCmMz6g4Lj58hgSdmjM6+cwvRNW3fbMoFd6qdZ0iPJMu4of9V y7ZbI0HRLfHcm8QOkYoc0KpKXqUbujLWeiBtQ02Z71c6zN+vOkispdwvmTBl0TJGOVHZ H8Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5oMdsQsw1n7pkd5dZK0BAR68goU9Cphs7Z7vjhmXNXA=; b=P/ZB6n8mDiQtB975yV/Df6ShnsrctaWKGV/x2iKM8XCExti6STF2IH4sBOcJY7VrUJ f9OezE4NSEwtMnVKHA+h8mRSW5fr/ygit+dU4kGNkBYaeEu+ifDkNF1saCXwEdbVQ8Ap dNc+ax2bcTaPOVHL1WY/GEqM6VrO8Q0PoXXjaZUiTXTvGwYCg9N+R3QN4WbQqZK8On34 qPyKyrD2niAvVYAAQPUXJLFwrRAyYvIB6a3yq6CPsNmI5OzIwUTrKbsDIodr1DxmWOcy Z0yS50ypdU9Z0xhK5C2fBTTOFSxI7Zc6Ra9VXHW5D6L150R6etg4/GFHvMV0j3syjTNj ROmA== X-Gm-Message-State: APjAAAWogSsz/7QaA6MIkbz8cy3meQD9mdLiNN01F1h2nGtAIwCjrWmx AJgFYyOL13nDcDw3+jcXT0fn3g== X-Received: by 2002:ae9:eb96:: with SMTP id b144mr25466663qkg.321.1561042377583; Thu, 20 Jun 2019 07:52:57 -0700 (PDT) Received: from qcai.nay.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id f9sm10553867qtl.75.2019.06.20.07.52.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 07:52:57 -0700 (PDT) From: Qian Cai To: davem@davemloft.net Cc: edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH -next] inet: fix compilation warnings in fqdir_pre_exit() Date: Thu, 20 Jun 2019 10:52:40 -0400 Message-Id: <1561042360-20480-1-git-send-email-cai@lca.pw> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/20190618180900.88939-3-edumazet@google.com/ Signed-off-by: Qian Cai --- include/net/inet_frag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index 46574d996f1d..010f26b31c89 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h @@ -114,7 +114,7 @@ struct inet_frags { int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net); -static void inline fqdir_pre_exit(struct fqdir *fqdir) +static inline void fqdir_pre_exit(struct fqdir *fqdir) { fqdir->high_thresh = 0; /* prevent creation of new frags */ fqdir->dead = true; -- 1.8.3.1