From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933499AbcFQFHJ (ORCPT ); Fri, 17 Jun 2016 01:07:09 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:46351 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933405AbcFQFHF (ORCPT ); Fri, 17 Jun 2016 01:07:05 -0400 Date: Thu, 16 Jun 2016 22:06:59 -0700 (PDT) Message-Id: <20160616.220659.502030637416542450.davem@davemloft.net> To: arnd@arndb.de Cc: netdev@vger.kernel.org, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, dsa@cumulusnetworks.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/8] net: xfrm: fix old-style declaration From: David Miller In-Reply-To: <12896147.Nph51CCL66@wuerfel> References: <20160616135020.3154461-1-arnd@arndb.de> <12896147.Nph51CCL66@wuerfel> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 16 Jun 2016 22:06:59 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Thu, 16 Jun 2016 15:59:25 +0200 > Modern C standards expect the '__inline__' keyword to come before the return > type in a declaration, and we get a couple of warnings for this with "make W=1" > in the xfrm{4,6}_policy.c files: > > net/ipv6/xfrm6_policy.c:369:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] > static int inline xfrm6_net_sysctl_init(struct net *net) > net/ipv6/xfrm6_policy.c:374:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] > static void inline xfrm6_net_sysctl_exit(struct net *net) > net/ipv4/xfrm4_policy.c:339:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] > static int inline xfrm4_net_sysctl_init(struct net *net) > net/ipv4/xfrm4_policy.c:344:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] > static void inline xfrm4_net_sysctl_exit(struct net *net) > > Signed-off-by: Arnd Bergmann Applied.