Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5771380ioo; Wed, 1 Jun 2022 12:13:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO0HsXsWaiKrC90Y+dQdS9z2OXf45BSqosbB8iSXIBs7J5gJLK4tfHPmxv1ip5XQ+U8kHt X-Received: by 2002:a63:24a:0:b0:3fc:52a9:b5d6 with SMTP id 71-20020a63024a000000b003fc52a9b5d6mr754742pgc.132.1654110806051; Wed, 01 Jun 2022 12:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654110806; cv=none; d=google.com; s=arc-20160816; b=qqkeq2ibxJYDE5ZsBW71vdnEkx7xNWXjCo6WGL7L8Pd2ouVaO1lknlxukJvAt4SyNs Z3ei+eRERTN+zMaBCNVZYXGSwVSArlD9k959zWysIQSiswoPLeXgjHIXpg1gzLvqubwC MZab8S9ZxM8W///qfPnvuwUj7rrLP4GF2qbq7s74LvtwVym/jztPa15cGCIBO5ahLUMI hUBtAurJYCYeeI4KNVKJXYeP6m1Dg9gsHAZ1y6BScKBhqS9CocBEmlZErdDD9J7ts7Di w1jM3UszOk1Y0GxjkEO0EWiO72ukp7cFVG8y6j6v9PKsZRuTsTPVlqAyzambQvHQ5jxP IHzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=RpCdKpznXVR38ZH2oF6JnOiHB2Ad6CagJuZSMX9uxkA=; b=VWyXxEgKYqQFWur+RTZrrnz/fv3NCjds2jLtU8cHxhJUGKjsR7M00h0ghJ4SVP+iEd SdlSitaNd+Azb/SodKp5YNONRpSVTWrcCMPjShZi58Hxcp7W+IgqwlNpcTzzOwD+sEyB kdcmSrAQJRg4kV96nnZ8looDHkixo9eQRmy1KojKocNs+Cyp6ulsgXKnmJ0/GKsXH4Yl 0CFrPH/JGmFCZNTVbpRiBvxbtFTY/fjmtKtxh7tMW3teIzNgVm/KZP0FTD+dRDycxyIu lgHoahHHE7LS7Hl3L7ONqpC8G7Hqltj+uYqnVHGUzGFwQFanAVQJ9D53kfYgK+J1m2ew whXA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r16-20020a632b10000000b003fcae53b1f0si2726678pgr.25.2022.06.01.12.13.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:13:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A85A0DEDF; Wed, 1 Jun 2022 11:51:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348601AbiEaXBb (ORCPT + 99 others); Tue, 31 May 2022 19:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346457AbiEaXBa (ORCPT ); Tue, 31 May 2022 19:01:30 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F16F8D698; Tue, 31 May 2022 16:01:29 -0700 (PDT) Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nwArS-0004W3-2r; Wed, 01 Jun 2022 01:01:14 +0200 Received: from [85.1.206.226] (helo=linux-2.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nwArR-000Czu-Lw; Wed, 01 Jun 2022 01:01:13 +0200 Subject: Re: [PATCH] selftests net: fix bpf build error To: Lina Wang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: Alexei Starovoitov , Andrii Nakryiko , Maciej enczykowski , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com, rong.a.chen@intel.com, kernel test robot References: <20220530062126.27808-1-lina.wang@mediatek.com> From: Daniel Borkmann Message-ID: <9c462ffc-f2c0-f542-4e61-251571da8c22@iogearbox.net> Date: Wed, 1 Jun 2022 01:01:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20220530062126.27808-1-lina.wang@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.6/26558/Tue May 31 10:05:17 2022) X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/22 8:21 AM, Lina Wang wrote: > bpf_helpers.h has been moved to tools/lib/bpf since 5.10, so add more > incliding path. > > Fixes: edae34a3ed92 ("selftests net: add UDP GRO fraglist + bpf self-tests") > Reported-by: kernel test robot > Signed-off-by: Lina Wang > --- > tools/testing/selftests/net/bpf/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/net/bpf/Makefile b/tools/testing/selftests/net/bpf/Makefile > index f91bf14bbee7..070251986dbe 100644 > --- a/tools/testing/selftests/net/bpf/Makefile > +++ b/tools/testing/selftests/net/bpf/Makefile > @@ -2,6 +2,7 @@ > > CLANG ?= clang > CCINCLUDE += -I../../bpf > +CCINCLUDE += -I../../../../lib > CCINCLUDE += -I../../../../../usr/include/ > > TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o > From building the selftest in general, I'm getting: clang -O2 -target bpf -c bpf/nat6to4.c -I../../bpf -I../../../../lib -I../../../../../usr/include/ -o /root/daniel/bpf/tools/testing/selftests/net/bpf/nat6to4.o In file included from bpf/nat6to4.c:27: In file included from /usr/include/linux/bpf.h:11: /usr/include/linux/types.h:5:10: fatal error: 'asm/types.h' file not found #include ^~~~~~~~~~~~~ 1 error generated. Could we reuse the build infra from tools/testing/selftests/bpf/ for nat6to4.c?