Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp446333ybi; Mon, 15 Jul 2019 23:46:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9k/2xj9UkyhTBGr4v+IHJun0WE39B33VmW6qIjyQqlp5SNaFGJribYq+xCB0rKzi405Bh X-Received: by 2002:a17:902:9898:: with SMTP id s24mr32520113plp.226.1563259567655; Mon, 15 Jul 2019 23:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563259567; cv=none; d=google.com; s=arc-20160816; b=gGtziGS5cS3AU9MgJqPhuDAlwGAUlSp6/gPWALgDAXefPuaqNad/mjCt4dn7M7EPP4 dnT6nUb8+1Muyvva7PQ7s7oGyEGC94l4EB7BPnQs/tM7pVb6luKgyswobsd3avDb20EL iJOil9BAlg1QLEIQr5eK6NjO+mUbT1o0AuAkWTwKcgRp/ykruVKIWsMWkmRoenu60nPw Ym9leEOAcFNkpSvaakfiBs00VzFVLOxcgU6SsprEr+rk+nqSZcVIOeiyTuWN8bMsGybm ZMGuZ8JcD6QRxV6qEyQVkhLRjA9n//8TL1PlUWRzrNVWT8bLmfNwz4BpVm+j6+Bwz8MF bsmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=wyBqa/xowQ1dS9M9LftizJwIfclbEFgIfLTYLfJB+M8=; b=FvXJ7Npfgy876EbSyhDN1Vu2dFdQGunGiQtUzGDgOiZULbm6oOscOop3VGPHunZZ2u uhEQe5prCt3zEFW/NvNPon2oaESnoon3qLA+gqR4InQi2eK2XtlUARoTxdfAHSrUaXrp k3garX9nUQ0UxU7cLKhmKTie8FVrKxEwJswiCfBUbQr8/PhfSol/4yO8xkzZKvRsYvPF LxRGhRWHluVI/JNruvMMykMcyuVnD/yErZ/MIyGEyzYTeJOR9x+nCrUnYG2/QAzO1Bmh CPWlFmLOJNNw+rjPyml7CxBGhO7gHbqlRHUNM85CnrAJtKq3mIwtRV2aCHV2zcqMtJdi DWZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=IJqFn+H8; 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 m63si19050980pjb.8.2019.07.15.23.45.50; Mon, 15 Jul 2019 23:46:07 -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=@nifty.com header.s=dec2015msa header.b=IJqFn+H8; 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 S1726590AbfGPGp1 (ORCPT + 99 others); Tue, 16 Jul 2019 02:45:27 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:38678 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfGPGp1 (ORCPT ); Tue, 16 Jul 2019 02:45:27 -0400 Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x6G6j0tB024139; Tue, 16 Jul 2019 15:45:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x6G6j0tB024139 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563259501; bh=wyBqa/xowQ1dS9M9LftizJwIfclbEFgIfLTYLfJB+M8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IJqFn+H8zgVOweDNuHmiFrR2maGFtzYYOBvnTsV0ib4Of48hOxzUfCurvHTJqiI5n wT66VhUccaFzHUs6wo0aepQc3zn8O4GGcsZI5OBWS536oA5i0IoKYAkFDLOLAWuROC lqWkfLPVma/N3H5wgIuKerRlt4RVu8Qtzi5iXpW1jZzTEQIeI/k3AzRcIsHUg72Xmd gqjoaWyyZ0eJhDsF2bDQNDnxk77lHm0eWCZzEYN4DJKI2mGKSTJti71kBer5WZ1HDn rGiKNPALEUtbHF4sNHHQHf0CxXyeRRgGftdTr5RMP6U7Iy4KoqUG9LNLn1FqpPWKDy DgUWwOMPLyiRg== X-Nifty-SrcIP: [209.85.217.44] Received: by mail-vs1-f44.google.com with SMTP id y16so13149139vsc.3; Mon, 15 Jul 2019 23:45:00 -0700 (PDT) X-Gm-Message-State: APjAAAVnlfjfppALUh6dxLucoujKdo+yYpZDZ8JCDKWXrRG47CioUcgW msKP/MWU/rfETbzlz8/16QJZYCya6NvQ1/lled4= X-Received: by 2002:a67:f495:: with SMTP id o21mr18799846vsn.54.1563259499952; Mon, 15 Jul 2019 23:44:59 -0700 (PDT) MIME-Version: 1.0 References: <20190715144848.4cc41e07@canb.auug.org.au> <20190715173341.zth4na7zekjsesaa@salvia> <20190715180905.rytaht5kslpbatcy@salvia> In-Reply-To: <20190715180905.rytaht5kslpbatcy@salvia> From: Masahiro Yamada Date: Tue, 16 Jul 2019 15:44:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: Tree for Jul 15 (HEADERS_TEST w/ netfilter tables offload) To: Pablo Neira Ayuso Cc: Laura Garcia , Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , linux-kbuild , "netdev@vger.kernel.org" , Netfilter Development Mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 16, 2019 at 3:09 AM Pablo Neira Ayuso wrote: > > On Tue, Jul 16, 2019 at 02:56:09AM +0900, Masahiro Yamada wrote: > > On Tue, Jul 16, 2019 at 2:33 AM Pablo Neira Ayuso wrote: > > > > > > On Mon, Jul 15, 2019 at 07:28:04PM +0200, Laura Garcia wrote: > > > > CC'ing netfilter. > > > > > > > > On Mon, Jul 15, 2019 at 6:45 PM Randy Dunlap wrote: > > > > > > > > > > On 7/14/19 9:48 PM, Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > > > > > > > Please do not add v5.4 material to your linux-next included branches > > > > > > until after v5.3-rc1 has been released. > > > > > > > > > > > > Changes since 20190712: > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > I am seeing these build errors from HEADERS_TEST (or KERNEL_HEADERS_TEST) > > > > > for include/net/netfilter/nf_tables_offload.h.s: > > > > > > > > > > CC include/net/netfilter/nf_tables_offload.h.s > > > [...] > > > > > Should this header file not be tested? > > > > This means you must endlessly exclude > > headers that include nf_tables.h > > > > > > > Yes, it should indeed be added. > > > > Adding 'header-test-' is the last resort. > > OK, so policy now is that all internal headers should compile > standalone, right? I would not say that. I just want to put as much code as possible into the test-coverage. If there is a good reason to opt out of the header-test, that is OK. We should take a look at the cause of the error before blindly adding it into the blacklist. For this particular case, I just thought some functions could be localized in net/netfilter/, and would be cleaner. Having said that, I am not familiar enough with the netfilter subsystem. So, this should be reviewed by the experts in the area. Anyway, CONFIG_NF_TABLES seems mandatory to compile include/net/netfilter/nf_tables_*.h So, I will queue the following patch to suppress the error for now. diff --git a/include/Kbuild b/include/Kbuild index 7e9f1acb9dd5..e59605243bca 100644 --- a/include/Kbuild +++ b/include/Kbuild @@ -905,10 +905,11 @@ header-test- += net/netfilter/nf_nat_redirect.h header-test- += net/netfilter/nf_queue.h header-test- += net/netfilter/nf_reject.h header-test- += net/netfilter/nf_synproxy.h -header-test- += net/netfilter/nf_tables.h -header-test- += net/netfilter/nf_tables_core.h -header-test- += net/netfilter/nf_tables_ipv4.h +header-test-$(CONFIG_NF_TABLES) += net/netfilter/nf_tables.h +header-test-$(CONFIG_NF_TABLES) += net/netfilter/nf_tables_core.h +header-test-$(CONFIG_NF_TABLES) += net/netfilter/nf_tables_ipv4.h header-test- += net/netfilter/nf_tables_ipv6.h +header-test-$(CONFIG_NF_TABLES) += net/netfilter/nf_tables_offload.h header-test- += net/netfilter/nft_fib.h header-test- += net/netfilter/nft_meta.h header-test- += net/netfilter/nft_reject.h This test just landed in upstream, and will take some time to iron out the issues. If I am disturbing people too much, I perhaps need to loosen the policy. Sorry if this test is too annoying. Thanks. -- Best Regards Masahiro Yamada