Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5215706rdb; Wed, 13 Dec 2023 02:15:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4H99m6L9ls6VhtEj8dHAuuKxe7EmHUsyqzy5B91nqO9zAmGpLMmPYBW0WjioegRWKcoH2 X-Received: by 2002:a17:903:187:b0:1d2:fa04:7cb7 with SMTP id z7-20020a170903018700b001d2fa047cb7mr9577744plg.5.1702462546032; Wed, 13 Dec 2023 02:15:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702462546; cv=none; d=google.com; s=arc-20160816; b=wKY4X0YbSnFsG2+fs/JxPCDs2Tme+h367kWjnhDhz4bWVMWbthOfloUXJy3zvUbWM2 qkFDPmzjcqlktI0VbgvJRJwyt7Qe+1+RKSm2loI0eH7EC/EY0rscccwmB4mE+E8SWnRl 03PN8zna3Mcsg0wFuRokx3IhzxK+KTeGedJrC9ONB5zl4p1SjxVFTxISl5lsjtW5dOQV 2WDQ06WLP9QcKwQ3Agl81po7c60muoYG5jAlQhQ1NrGuUVs5HwPAl+kxOTPZLJBolXUW kJUGOhw5M5N+x4jY4DIXyYE7MBMqOQdAaBjQkVXm9EV4BreIFa2Yq8RuKiznfgjhl3Od eOZA== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=UTapl1uxonH5GLr6kDZhq3Fd0UQM/U3X5t8UkCgCf9U=; fh=E1itCC0csjh6wSPgXPUImUCBjELTH8OTYOs0oYPQAzY=; b=qdw/x0tm7dH6G2DkZNLU5kuD6noQZ1x4+CtG+iruec1Jz2WTeabyyYbKjfDhenc4gM RIxscLCFeS/FSnDECvVxdlRg3qX3/p8rYdfm02BSG5ko3stftqS3DvkaZPUV7p3LWgo4 HVzcIBi8AuKdF6swcYry+1jKW/gQrhh8MtyFn+sPMl+EsNq5AvEZi2QMV5khcEL/vNMR qPub36w5yzsWmJdggequQL5/nDJBtCH9DiIIp9QspsASK+hO1gggbcaWQrwnAUdk5FyK 7liyHtCTn4W9PCr112/EvMyxIWBWDjJJ2h76+spfTrmagRgXxjdMt+tJGFEPLgZJzlbO OJkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id iz18-20020a170902ef9200b001d35223d0c3si644792plb.68.2023.12.13.02.15.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:15:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8EB97809AFBF; Wed, 13 Dec 2023 02:15:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235226AbjLMKPV (ORCPT + 99 others); Wed, 13 Dec 2023 05:15:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbjLMKPV (ORCPT ); Wed, 13 Dec 2023 05:15:21 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45150121; Wed, 13 Dec 2023 02:15:27 -0800 (PST) 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 E2699C15; Wed, 13 Dec 2023 02:16:12 -0800 (PST) Received: from [192.168.1.3] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 246543F738; Wed, 13 Dec 2023 02:15:26 -0800 (PST) Message-ID: <90b43e2e-4bbc-d1f2-dba5-8c9174e7398f@arm.com> Date: Wed, 13 Dec 2023 10:15:25 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: linux-next: build failure after merge of the arm-perf tree Content-Language: en-US To: Will Deacon , Stephen Rothwell Cc: Catalin Marinas , Linux Kernel Mailing List , Linux Next Mailing List References: <20231213100931.12d9d85e@canb.auug.org.au> <20231213093057.GA31075@willie-the-truck> From: James Clark In-Reply-To: <20231213093057.GA31075@willie-the-truck> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, 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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:15:39 -0800 (PST) On 13/12/2023 09:30, Will Deacon wrote: > Hi Stephen, [+James] > > On Wed, Dec 13, 2023 at 10:09:31AM +1100, Stephen Rothwell wrote: >> After merging the arm-perf tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> In file included from drivers/perf/arm_dmc620_pmu.c:26: >> include/linux/perf/arm_pmu.h:15:10: fatal error: asm/cputype.h: No such file or directory >> 15 | #include >> | ^~~~~~~~~~~~~~~ > > Damn, I tested with allnoconfig, defconfig and allmodconfig before I pushed, > but only for ARCH=arm64. Thanks for reporting this. > >> I can't easily tell what caused this - possibly commit >> >> a5f4ca68f348 ("perf/arm_dmc620: Remove duplicate format attribute #defines") >> >> I have used the arm-perf and arm64 trees from next-20231212 for today >> (since the arm64 tree merged the arm-perf tree). > > That looks likely. I'll try reverting it and see if it resolves the problem > locally. > > Cheers, > > Will Oops sorry about that, I didn't expect that change to break the x86 build so I didn't test it there, but it's because of CONFIG_COMPILE_TEST. a5f4ca68f348 is the offending commit, and reverting it would fix it (it was just a tidyup). But this change below also works. That include was to build ARM_PMU_PROBE which is only used in perf_event_v6.c (and v7) which both already include asm/cputype.h. Although maybe that would be a bit of a hack. diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h index 337f01674b38..a4876b1c481a 100644 --- a/include/linux/perf/arm_pmu.h +++ b/include/linux/perf/arm_pmu.h @@ -12,7 +12,6 @@ #include #include #include -#include #ifdef CONFIG_ARM_PMU