From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934030AbcI3RHV (ORCPT ); Fri, 30 Sep 2016 13:07:21 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:36575 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933377AbcI3RHN (ORCPT ); Fri, 30 Sep 2016 13:07:13 -0400 From: Aaron Conole To: Arnd Bergmann Cc: Pablo Neira Ayuso , Patrick McHardy , Jozsef Kadlecsik , "David S. Miller" , Florian Westphal , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] netfilter: hide reference to nf_hooks_ingress References: <20160930160559.4102745-1-arnd@arndb.de> <20160930160559.4102745-2-arnd@arndb.de> Date: Fri, 30 Sep 2016 13:06:40 -0400 In-Reply-To: <20160930160559.4102745-2-arnd@arndb.de> (Arnd Bergmann's message of "Fri, 30 Sep 2016 18:05:35 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > A recent cleanup added an unconditional reference to the nf_hooks_ingress pointer, > but that fails when CONFIG_NETFILTER_INGRESS is disabled and that member is > not present in net_device: > > net/netfilter/core.c: In function 'nf_set_hooks_head': > net/netfilter/core.c:96:30: error: 'struct net_device' has no member named 'nf_hooks_ingress' > > This avoids the build error by simply enclosing the assignment in an #ifdef, > which may or may not be the correct fix. NAK, it's not the right fix. The entry being set may be leaked with only this hunk. I've posted a complete fix for this. Sorry that it was broken.