Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp972753pxb; Fri, 22 Apr 2022 15:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR+usZM4EF5UlwzcD4G40xbZA8DH8cBNAhayE36w87n7S3PUHVKW96LetJ/dx4Evbvjt2c X-Received: by 2002:a17:90a:343:b0:1cb:234a:a975 with SMTP id 3-20020a17090a034300b001cb234aa975mr18545435pjf.83.1650667309273; Fri, 22 Apr 2022 15:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667309; cv=none; d=google.com; s=arc-20160816; b=v0OCn6QqPnE2p7CFLCxp4i/4OK5mjKXStPbH11bcYUAWaR3aw84DBwdrtEu7PYvOJk f0e2IefIX9MKNrxKXW3AmtS+7PaGSZCc/KvG5ug3OzZpOPJJaRbHvG7AfXY3SjcGRi6Q 19/UP74sm3WXFxHv5FcbkJwOXXhCPy1H562tJDPVL0tba6vSjjsxmcwBmWp/1Ci5qvGe MdzzdoqSU7+UlT7ffEOde8By/DZo9sNCkwbL/a478M395lLO1xLZeA6DIOD6oK76CfZT zMe/H7V4RIpYubzrYEsz8HZY8gSIPwMwQv1hykoDe4wqIHOEGDBTDIyRHUJGHuL9OnZh /vaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=wuC1+vhay3ASZ7SmRAfdiwma2HlM/uaJNS3a/KTFZuQ=; b=pX3iFPAOZFF8n/TZ3g2Xf9ULUSEyGPkYAw6XkTwmj+rrhzY1SX6+hg+LcwAqLsVx+l 0bIVreb+E4Nf9HXyef3oAf421jFIyBYFIG7ySireA1G/6v/eJu26wHS8Ec8Y8BeQbGBW 7FZNl1PxUmf56nrw1KlWJ8GknpjAwj+m99Wh5Brue/ZjIZ7/+AeTojG2hglCaEeWRT/J BuK6XNmsQrA95M20ktqElmIHB1lZOwF3+xpcbKptUz7caBCuW/4m9IdC3kNFj+Fx6DxN 5oRwpougOUvf6DMDNpqxhckg07rwgSujpQk4wViVv2cC0h7Hn8bDYozIr5vNExvhsb7U WEQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail2 header.b=NIW25xfb; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p63-20020a62d042000000b004fa3a8e0040si6499311pfg.247.2022.04.22.15.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:41:49 -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; dkim=pass header.i=@pm.me header.s=protonmail2 header.b=NIW25xfb; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83B7B283A31; Fri, 22 Apr 2022 13:29:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383527AbiDUAok (ORCPT + 99 others); Wed, 20 Apr 2022 20:44:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383504AbiDUAmU (ORCPT ); Wed, 20 Apr 2022 20:42:20 -0400 Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B5ED237CD for ; Wed, 20 Apr 2022 17:39:32 -0700 (PDT) Date: Thu, 21 Apr 2022 00:39:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail2; t=1650501571; bh=wuC1+vhay3ASZ7SmRAfdiwma2HlM/uaJNS3a/KTFZuQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=NIW25xfbt5y/meQ91SkENqxh9jDr3xHuEFfIe9oFetZeS9Esx9nq8D+f3xtwOA4R5 b8GP5uR12nhhBLrs6GCiJ9HDeL2dRxCDOeTJFvJrsvupR+G9tQBAfOuRy3NbmPIKQG yUsJCTvZzpOmbj9S6V4ErjLhrazOgUcobhQeqJXW4HwXhIeTgHVcnj+sK2WvRUkvNp dnrx3QM6E4YCMKtE3+EIDd8FW/HTImIihzbNRxk28a1+yBz0CpoF09lH7OXpmdDOl+ bWGk2DnVUw9kxrDqtPC+fMy3Eakf9VhoJseNmaf9Rycy1KX5opa+VHbFubileRA6jJ 71UbHrbwvhDsQ== To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko From: Alexander Lobakin Cc: Alexander Lobakin , Maciej Fijalkowski , Song Liu , Kumar Kartikeya Dwivedi , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 bpf 05/11] samples/bpf: add 'asm/mach-generic' include path for every MIPS Message-ID: <20220421003152.339542-6-alobakin@pm.me> In-Reply-To: <20220421003152.339542-1-alobakin@pm.me> References: <20220421003152.339542-1-alobakin@pm.me> Feedback-ID: 22809121:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 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 f= ix build errors") Acked-by: Song Liu Signed-off-by: Alexander Lobakin --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 38638845db9d..70323ac1114f 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -194,8 +194,8 @@ ifeq ($(ARCH), mips) TPROGS_CFLAGS +=3D -D__SANE_USERSPACE_TYPES__ ifdef CONFIG_MACH_LOONGSON64 BPF_EXTRA_CFLAGS +=3D -I$(srctree)/arch/mips/include/asm/mach-loongson64 -BPF_EXTRA_CFLAGS +=3D -I$(srctree)/arch/mips/include/asm/mach-generic endif +BPF_EXTRA_CFLAGS +=3D -I$(srctree)/arch/mips/include/asm/mach-generic endif TPROGS_CFLAGS +=3D -Wall -O2 -- 2.36.0