From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752724AbdKMMnV (ORCPT ); Mon, 13 Nov 2017 07:43:21 -0500 Received: from mail.us.es ([193.147.175.20]:39820 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbdKMMnU (ORCPT ); Mon, 13 Nov 2017 07:43:20 -0500 Date: Mon, 13 Nov 2017 13:43:14 +0100 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Arnd Bergmann Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Liping Zhang , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [net-next] netfilter: add ifdef around ctnetlink_proto_size Message-ID: <20171113124314.GA6695@salvia> References: <20171107141214.3312784-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171107141214.3312784-1-arnd@arndb.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 07, 2017 at 03:11:51PM +0100, Arnd Bergmann wrote: > This function is no longer marked 'inline', so we now get a warning > when it is unused: > > net/netfilter/nf_conntrack_netlink.c:536:15: error: 'ctnetlink_proto_size' defined but not used [-Werror=unused-function] > > We could mark it inline again, mark it __maybe_unused, or add an #ifdef > around the definition. I'm picking the third approach here since that > seems to be what the rest of the file has. Applied, thanks Arnd.