Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp144239iob; Tue, 17 May 2022 21:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2JA29O9mwSBubJ2RidSjObsCnC26PfjC1h6ie8pW4QjLLk70Na0vl9r8h/+JujQsdpeU7 X-Received: by 2002:a63:4a10:0:b0:3db:40e0:5c62 with SMTP id x16-20020a634a10000000b003db40e05c62mr22124483pga.595.1652849087660; Tue, 17 May 2022 21:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652849087; cv=none; d=google.com; s=arc-20160816; b=LIOclf37KvBcT1UuakX4KbU5Qlif/WZ3X80TGsNbfjslmKnHJqvMmagfOVQqJWx/4Y Rgy5SGmRgV9MuoiFDylis1F7Sde8QrGY5Frzt2U47t5ezOD0EK7wBgh+yxeoWYZnIaCH Yf9bGJFYjXVK+WUA5GfC48/XeCLKYBs5LxtIshIgmNj1op2bDhtRhepRdyI67Vblw63l nnjYfXZaJP0UKV0OTHI5VIIy4ZHKX73Vt3zFK5GcRIapuS2aMenVU3m5/Y55Sq4NB7Qb 0kwWZXVAQkYQ8R0B677nSjHdsiY1iGNV/8AZKDY5dx6qiNTsUQixbFn6XkAG85f4eGv8 vMyg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wT+hWv5vAyqZZn0fHN21LqO4QlFgPs4HgjTHDdQOahA=; b=ozX+4X8XtS4vF++M0+sJL1s+I4knY2F901iZiBktqDeZlf6ligmjd1Aqe6pVh+hrTC scQF8G0WKJrh3wmeysrX9B266zvyZ2b0gYnxSJq/Bfo88rA//VbFBmx3AdPyI+sbhYLb r1R9Nt/ZJV9T4uHqfG1z631lZCgV8I419Qftr9LEvYkBdd6YSiTWY5ShS8GjHrWJ/EKt m2x9o4n6gvXfKBR15v5a6eqcPzsS4zkgtzvD1nzV4YRMcGCHWWQqtpi0SuHmiKTwW5qg mc7JNWcr6ed6OCizpuzJETNjsO4/tBsa9IXW9JfK+QTAgLD7p4jYOzQFIhsuTMHExong zF9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sk6biLpI; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id iw5-20020a170903044500b0015d21512abfsi1215825plb.527.2022.05.17.21.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:44:47 -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=@linuxfoundation.org header.s=korg header.b=Sk6biLpI; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45553703D7; Tue, 17 May 2022 20:57:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348715AbiEPU1n (ORCPT + 99 others); Mon, 16 May 2022 16:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349864AbiEPUAd (ORCPT ); Mon, 16 May 2022 16:00:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 887AE45042; Mon, 16 May 2022 12:54:38 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id E4457B81611; Mon, 16 May 2022 19:54:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A974C385AA; Mon, 16 May 2022 19:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652730874; bh=vQDzAR231MULCvS7YopUOddxQ2LvNDxKv47FVYkL5Xg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sk6biLpIxLOijLqURfxZVgeZMj2yZ/rKrxlSuQEfKE9OETVQK55dX4PPdMSzgCPvF vj3oMUFkLXmvfKunZd3Y9FkKv/4LyFm65idhzt8ajg0WZJpn48Y45N8750zx52NayK Oi4TG/o+42FfSIEcrQZocNrlHm1BdS2AF/+VEPao= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joel Savitz , Nico Pache , Shuah Khan , Sandipan Das , Dave Hansen , Andrew Morton , Sasha Levin Subject: [PATCH 5.17 031/114] selftests: vm: Makefile: rename TARGETS to VMTARGETS Date: Mon, 16 May 2022 21:36:05 +0200 Message-Id: <20220516193626.384278798@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516193625.489108457@linuxfoundation.org> References: <20220516193625.489108457@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 From: Joel Savitz [ Upstream commit 41c240099fe09377b6b9f8272e45d2267c843d3e ] The tools/testing/selftests/vm/Makefile uses the variable TARGETS internally to generate a list of platform-specific binary build targets suffixed with _{32,64}. When building the selftests using its own Makefile directly, such as via the following command run in a kernel tree: One receives an error such as the following: make: Entering directory '/root/linux/tools/testing/selftests' make --no-builtin-rules ARCH=x86 -C ../../.. headers_install make[1]: Entering directory '/root/linux' INSTALL ./usr/include make[1]: Leaving directory '/root/linux' make[1]: Entering directory '/root/linux/tools/testing/selftests/vm' make[1]: *** No rule to make target 'vm.c', needed by '/root/linux/tools/testing/selftests/vm/vm_64'. Stop. make[1]: Leaving directory '/root/linux/tools/testing/selftests/vm' make: *** [Makefile:175: all] Error 2 make: Leaving directory '/root/linux/tools/testing/selftests' The TARGETS variable passed to tools/testing/selftests/Makefile collides with the TARGETS used in tools/testing/selftests/vm/Makefile, so rename the latter to VMTARGETS, eliminating the collision with no functional change. Link: https://lkml.kernel.org/r/20220504213454.1282532-1-jsavitz@redhat.com Fixes: f21fda8f6453 ("selftests: vm: pkeys: fix multilib builds for x86") Signed-off-by: Joel Savitz Acked-by: Nico Pache Cc: Joel Savitz Cc: Shuah Khan Cc: Sandipan Das Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- tools/testing/selftests/vm/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 1530c3e0242e..259df83ecd2e 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -55,9 +55,9 @@ CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_prog CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_64bit_program.c) CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_program.c -no-pie) -TARGETS := protection_keys -BINARIES_32 := $(TARGETS:%=%_32) -BINARIES_64 := $(TARGETS:%=%_64) +VMTARGETS := protection_keys +BINARIES_32 := $(VMTARGETS:%=%_32) +BINARIES_64 := $(VMTARGETS:%=%_64) ifeq ($(CAN_BUILD_WITH_NOPIE),1) CFLAGS += -no-pie @@ -110,7 +110,7 @@ $(BINARIES_32): CFLAGS += -m32 -mxsave $(BINARIES_32): LDLIBS += -lrt -ldl -lm $(BINARIES_32): $(OUTPUT)/%_32: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@ -$(foreach t,$(TARGETS),$(eval $(call gen-target-rule-32,$(t)))) +$(foreach t,$(VMTARGETS),$(eval $(call gen-target-rule-32,$(t)))) endif ifeq ($(CAN_BUILD_X86_64),1) @@ -118,7 +118,7 @@ $(BINARIES_64): CFLAGS += -m64 -mxsave $(BINARIES_64): LDLIBS += -lrt -ldl $(BINARIES_64): $(OUTPUT)/%_64: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@ -$(foreach t,$(TARGETS),$(eval $(call gen-target-rule-64,$(t)))) +$(foreach t,$(VMTARGETS),$(eval $(call gen-target-rule-64,$(t)))) endif # x86_64 users should be encouraged to install 32-bit libraries -- 2.35.1