Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp553633rwb; Sun, 6 Nov 2022 09:48:46 -0800 (PST) X-Google-Smtp-Source: AMsMyM75S1XG6bUhTjf9U5d8fhEdYfQUfX2AEyEmqbZ97vKS8PrRIBhOP+GKoBFvVfqe2sFOz1d3 X-Received: by 2002:a17:907:d89:b0:7a8:d67d:87d3 with SMTP id go9-20020a1709070d8900b007a8d67d87d3mr12771405ejc.364.1667756926670; Sun, 06 Nov 2022 09:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667756926; cv=none; d=google.com; s=arc-20160816; b=ydSg/80PNGyNKohDTF9s0/3msDmi8Y87AI9i5RsZtapAU9SBCbvK1vYjE5ETzwo5fl YoB4QTyUkVWEGVrx3IOBGPeswEmvMfSvHq6//BHsXN2n1RfO3iyYaOu5W6Tfvj4d9Uyj CX5cK+czOhRSjWqNj+UmJsKJtXsXRE58Dxd831wiJ70MbGi3/qdz9Zln+x/0eSgDIdGh US/GNEM9OFhW5JC46ZCCDY4UxLmMMIqgaDvrLHD+9NRD4ai/r0jRCrDmtkJJkdahRvcP bVH9g7cveIb7bG0J1NZyG3gqDEfwVHkXuVffhKAmJZg+C845vIvvqKAN4elUU28Khs6R YyPg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=77uA+/tVZY01pPesZJhuObP/J/S2CSKg0g3bN6g+Lsg=; b=LWsCthLakD/Z7A60kjwywaWuudgC9QCgYLCk/wj0lyQrN2+kXc9916+D/hGrv74xaX acocWmrHSMcfBudhyi225HoaGXRc62CdipqQjP9cafE59CcmYsNFatW8+dNbFWXIwJIb nAjpZX8Z9j7TOFpki+Uq0Fa6z7cKWcAs7UobQyf0XUvc2FEiNscxgvdzDWmpYtzcw045 YLXZVWtAjxcEYvBBc5NGg4cIagK48rZMyhLItNH61Pl55xDNSyVK0KMyWQl2SVEA3N4w vlasGsPRBh0UHUboxErcpnTXIOiEqwy+5yEBZGflU97m+3f2EjnrI9eSGOZ/VdLaoUSc 2ZWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FCVU44Mr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq10-20020a17090720ca00b0078cc8a2cf4bsi5008534ejb.614.2022.11.06.09.48.23; Sun, 06 Nov 2022 09:48:46 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FCVU44Mr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbiKFRLv (ORCPT + 96 others); Sun, 6 Nov 2022 12:11:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbiKFRLS (ORCPT ); Sun, 6 Nov 2022 12:11:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8030213FAF; Sun, 6 Nov 2022 09:07:18 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 4973060CF7; Sun, 6 Nov 2022 17:07:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E17FDC433C1; Sun, 6 Nov 2022 17:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667754422; bh=v8cGCJBDm0eZJLPzFSbLDbXewUjQNprW6ZfOK/nAJcc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FCVU44MrBh1DSAkQryVfxhX3EGo3dPUsJVvLheygaja58qDaen8xKjQEA7o2pulgH LiH4PGCz4tCEgWIqaxtNvTaFi+ADD7Gyhi3M2ayC3ZGTbShtXUUFjr2pcigCxAJuTm Rzg5otrDLDIHAq5rXTPX9z9MUeGRlKGnUtfpfAG20GRSYV91aiNpVNDXpvNYBDmZfE tm7XqulW2iqvFUT0A5ZVp7Qpx0KsIPC3ujeu94MEkI+0RiXBXbZkipMR/lvdsfX35M mqUlQ9shsOqNnGB6RTTlg5tnE0+ft+MJ4YObSOn3t+ATtYwZoNbUgqTkgAy5nhnh2f vynmA4KCmcy/Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Ricardo=20Ca=C3=B1uelo?= , Shuah Khan , Sasha Levin , shuah@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 11/12] selftests/intel_pstate: fix build for ARCH=x86_64 Date: Sun, 6 Nov 2022 12:06:35 -0500 Message-Id: <20221106170637.1580802-11-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221106170637.1580802-1-sashal@kernel.org> References: <20221106170637.1580802-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Ricardo Cañuelo [ Upstream commit beb7d862ed4ac6aa14625418970f22a7d55b8615 ] Handle the scenario where the build is launched with the ARCH envvar defined as x86_64. Signed-off-by: Ricardo Cañuelo Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/intel_pstate/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstate/Makefile index 7340fd6a9a9f..9fc1a40b0127 100644 --- a/tools/testing/selftests/intel_pstate/Makefile +++ b/tools/testing/selftests/intel_pstate/Makefile @@ -2,10 +2,10 @@ CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE LDLIBS := $(LDLIBS) -lm -uname_M := $(shell uname -m 2>/dev/null || echo not) -ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) +ARCH ?= $(shell uname -m 2>/dev/null || echo not) +ARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) -ifeq (x86,$(ARCH)) +ifeq (x86,$(ARCH_PROCESSED)) TEST_GEN_FILES := msr aperf endif -- 2.35.1