Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4671060iob; Sun, 8 May 2022 21:23:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSxt9yGzDTZ9K3F1oed1BNr6fsuQqdWp1/lOw2WU9che2cU0z6ftECUR9iRUlO/AlE40Kx X-Received: by 2002:a63:8ac3:0:b0:3aa:fc39:93b with SMTP id y186-20020a638ac3000000b003aafc39093bmr11585625pgd.6.1652070195226; Sun, 08 May 2022 21:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652070195; cv=none; d=google.com; s=arc-20160816; b=1C4CovAsa/OB829iwfjbFujZBhtKLS6EnHTPaDZjcqESHpJSurqxU3SgkxKai1sPKU Q7bimY5A+TeSABAppFNiJw09PtfGXlu6Z1Wh1Ga8Q+B9EFf/98mQ6oCSTaXqYAOAAgw5 uV6t/mHHGCOO/JZqJPERWM9YYx++TjfiwGSJV1q4qKgRrwUAoPI1Wb9hpRNmXKI1kGCF O7RVcRyV3/HhH+S4ftmp6QhLlGph9Cyt/yiHi1jIpI6FniP2DBM8qbzgG0yINOMXw2HF z6ht/8Uivac8pgV142uJ07NxbkAIU6ccB9i8+8ZMNyf+MywVZLkp35U34amYbN9dgRRv La2Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3s3JJtjWkXdQIeMB4qwH1W143SmCevkLkyYdal6KkRA=; b=oqN08PMnWr+2sPAWpqujXXlCnqmZNSP2FgoJcHUChnJ6t24R+0IkmYUWWGMwRbkYYZ J+aPdJh5p36PrbQouME3e1Nz5qVv2xdPvXEP12QPXndAl5Nt89u33tsrwsp30v+/Qzrk DTMn6ynjWM5I39OrlEGPuMbHA8mv5ytoJi1a60W8YaVq3r0Mi7cCKt4HOcDFkFsQr3sy dlYQJO/h6nXsqcg20BDp6fBTwN/yXNRekk1PDMB6iBftTmxpmwvi24/R8d0Sg7y9j/jj 3UdQ40xZPd10ly9Y4s2PWYykh0gIqrYWcfKlq2hILF4A+5urJHZzO46Fp8158HlquL2T zIBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fL0m2/wZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q203-20020a632ad4000000b003aa66b8915esi13141017pgq.540.2022.05.08.21.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="fL0m2/wZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF15D88B39; Sun, 8 May 2022 21:21:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352555AbiEDVjo (ORCPT + 99 others); Wed, 4 May 2022 17:39:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379273AbiEDVjO (ORCPT ); Wed, 4 May 2022 17:39:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E70E326CA for ; Wed, 4 May 2022 14:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651700103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3s3JJtjWkXdQIeMB4qwH1W143SmCevkLkyYdal6KkRA=; b=fL0m2/wZPYvHvQ+x6xFfyPKxPIDpOC1haH/HdKelgxBevUzv1c/ee4IuO8fc1H+8zrUsuh kmHC3j3qd52nLfagUkQaoxxEqUFuTMloHOUiXuToDpP0PeQ+0X0cIv7lZUHHAn2zhMGWYn X550d7KZmhXEYCQrZ7Gj+9EcmxMigP4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-605-UJvtXuB8OTG_3ShMvXL0sA-1; Wed, 04 May 2022 17:35:00 -0400 X-MC-Unique: UJvtXuB8OTG_3ShMvXL0sA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9DABD80418A; Wed, 4 May 2022 21:34:59 +0000 (UTC) Received: from jsavitz-csb.redhat.com (unknown [10.22.8.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3452F400F75F; Wed, 4 May 2022 21:34:59 +0000 (UTC) From: Joel Savitz To: linux-kernel@vger.kernel.org Cc: Joel Savitz , Andrew Morton , Shuah Khan , Sandipan Das , Dave Hansen , Nico Pache , linux-mm@kvack.org, linux-kselftest@vger.kernel.org Subject: [PATCH] selftests: vm: Makefile: rename TARGETS to VMTARGETS Date: Wed, 4 May 2022 17:34:54 -0400 Message-Id: <20220504213454.1282532-1-jsavitz@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-2.6 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=unavailable 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 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. Fixes: f21fda8f6453 ("selftests: vm: pkeys: fix multilib builds for x86") Signed-off-by: Joel Savitz --- 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 04a49e876a46..5b1ecd00695b 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -57,9 +57,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 @@ -112,7 +112,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) @@ -120,7 +120,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.27.0