Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3927887pxb; Tue, 26 Jan 2021 08:08:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlKnPMJIMe3SH4z2NFrZ4wIHKpFwvPgVRPbCq5iSs2OnB7i8R4hPPN+sZQECRqpDZlugxm X-Received: by 2002:a17:906:2ccb:: with SMTP id r11mr3979046ejr.39.1611677320746; Tue, 26 Jan 2021 08:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611677320; cv=none; d=google.com; s=arc-20160816; b=DAeSj4GHMB4ekvMTepKRy93fD9e8OsqF9PAO5tcc0T81XM7Ipt9ZB9xWIoTyHQURVn VF+c7VzJp+dBKhpF+DzsAtiE+R85snC7E/vwNV/TD8n+rStr8nypKpTJhsshUA/9Rpac ZNt2HQGiBTa3ll2j6sAFJvQ/KBE0y53B3JWafexOvDv8Ya13YdeZJb1ZLWcVduOA69sI zrK3R9ZnF0Gq1kww3VV09pcIfNromQKvmerRBvpule8GP+RW+GFeyLibnzgWzLBjKC7E 1FSW9vdSfbconjC7n+G22O2zM3tKM5F6/1/jZyITZB/QTNBUzSTwwQhj2UTZKem9OQVA qtlA== 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=5XR5WywP59GBh2VX0M3AkNnntemRvKmO8Rxou8F+Lo0=; b=JfqvRJIfUGPamVIY4mXtMNgnkH8EHXvEMYv1TVHrEGvSDPZ56QcWkxGYmlFr4Xq7Fj xQWHBIFfaIavsswOXmRRQO1h/8I7Ijr7Ufixa1tHSWP52fGal++WoFNPHs7enrOSnXMr LNUjKgeYtJEM7eUEeSeEQuUJvZnZKDV1nEmmF1ixEIwSiwdzIzFN5wa8pxMI1sfFB/oV 2RNLnVCgVPIr25A9EWQ46wSnjAkhfZGBdg/6YQOgBw8bKrHuFCKy6DlI6iMU9M5fjUGW GBem7vba955ZvsTmU0o6fpik7UXznm3mXgJQhAjL0d2mSn2osQKzBOJghnaG0V46NNj9 TtLQ== 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 j22si8754340edh.496.2021.01.26.08.08.13; Tue, 26 Jan 2021 08:08:40 -0800 (PST) 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 S2404348AbhAZQCY (ORCPT + 99 others); Tue, 26 Jan 2021 11:02:24 -0500 Received: from www62.your-server.de ([213.133.104.62]:55492 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391626AbhAZQCJ (ORCPT ); Tue, 26 Jan 2021 11:02:09 -0500 Received: from sslproxy05.your-server.de ([78.46.172.2]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1l4QmC-0007wD-Pt; Tue, 26 Jan 2021 17:01:08 +0100 Received: from [85.7.101.30] (helo=pc-9.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4QmC-000VGR-Et; Tue, 26 Jan 2021 17:01:08 +0100 Subject: Re: [PATCH bpf-next] samples/bpf: Add include dir for MIPS Loongson64 to fix build errors To: Tiezhu Yang , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Nathan Chancellor , Nick Desaulniers Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li References: <1611669925-25315-1-git-send-email-yangtiezhu@loongson.cn> From: Daniel Borkmann Message-ID: <67891f2f-a374-54fb-e6e5-44145190934f@iogearbox.net> Date: Tue, 26 Jan 2021 17:01:07 +0100 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: <1611669925-25315-1-git-send-email-yangtiezhu@loongson.cn> 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.102.4/26061/Tue Jan 26 13:29:51 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/26/21 3:05 PM, Tiezhu Yang wrote: > There exists many build errors when make M=samples/bpf on the Loongson > platform, this issue is MIPS related, x86 compiles just fine. > > Here are some errors: [...] > > So we can do the similar things in samples/bpf/Makefile, just add > platform specific and generic include dir for MIPS Loongson64 to > fix the build errors. Your patch from [0] said ... There exists many build warnings when make M=samples/bpf on the Loongson platform, this issue is MIPS related, x86 compiles just fine. Here are some warnings: [...] With #ifndef __SANE_USERSPACE_TYPES__ in tools/include/linux/types.h, the above error has gone and this ifndef change does not hurt other compilations. ... which ave the impression that all the issues were fixed. What else is needed aside from this patch here? More samples/bpf fixes coming? If yes, please all submit them as a series instead of individual ones. [0] https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=190d1c921ad0862da14807e1670f54020f48e889 > Signed-off-by: Tiezhu Yang > --- > samples/bpf/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile > index 362f314..45ceca4 100644 > --- a/samples/bpf/Makefile > +++ b/samples/bpf/Makefile > @@ -185,6 +185,10 @@ endif > > ifeq ($(ARCH), mips) > TPROGS_CFLAGS += -D__SANE_USERSPACE_TYPES__ > +ifdef CONFIG_MACH_LOONGSON64 > +BPF_EXTRA_CFLAGS += -I$(srctree)/arch/mips/include/asm/mach-loongson64 > +BPF_EXTRA_CFLAGS += -I$(srctree)/arch/mips/include/asm/mach-generic > +endif > endif > > TPROGS_CFLAGS += -Wall -O2 >