Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp49121pxb; Thu, 30 Sep 2021 00:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBFGpugbATvqzz841uGbL2nR+IrBHEmJ8+MLB1l2bLqeEVaGqgAr5pn698YPodoM4udSm2 X-Received: by 2002:a50:bec9:: with SMTP id e9mr5405704edk.33.1632986725480; Thu, 30 Sep 2021 00:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632986725; cv=none; d=google.com; s=arc-20160816; b=mZJYhSDcEG8J9PXVxn4wATHvtOjZoYCAtPOJDflSaJxxeLyTmw3fzVzkU7CdbHNGBY cHil+gIImjRUPv1EwX9vGQFNUATmVOOfdDMqEf4Wi+kr80sJKN8DmKHzkJ21ptSUJnVV InazUu5WI74pKaOl4X2u0KZ02Fjix4Ok99Bd7Rky267AHE0QSRpzo6IlD0yuappt4DdL uK6tG+N9ZfK0rk1YdvORFMG61IHGQ+mPIsaKyJGnE6mk0u5WWbPTmqVWUQKNAt90gJu2 DK6rLqNSKRcVoTFIqw9MRvSYjjoFVMNj4ordkF3h3YlaSl66xVEM4dU0TnJxBvRwm6RN 5+SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=nmldbXE3v/uwUq441TWCUJa1S0wqo/kgguWj5+faY1M=; b=vTZ0K7gTCMJhIdzlh0xqZbc531jQTZxfktndizmKRVta4OARCD58FscMCj9DYiQut6 /YogCs6AP3wpBXnekXk4W8oh/g1pnGI5pbPeY92yjArmYpHVLI8X4rxpu+kO/iSxoAAW yEDCGI9euiPOUSCEjUG6t3I+hpm/fptlc6I7Ex2C6RTsXRFDlYlIfoHgdJ341a8hjKJy HYCfRy8HGDnSWC0x8Cx5Q6zsjPiIIeIurOqVuUnESZEnsmuokVqe2l5b/xi42HkyvgRW cdTQxVMNhKQfFlmr/ceGFIxVDx9LK7GoNLwRvtbhEWcSgWMu52Uh8puvExitldavm77c HVRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si2612927edc.203.2021.09.30.00.24.30; Thu, 30 Sep 2021 00:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348637AbhI3HW0 (ORCPT + 99 others); Thu, 30 Sep 2021 03:22:26 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:59851 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348581AbhI3HW0 (ORCPT ); Thu, 30 Sep 2021 03:22:26 -0400 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Thu, 30 Sep 2021 03:22:25 EDT Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id CEE1F102A4F05; Thu, 30 Sep 2021 09:13:33 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id AE187276E09; Thu, 30 Sep 2021 09:13:33 +0200 (CEST) Date: Thu, 30 Sep 2021 09:13:33 +0200 From: Lukas Wunner To: kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Pablo Neira Ayuso Subject: Re: [l1k:nft_egress_v5 4/5] net/netfilter/nfnetlink_hook.c:232:17: error: 'netdev' undeclared; did you mean 'net_eq'? Message-ID: <20210930071333.GB28709@wunner.de> References: <202109301429.nkI9cvIc-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202109301429.nkI9cvIc-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 02:39:37PM +0800, kernel test robot wrote: > net/netfilter/nfnetlink_hook.c: In function 'nfnl_hook_entries_head': > >> net/netfilter/nfnetlink_hook.c:232:17: error: 'netdev' undeclared (first use in this function); did you mean 'net_eq'? > 232 | netdev = dev_get_by_name_rcu(net, dev); > | ^~~~~~ > | net_eq > net/netfilter/nfnetlink_hook.c:232:17: note: each undeclared identifier is reported only once for each function it appears in Thank you, trusty robot. I've just fixed up the branch as follows: diff --git a/net/netfilter/nfnetlink_hook.c b/net/netfilter/nfnetlink_hook.c index 782d2db..c1559e8 100644 --- a/net/netfilter/nfnetlink_hook.c +++ b/net/netfilter/nfnetlink_hook.c @@ -185,7 +185,7 @@ static int nfnl_hook_dump_one(struct sk_buff *nlskb, nfnl_hook_entries_head(u8 pf, unsigned int hook, struct net *net, const char *dev) { const struct nf_hook_entries *hook_head = NULL; -#ifdef CONFIG_NETFILTER_INGRESS +#if defined(CONFIG_NETFILTER_INGRESS) || defined(CONFIG_NETFILTER_EGRESS) struct net_device *netdev; #endif