Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp394517rwb; Thu, 11 Aug 2022 03:36:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7HUc5MZjAAkQUqmPOstuXwBZzh3xK3CFKaUXj2nUy4H/IOn0KVwDOz7LllPPI8OExIlQXN X-Received: by 2002:a17:906:58c6:b0:731:39e0:3eb8 with SMTP id e6-20020a17090658c600b0073139e03eb8mr16722799ejs.205.1660214197572; Thu, 11 Aug 2022 03:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660214197; cv=none; d=google.com; s=arc-20160816; b=Byo4060i+QvuNBqwk1vpghe+y5/y/0R9u5/chgv31nbW07ti8Z6nQD+FqIQkGx4tuE bF0/lqlYx8uSd+C7eQvwYSfq54cLnCOSNCCW6CMk7dEmqnSiWChkCXk3CIDP4mYpMUv1 rKtueg4t37h5ZF3nxk5BKRqFESIe2481eyNmAn5komKlE0rbP8C/7Yt00mSVC2SHv7Xt A2NLGm/LbQemIXo8HfDOqzJ3+49aqvu0WxsC4hyo9GgiY/ci/NzwrPPYWyWpI6DZaRba mQju53tOeA6aiYkirN22qI3BVXyJUGLSaGPtU06IKfltoGtgeG2bEM8v+vzMPn4O0U9F /uEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id; bh=pYjOLe0Rky0QG30Inzp7KZbsGdlJG+pRd5iynFzWSKw=; b=cVT1B7elVH975vtbHG8wQSOsruZYcboizu2MuPzWzgeAHVjibV0Yb4mRXm/Zu6VhRF VsFP92QubnjQH5A009GBOsB+XH1iX/nqxwe62sYMKhQ3uf7QvmiUI3iDfZxatyfX0hEp RY3XKlNrRWy2+EfX47RTtsQVe01YxnjskIj6fxKm25UdsZYb5hXTpC7YLrKWAkgeEyy2 CZkGkllNxMo6DifMFvqWGoEbB+1FJD7/sA1ttYg03JwDgaoSQd7QWxL10Ve1mXzgIbBe g+WEOhLgIaaPTDv3wxPyQVdtMSmRN185KS6t7Q7/T88lHDjY8qyh+/zriq+LklKSqIo+ JRWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fu33-20020a170907b02100b0072b88d59ce5si5479349ejc.461.2022.08.11.03.36.07; Thu, 11 Aug 2022 03:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234055AbiHKKLq (ORCPT + 99 others); Thu, 11 Aug 2022 06:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbiHKKLp (ORCPT ); Thu, 11 Aug 2022 06:11:45 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C2A5A47B for ; Thu, 11 Aug 2022 03:11:44 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD712106F; Thu, 11 Aug 2022 03:11:44 -0700 (PDT) Received: from [10.57.86.55] (unknown [10.57.86.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F195F3F70D; Thu, 11 Aug 2022 03:11:42 -0700 (PDT) Message-ID: <48524c3d-c858-15ec-ac79-9547f3489b7b@arm.com> Date: Thu, 11 Aug 2022 11:11:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] tools headers arm64: Fix compilation failure To: Leo Yan , Arnaldo Carvalho de Melo , Catalin Marinas , Anshuman Khandual , Will Deacon , James Morse , linux-kernel@vger.kernel.org References: <20220811044341.426796-1-leo.yan@linaro.org> From: Suzuki K Poulose In-Reply-To: <20220811044341.426796-1-leo.yan@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Leo On 11/08/2022 05:43, Leo Yan wrote: > When build perf tool on x86_64, it reports failure for finding the > header : > Please could you mention the exact build options used for the perf build ? (e.g, enable SPE) > In file included from util/arm-spe.c:37: > util/../../arch/arm64/include/asm/cputype.h:183:10: fatal error: asm/sysreg.h: No such file or directory > 183 | #include > | ^~~~~~~~~~~~~~ > compilation terminated. > > There have no sysreg.h in x86's asm folder, alternatively, this patch > includes the sysreg.h header in the same folder with cputype.h to fix > the compilation failure. Wondering how the "cputype.h" was picked up from arch/arm64/include/ and why not the sysreg.h ? Ideally, we would like to pickup the kernel headers as it is without having to manually fixup, things like this. > > Fixes: 37402d5d061b ("tools headers arm64: Sync arm64's cputype.h with the kernel sources") Also from the above commit, "That addresses this perf build warning: Warning: Kernel ABI header at 'tools/arch/arm64/include/asm/cputype.h' differs from latest version at 'arch/arm64/include/asm/cputype.h' diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h " Wouldn't we re-introduce the warning back ? Suzuki