From patchwork Sun Feb 27 05:53:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengming Zhou X-Patchwork-Id: 12761537 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 966A8C433EF for ; Sun, 27 Feb 2022 05:53:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EE0DD8D001B; Sun, 27 Feb 2022 00:53:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E90EB8D0007; Sun, 27 Feb 2022 00:53:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DA6978D001B; Sun, 27 Feb 2022 00:53:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0061.hostedemail.com [216.40.44.61]) by kanga.kvack.org (Postfix) with ESMTP id CBF618D0007 for ; Sun, 27 Feb 2022 00:53:48 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 78B7A1812A441 for ; Sun, 27 Feb 2022 05:53:48 +0000 (UTC) X-FDA: 79187493336.24.13F4116 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by imf05.hostedemail.com (Postfix) with ESMTP id 8C9EC100002 for ; Sun, 27 Feb 2022 05:53:47 +0000 (UTC) Received: by mail-pf1-f179.google.com with SMTP id y11so8243904pfa.6 for ; Sat, 26 Feb 2022 21:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TgVfnSnXEcGoaDv3DM9kOZpMqyYLQA90eGzp4dL0JZs=; b=xlKJWjDoLItSB7uebqRIRgwMwUpLQQOwXuhT42MOPQetqYKz/r7jt+jDjrhmys+NIL bxQxutaG+4uSijCSwlTS7oSEYwAtfng3w3oj5UlsfifTCjW0gJHUPtLd3V5p76rIfygr JORzsALKtqbjIvDsXYe9V8iqZND4/COSCaIE4UO0IuXNV8rhSstCSPx2HlGPXojTdl1u P/+jy/GFhqtpdv/55b3cu3aw7Aslf8cytdFa6vnF7uGPT+o8wrNLJ7RDiggWufEIEIFC j0EWNsuONnYZwoquElZ2efYf7Twk4bRILvC9euEdM4ljA2xKlft33Jfr/BeiLsX44eW8 Mf5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TgVfnSnXEcGoaDv3DM9kOZpMqyYLQA90eGzp4dL0JZs=; b=Ocqr/yGhKj8b9lQV8zRknVC/RIR61IP+bXSCxew/iLK8BbYcZjvihR6Xzh6uS1fkQq f5LGEiyQM94WU8B65JxBOgzxxIVm1ogyGs9SRI/MF4ZhDc/JU775aCuU/ofoQgXZTkwi wqzZmU8DEVxWdcxdVTiaKgYxG4tMaFnjhva7+Tny9O/xas0oLCBpgrruORY7qHkhdnxq GP643sCNM6oKFjpNSdF92MnQS0E+Ie7NP1Tz8aWJSACfRF0lkjzfVB3k3lLPdZ3KssKB rO3yvuUGdYNslkq1X4T6WMl+YFKPNSZQsd+QLF/bumTE9Qd9NeY5djj15tiXWJN8BCJH k8yg== X-Gm-Message-State: AOAM533/pWu8oVETH/Bj+N5TosIpibiPGs6sLOodbs64sCLanqCn3Qhl ujRRMW6yRb/ddG99n/NBzQwMsQ== X-Google-Smtp-Source: ABdhPJxHmaiHTqexFilShO5HJEJVx7LP+GAmBpsTaYXG7tCaWA4m/pC02xRsznsBkb4gN39hYBDvmA== X-Received: by 2002:aa7:9902:0:b0:4e1:375c:99f6 with SMTP id z2-20020aa79902000000b004e1375c99f6mr15482327pff.44.1645941226266; Sat, 26 Feb 2022 21:53:46 -0800 (PST) Received: from localhost.localdomain ([2409:8a28:e6f:a720:d522:416f:1b2a:d253]) by smtp.gmail.com with ESMTPSA id j9-20020a056a00234900b004f3b1c23497sm8547647pfj.101.2022.02.26.21.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 21:53:45 -0800 (PST) From: Chengming Zhou To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Chengming Zhou Subject: [PATCH 1/2] kselftest/vm: override TARGETS from arguments Date: Sun, 27 Feb 2022 13:53:29 +0800 Message-Id: <20220227055330.43087-1-zhouchengming@bytedance.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8C9EC100002 X-Stat-Signature: bm3a8zj6zg3drfs4xp7k1f7hns9fnu4d Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=xlKJWjDo; spf=pass (imf05.hostedemail.com: domain of zhouchengming@bytedance.com designates 209.85.210.179 as permitted sender) smtp.mailfrom=zhouchengming@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com X-Rspam-User: X-HE-Tag: 1645941227-398319 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000234, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: We can specify which testcases to build using TARGETS argument, for example: make -C tools/testing/selftests TARGETS=vm, cause the ordinary assignment of TARGETS in Makefile will be ignored. So we need to use override directive to change that. Signed-off-by: Chengming Zhou --- tools/testing/selftests/vm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 1607322a112c..0b330a5b1840 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -53,7 +53,7 @@ CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_32bit_progra 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 +override TARGETS := protection_keys BINARIES_32 := $(TARGETS:%=%_32) BINARIES_64 := $(TARGETS:%=%_64)