Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2275096pxm; Fri, 4 Mar 2022 12:54:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyG5IZhK3X4AvOYT6A7mcbCuyHcsP29fItm1F+Mg6AMYrkZB9jAsTUQ5+e6oUjemOejd0zt X-Received: by 2002:a65:568b:0:b0:378:86b8:9426 with SMTP id v11-20020a65568b000000b0037886b89426mr207059pgs.70.1646427241680; Fri, 04 Mar 2022 12:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646427241; cv=none; d=google.com; s=arc-20160816; b=HSGPYfgHP0N5Cu61iP4VjF1hDEduVdEO6lrgAh8z37aVM9VoxnZQF6IZ95vX/X/hlj KFbf8HDI4bi6Bzb5bBn+pCJPPn6+wSXsZ81kWtKwCeqqmV1tyLQZELmkHOGAWQU5ZJQi dkJVY3waZbyCp24ng63Ob2H+FJ2cw6eELxBPU9SpW6C9tLiV8KVx+mgipTjvcLnsIk5C YxCJat/7z8Deyf4OW95bxFCXDlr00x6+nZBIxEVQRAtMUMHQoqHvT9ypLuzXLgKhebAw MtyxJNGcSYhTrBD8z5oJLc9pXscR6JRGcfz1qN8ZQPommFwVxuz47OrYUl+a3/+TqBy7 477A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qGajYq/2Y8cBdDlqrjorvnqnZd0B5kqCZ5qkXRiChPc=; b=RXyqc4Fj5SEL48zEjCi5lXM7/NvZegMfFrY+kWy9QMbSMcGzJ+Qwedg8ngMzuNL7o1 CYlZqIFl51Zs3mWo5RSIzMNHcneTvmfXGklVAFnV7lOF2YwKnh1uk2UqOlPKhDqIl4P9 sy1KSUExMjyeUAW1mncJjhWsQuPIfFUq/kvxKp5r0pC9DJbgny/yGw0y/k/KziWenJA4 E89mUsG0eZR0mjgvavpItvK1ZlFt+JLAhAPKVMcwWkSijMBA5BAcC+8xSxijYEWHEjuW tLXy8hJJOeBFxf2X3/D+lkvSoGcLjRQU3TcZRnnl1wnxlKetC3rQUKYaYoisBrmcnYPt 0mSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=LoKymxMn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nv2-20020a17090b1b4200b001bd14e01faasi598894pjb.152.2022.03.04.12.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:54:01 -0800 (PST) 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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=LoKymxMn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3156B2CE0A1; Fri, 4 Mar 2022 11:47:35 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239962AbiCDOvg (ORCPT + 99 others); Fri, 4 Mar 2022 09:51:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236484AbiCDOve (ORCPT ); Fri, 4 Mar 2022 09:51:34 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED7DF1B84E7 for ; Fri, 4 Mar 2022 06:50:46 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id gj15-20020a17090b108f00b001bef86c67c1so8026159pjb.3 for ; Fri, 04 Mar 2022 06:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=qGajYq/2Y8cBdDlqrjorvnqnZd0B5kqCZ5qkXRiChPc=; b=LoKymxMnUUd4Qg39UfUGbaGqi+9wFch08Xhwa4MiFfU34YUWHwInABhQbdzbKCViwD Gs5QT18FOd33txjBj2qHeIbU+MO+F3mgnnY23mjTk9n/seq5ITaqC4pW01PBl61EsYG0 wPKey6Pmg5+nWxN2qcrQDEY0KLt8MONsgAyOjhPnM9J9mda87YUGpcpQBduSKtFFd8Y1 +CeGLWR8OFy0fVq4ttuxxyzHmqmvkjGsdWFZBnJW3RCKn9ain2xDCEs8f0p93Rf3uIVi hQujSsxi+UVZ1aE35BtKU2aoRi4mOc8UJ8Yjm9FVv86wvT22sDcRjSyJWhOMXJwbI6Hu A0wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=qGajYq/2Y8cBdDlqrjorvnqnZd0B5kqCZ5qkXRiChPc=; b=xG25NyjiP1ldx4HvPM96lqn6euLMiQON6DucS/FM/WyVqjJ+/PW2Wzu4lHzNnvwd4y U28fh9JQzlcK0k5NQnNDGG0Hs58P/sNmKQfdySbSvz/io5EXDq3fbC7JoD9dDAWIDKJP 32rquBcCViZUjNW//eDJ3zVIjiCquCEfvzpGAsSM31yYXT2SD2SSFMAgviAIvw1V4oj4 HNQ7drb4kNPIXYUuN9daMXWjd8mvP6u1jbeSeoya3edlwfky8ccygqQshcSWUQqk1GnW KdqBkB3JUxi853R8pTHM1GZUQ1g0r4lM2xIMsTrcrLnV3iiPdDJ+zMFxHmOCIm1u3h7g /i8g== X-Gm-Message-State: AOAM5330umHeuV4asZZgpvIgDQJ4pd1QjutZes1vPJ5ZH18aHLPTY/pf hi2ioiWJVgWYOBnZ81qrtGo47g== X-Received: by 2002:a17:902:b60f:b0:14f:ee29:5ef7 with SMTP id b15-20020a170902b60f00b0014fee295ef7mr41377789pls.106.1646405446441; Fri, 04 Mar 2022 06:50:46 -0800 (PST) Received: from ?IPV6:2409:8a28:e6d:cc00:d089:89fd:5c33:f12? ([2409:8a28:e6d:cc00:d089:89fd:5c33:f12]) by smtp.gmail.com with ESMTPSA id a11-20020a056a001d0b00b004f4057fafe2sm5885040pfx.94.2022.03.04.06.50.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Mar 2022 06:50:46 -0800 (PST) Message-ID: Date: Fri, 4 Mar 2022 22:50:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [External] Re: [PATCH 1/2] kselftest/vm: override TARGETS from arguments Content-Language: en-US To: Shuah Khan , akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220227055330.43087-1-zhouchengming@bytedance.com> From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 On 2022/3/4 3:17 上午, Shuah Khan wrote: > On 2/26/22 10:53 PM, Chengming Zhou wrote: >> 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) >>   > > Let's not override TARGETS - rename TARGETS in this file. > VM_TARGETS? Looks like Andrew has already added this patch to the -mm tree. I think both way is ok to solve this problem. Should I rename to VM_TARGETS and send another patch? Thanks. > > thanks, > -- Shuah