From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 325CFC4332F for ; Sun, 6 Nov 2022 17:08:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbiKFRIh (ORCPT ); Sun, 6 Nov 2022 12:08:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbiKFRHw (ORCPT ); Sun, 6 Nov 2022 12:07:52 -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 AB7EE12ACA; Sun, 6 Nov 2022 09:05:52 -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 A2E3460BFF; Sun, 6 Nov 2022 17:05:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 449D2C433D7; Sun, 6 Nov 2022 17:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667754345; bh=5rig4E0gWQ2552DDEVY5T99PzN2A0F32cShy/T8DvYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DrwQ3aboWBeA7lulybH9ZfgaUM2B0F6eoGjE20inJFUKqE231qplm5cJK1cGfQKEa UyDmvXiY+jN7GbPQkwl9fYJv6UlGMeBoP7zJsM0dnwR2ogoi/ssZfZl9HnauyqcBZ3 X71sj0tiERHBoIZ2pVxt24spAhDOO5oiEqlci/qqyzhn1V7/daCU1BMDt8q7SthKhV wNb+sthxc9W3IihNIY+jqSm+O7sjOTPWicq6X/0wVAbGV8jQsOnjGd/xX2P6F2e7EK N57iDb80qG0INznpiEp/7hnVMVH2fc7VB0So16J6hGvR/p+M4mT1JSfwzKtE2eiUng X97WNIAZoQE1A== 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.15 14/18] selftests/intel_pstate: fix build for ARCH=x86_64 Date: Sun, 6 Nov 2022 12:05:03 -0500 Message-Id: <20221106170509.1580304-14-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221106170509.1580304-1-sashal@kernel.org> References: <20221106170509.1580304-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 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 39f0fa2a8fd6..05d66ef50c97 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 += -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