Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp987252pxb; Fri, 15 Apr 2022 17:30:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm0J6KV96KhcblUm58NJYRulROUP4DUz5hMBPE9Bz0eJB1plsT19rHcYsysfOTVqqyfTOM X-Received: by 2002:a65:6e0e:0:b0:399:26d7:a224 with SMTP id bd14-20020a656e0e000000b0039926d7a224mr1107898pgb.437.1650069025976; Fri, 15 Apr 2022 17:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069025; cv=none; d=google.com; s=arc-20160816; b=KdFOeK5jUXAG9jh01EpstcqywNfQBMY0Y4A5jOqnCfSqLxgAVJ9qD+kAWZbOinhpdW woV24Z6RXQwgcqU7TT6DyATlIFz+UjBpqba7ZJrZNXP91hN9x4H4+AVHe+eb7Kj1xYHs z3fEyjWSsZXxY7p8jI1frOShAN/rbGbVaBw2l5dKQuhqGza9zbYKaVP3YgOdjzPusW9Z b4wsNrysj9gHxf7/oxWNCguSUFoUHqfuHeH9HQb2JLR5ROYEs6Oi8uAlhZo8H0M7R4gD M9PWyv9sztsMfU2+Knb3JtYPg3ELM1b7rdUT7+nhkVJh5BdmDoUyPNEIr9T0Mw+1MpgT eBaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jWkX2x9hmSn4kFpYi38TRwW1KIP6UnQx7FdSmONcbMY=; b=bUT0uenKLL9jodBTjeJoFy5UiRdqywoo7hHw5NNq8e1u6W/79QYmTRENQeZ2QYe0/u L6+KugR+L3mRTyrqrpTUUT+7jxdpAUxnmdTF+4v+/oIJ+X3K8I/27cwQlOTJ5ugXUGJP RXpRHK7CQ50LP6eq1/0jZRO6h7J5ZTVzgkDd85jg1EEX935/LnFUU2S0Y5gHDCfjDkql MXETCZQKFRnWZALxsMpjT2qAWrLhBZPo37NyVHb3jpiSUJBF1xPPNlFwkkA8TCSTCQFb oJPBScTjf6PIYDmcLG8VsB37+/SHZTUZ+lTV1E2Ej4cs675e+PgzQ7L69gCycdqr/Npl gzMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iXx1eEWa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z9-20020a6553c9000000b0039cb4085773si2765908pgr.876.2022.04.15.17.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iXx1eEWa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89B3CE6C66; Fri, 15 Apr 2022 17:27:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236579AbiDOXiN (ORCPT + 99 others); Fri, 15 Apr 2022 19:38:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232616AbiDOXiM (ORCPT ); Fri, 15 Apr 2022 19:38:12 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DC454BFD5; Fri, 15 Apr 2022 16:35:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id B7AE4CE31E1; Fri, 15 Apr 2022 23:35:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A128C385AB; Fri, 15 Apr 2022 23:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650065738; bh=36GzXrQ0XGK7C5vbiiV0ktcyeA7F6rACtEbIBGiF3Gw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iXx1eEWaz8brLgqBJN4vsW6VTYCngf+8+P/Pbrf8jCHrG4tLTi8FilS/Z2Jt+RP1Y oq1vksA8qipJ2z9lb/HcIm4p8uXzJsqFw+LJ/8i5gB8tnLgyZcSV/NIuFkA3RzNc0Y IEldDb2ClV6PGqzy9WADWOQBKtMkHJAosOlamjfsRjIk+PD814CmsnOPx2Ket3be5V LZxdK6yHLNdcOJywv1/c1mlRu2BG6ozc873sCU/dZVsCrz2Zs+NQ1gHgQgA1/DsmrE 7lnh4b+TlTXwDcvqJOI/z57239ge+muXztey2O8amqG/xmb9zsZRR7ABqeF/azmouX gneMLqDOmab/A== Received: by mail-yb1-f169.google.com with SMTP id z33so16663414ybh.5; Fri, 15 Apr 2022 16:35:38 -0700 (PDT) X-Gm-Message-State: AOAM533ZTb2RpLTrTrvujRuG2y03XBW+gvPDestr4+9FVb4TkOFboRMN Pwt4XsnXOKhhDipM6sTNwOCJ4BJY3+m2Dk74B2E= X-Received: by 2002:a05:6902:114c:b0:641:87a7:da90 with SMTP id p12-20020a056902114c00b0064187a7da90mr1420300ybu.561.1650065737268; Fri, 15 Apr 2022 16:35:37 -0700 (PDT) MIME-Version: 1.0 References: <20220414223704.341028-1-alobakin@pm.me> <20220414223704.341028-5-alobakin@pm.me> In-Reply-To: <20220414223704.341028-5-alobakin@pm.me> From: Song Liu Date: Fri, 15 Apr 2022 16:35:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf-next 04/11] samples: bpf: add 'asm/mach-generic' include path for every MIPS To: Alexander Lobakin Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Jonathan Lemon , Nathan Chancellor , Nick Desaulniers , Dmitrii Dolgov <9erthalion6@gmail.com>, Quentin Monnet , Tiezhu Yang , Kumar Kartikeya Dwivedi , Chenbo Feng , Willem de Bruijn , Daniel Wagner , Thomas Graf , Ong Boon Leong , linux-perf-users@vger.kernel.org, open list , Networking , bpf , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 Thu, Apr 14, 2022 at 3:45 PM Alexander Lobakin wrote: > > Fix the following: > > In file included from samples/bpf/tracex2_kern.c:7: > In file included from ./include/linux/skbuff.h:13: > In file included from ./include/linux/kernel.h:22: > In file included from ./include/linux/bitops.h:33: > In file included from ./arch/mips/include/asm/bitops.h:20: > In file included from ./arch/mips/include/asm/barrier.h:11: > ./arch/mips/include/asm/addrspace.h:13:10: fatal error: 'spaces.h' file not found > #include > ^~~~~~~~~~ > > 'arch/mips/include/asm/mach-generic' should always be included as > many other MIPS include files rely on this. > Move it from under CONFIG_MACH_LOONGSON64 to let it be included > for every MIPS. > > Fixes: 058107abafc7 ("samples/bpf: Add include dir for MIPS Loongson64 to fix build errors") > Signed-off-by: Alexander Lobakin Acked-by: Song Liu > --- > samples/bpf/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile > index 8fff5ad3444b..97203c0de252 100644 > --- a/samples/bpf/Makefile > +++ b/samples/bpf/Makefile > @@ -193,8 +193,8 @@ 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 > +BPF_EXTRA_CFLAGS += -I$(srctree)/arch/mips/include/asm/mach-generic > endif > > TPROGS_CFLAGS += -Wall -O2 > -- > 2.35.2 > >