Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4022174rdb; Thu, 14 Sep 2023 09:26:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJ7c9ps4R9zHmLokIiELxnryb8qWMAzlb1tixcakhC4Zi+CpTS1LotHWZCeqph1cQ7nTth X-Received: by 2002:a17:90a:5b15:b0:263:72c5:9ac6 with SMTP id o21-20020a17090a5b1500b0026372c59ac6mr5504828pji.11.1694708780292; Thu, 14 Sep 2023 09:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694708780; cv=none; d=google.com; s=arc-20160816; b=gqeXEAL9Neg40HOxfxE7femTwuwYmxXmR97lwbewNXqPbW9WYZsCyIGdDgWKX6xXFs ZQr4QmGD3ShAn9O57FlcPplFGXtR5BsJO0YYpw0+1Pw8riBJD1QAADAVXBherTyfpK6Z Smil7nm+pvGectZ95CPqQwbM0ALB+zd2eyGtCEEbwkEaAeSGcedOPxLV8CFCpEc0eGRS aGRFKRl8hpaLSOpMMYs+T8yMAEky9vN/Xps1ZXS0gPgp5G3ylI5/I5Vvar8/B4Vj1p5s /1Y/XT0Er51rN3Ant8ZOmkhhE6BIDeeV6+Z718f7T/RY4J5elgocR64aZbOZEvUa99r/ K2Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KQEPjdH4Gli9KAKRohOP4WFvJ7BvjQDzxENQGkakYUo=; fh=feEJ9ZGaUkPw05qVxZGjvLfb8EJ79vZE7JnaVlsRHww=; b=f0uD162hJ2zs9TaQk9XRh04yKx9FfSM8FXS5fc2rkZidb4/m5/iA/guEAkitaZ89fK gaWkc+HUdtsT29rL8xzPZDrOgEAk0CezVtKLxISSPeWDKCcjrLt1Dt7clG70A/oM9Emq Bft0xJoeGre+f6K1uRnC5pr8TXSFTm68DHrjKpqULVBh/Q3PWrh7o47zfOCcGI09mH32 mbS3NgcMQanPM7tI8ZJ3QSRCPVarvq3PgoWcLmW1FxypTd//ucpMMagEY2LhkGwpF/bJ HE9eIeygDEMBi0VciTYJ7Aj4+gDWVz6T4BYtxJSpuasUzkcD2NY9Zkx03clk8TGU8aK2 /iNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=akqB3OZm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id my14-20020a17090b4c8e00b002744e9b7a22si3644382pjb.9.2023.09.14.09.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:26:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=akqB3OZm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 13178801BFEF; Thu, 14 Sep 2023 01:46:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236583AbjINIql (ORCPT + 99 others); Thu, 14 Sep 2023 04:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236539AbjINIqh (ORCPT ); Thu, 14 Sep 2023 04:46:37 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AF5B106 for ; Thu, 14 Sep 2023 01:46:33 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-31aeef88a55so572384f8f.2 for ; Thu, 14 Sep 2023 01:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1694681191; x=1695285991; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KQEPjdH4Gli9KAKRohOP4WFvJ7BvjQDzxENQGkakYUo=; b=akqB3OZmyrYPrr/2AkSGvD93rHAXS+FRk5BVzmf8wBaG6o33cIZAeJVxQAJ4aOgLgC ODJLzw/M7HRGg+Bc5/Rxu/z35r0SJ3t2/MyBM9/hWRI6ONHlRkT0Z8gEd7ufyj0yB88U u2FnVScOUwu9REAnC0s5ZS5LMRzY53Xuq2TjWlWb1dUDm+aY2Xot+A+81SbbO0GXYaM3 gFXysm9D1b/J/0DqOvOCYOP2xlGPi2SbsUUoAem3z8z6tJ+uwcs6xzUYydHF9nqSXkjO IAXfgKVaAYzmOYVFtb73AISpAyf2VGV6xT4hNJqe3+zRdUg99BnLMZCND8iFNJsMNvLY pNMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694681191; x=1695285991; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KQEPjdH4Gli9KAKRohOP4WFvJ7BvjQDzxENQGkakYUo=; b=AcHH7dj0Tn7ogdR7wWSqjM7RrTc1wLoIVXH3HMaylru4ELSeFzCdTsRBklz/NMNIMj 8HhCw3l4DJc6BfMejRPsT3reGtizk5JxMoYVajwEUO0s1tLIO67kTgWmehHmtBOMbPwI HukDrv2eJ5FUjq4uc34KJYB51UE7y+gd5Bjmqs1pcTTzJ19Y2NSHheOixd3VU3MJV07V EX3AKhPDM5UgevKN8LTHSGfvneE+lh4DEZdXsoj6kNzOJxA3uxFXTMPwxKFmh2aXAY1F /e5qCmkvs1MtBxu2h2SOsmaZ4Th+kPQX+3sZlcDforup4Lh9FIK5sNXw3Qb9aB+98T68 fwNA== X-Gm-Message-State: AOJu0YxOemld8cG1if0p0Y6Mt4DQph3fwhulbVXgrf60Dbtu2yWp0Fy3 FcoJqNagJjxPU9mOajF9IjEd3A== X-Received: by 2002:a5d:6105:0:b0:319:8427:d221 with SMTP id v5-20020a5d6105000000b003198427d221mr4297904wrt.62.1694681191504; Thu, 14 Sep 2023 01:46:31 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id y14-20020a5d4ace000000b003176eab8868sm1157269wrs.82.2023.09.14.01.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:46:31 -0700 (PDT) Date: Thu, 14 Sep 2023 10:46:30 +0200 From: Andrew Jones To: Haibo Xu Cc: xiaobo55x@gmail.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Sean Christopherson , Ricardo Koller , Vishal Annapurve , Vipin Sharma , David Matlack , Aaron Lewis , Colton Lewis , Thomas Huth , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v3 2/9] KVM: selftests: Unify the makefile rule for split targets Message-ID: <20230914-393dcb077c664af16c4830e4@orel> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 01:46:44 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email On Thu, Sep 14, 2023 at 09:36:56AM +0800, Haibo Xu wrote: > A separate makefile rule was used for split targets which was added > in patch(KVM: arm64: selftests: Split get-reg-list test code). This > could be avoided by minor changes to the recipes of current rule. > > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/Makefile | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile > index a3bb36fb3cfc..7972269e8c5f 100644 > --- a/tools/testing/selftests/kvm/Makefile > +++ b/tools/testing/selftests/kvm/Makefile > @@ -249,13 +249,10 @@ TEST_DEP_FILES += $(patsubst %.o, %.d, $(SPLIT_TESTS_OBJS)) > -include $(TEST_DEP_FILES) > > $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED): %: %.o > - $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $< $(LIBKVM_OBJS) $(LDLIBS) -o $@ > + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@ > $(TEST_GEN_OBJ): $(OUTPUT)/%.o: %.c > $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ > > -$(SPLIT_TESTS_TARGETS): %: %.o $(SPLIT_TESTS_OBJS) > - $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@ > - > EXTRA_CLEAN += $(LIBKVM_OBJS) $(TEST_DEP_FILES) $(TEST_GEN_OBJ) $(SPLIT_TESTS_OBJS) cscope.* > > x := $(shell mkdir -p $(sort $(dir $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ)))) > @@ -274,6 +271,7 @@ $(LIBKVM_STRING_OBJ): $(OUTPUT)/%.o: %.c > x := $(shell mkdir -p $(sort $(dir $(TEST_GEN_PROGS)))) > $(TEST_GEN_PROGS): $(LIBKVM_OBJS) > $(TEST_GEN_PROGS_EXTENDED): $(LIBKVM_OBJS) > +$(SPLIT_TESTS_TARGETS): $(OUTPUT)/%: $(ARCH_DIR)/%.o > > cscope: include_paths = $(LINUX_TOOL_INCLUDE) $(LINUX_HDR_PATH) include lib .. > cscope: > -- > 2.34.1 > Nice. Reviewed-by: Andrew Jones Thanks, drew