Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp689202lqb; Fri, 15 Mar 2024 03:55:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTSCt5lFwmwZ0Ms5gvUNbwIq9oBY4ljw0Os1Cy8YQqfM5Zj4xfEzOehJ8zDlVBeOOQiOrq7uL4rrWHiZNjEH/Vcq1eg0tLOdrtldVXVg== X-Google-Smtp-Source: AGHT+IEsL7v/6VhsBKfwtUq74dqI9MAnFqCmwcFTwRED0YCJXqimnN/SU1TEfJ31SlaFGnTt8Lk8 X-Received: by 2002:a17:902:cece:b0:1dd:8360:df84 with SMTP id d14-20020a170902cece00b001dd8360df84mr4589835plg.3.1710500124254; Fri, 15 Mar 2024 03:55:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710500124; cv=pass; d=google.com; s=arc-20160816; b=hzOUmEYYPHOlpkCu1k4udaq/PZHMxXKHJROXlf6KqqPtifyFdpox2SUVgOhUAOkQq8 yxvkINxgnSolKNBiwo/qjzLclXIerVHGQWuVdakuiDXH1y3eFmSkbPE9GEfz3WlCYKhQ V7rfQCZOps8QP5YuMcPEoPkoVuiMj1RPx3b7OOzNqq1AQKGtUZV61WAXqdF3a85SJsLy E0ox0fja1bpWuXP1ye6iH20Xbj+p2m/zZc44180+xCUU+3+s8nkrBe3mgpeeyVv7jPOU CB8FldRt0fSjpGGm9cvbDHerYihlgUEy0fgvZOGzSr1P5nD/dG8aF1uajPfUGOexy1Xz kvJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=WKnajArjwdqkW9mul8mVcKUVfLxGaXnxMQu51jtLd0s=; fh=KNWvG5518S1AxN8n9cF3OB/JQeBtZ0OkK47iUBBx+6w=; b=YeFBhIuhRRKB0Cy0YVtBpUIFKdoe5FY62jQO4XDmGELhd+oqwzPN5nQC2SQKsXIanr ERmjJC1JQ6gxITRCKlzxbQWEcnMTKABjMYaHJ5u4cLuC0IaYx0aofihHbgFHpoDGINy5 UyGAP7jkPsAR7QDgKvabv18Psq6msfOARXoVI1ZOlOT8ruS1fxEuZUqk1ZGvKbotAkSu nVTVU4+0faH227sME+wnvnTSV4GUyurNolClNA0EKq8Rh6lxmZKqynDDYx2uvQebLGc1 ZTgsDSvxjSJpk2F/lSETBoBuj5uSwgEO5IIHu+REQaYPFWwVDA7YJYWQpR06wRzhyZq8 Q8pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NSOlEfkO; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-104290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u2-20020a170902b28200b001dd7908e3fesi3224226plr.247.2024.03.15.03.55.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 03:55:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NSOlEfkO; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-104290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E7C61283525 for ; Fri, 15 Mar 2024 10:55:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 853461B80A; Fri, 15 Mar 2024 10:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NSOlEfkO" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43C171B7EA for ; Fri, 15 Mar 2024 10:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710500114; cv=none; b=sB9psUxIS4HiFhx4zvUCVgK2AZ55EFrdAqWcxXGSo12U3ZSzP+Dgzp8ji0A2tIalypNpI8pxPVLjyRHJLIJSKMLFxoaD1gxxXH6WkVX6j4jn+Q/ERazmrzmx2B3FwJkNZWZ9LZ8xueRkI0J6vM3EJ8Cei7B55It+5CSv3zDGDZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710500114; c=relaxed/simple; bh=egKFcFy18uI/dVjWoyZvuW3VcQWXWF1qul2r340oNl0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=T8ehgNyE8NgFd4YM7GQsYOW0p2sn16H9UBkynGw0zZXLRuq8Ka2gxtNNx9OPHxrPew1t9lVcdhJJ7hzqYgO1SJxgnmnRpGeGKenEJ6vCi0TH25wKAs+yM/npwncNPPDkUD/JM0ENBHMh7jbI1Md41qcnkUGBj414H6VX6IkSuPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NSOlEfkO; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710500112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WKnajArjwdqkW9mul8mVcKUVfLxGaXnxMQu51jtLd0s=; b=NSOlEfkOJkWYSZFK4TXL6QW6bzIZNoTwaDmk2KihS0kRepk5MxLiq3SXE/u6oEheVUZdqS DjBSTC+1vNLrk8cdsqDskDZr4+CcFXGxXtKZvL82adGWPofLYrjJr7GejaygGMlY8ae9oS 3UqwJWrnYXRvzRkAqgyKfwOMtRRqYRk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-495--O4F-DR8Na-mU1jF5OHwsA-1; Fri, 15 Mar 2024 06:55:08 -0400 X-MC-Unique: -O4F-DR8Na-mU1jF5OHwsA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C8513851780; Fri, 15 Mar 2024 10:55:07 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id A8484492BD0; Fri, 15 Mar 2024 10:55:07 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Masahiro Yamada Subject: [PATCH] selftests: kvm: remove meaningless assignments in Makefiles Date: Fri, 15 Mar 2024 06:55:07 -0400 Message-Id: <20240315105507.2519851-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 $(shell ...) expands to the output of the command. It expands to the empty string when the command does not print anything to stdout. Hence, $(shell mkdir ...) is sufficient and does not need any variable assignment in front of it. Commit c2bd08ba20a5 ("treewide: remove meaningless assignments in Makefiles", 2024-02-23) did this to all of tools/ but ignored in-flight changes to tools/testing/selftests/kvm/Makefile, so reapply the change. Cc: Masahiro Yamada Signed-off-by: Paolo Bonzini --- tools/testing/selftests/kvm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index 19f5710bb456..741c7dc16afc 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -277,7 +277,7 @@ TEST_DEP_FILES += $(patsubst %.o, %.d, $(LIBKVM_OBJS)) TEST_DEP_FILES += $(patsubst %.o, %.d, $(SPLIT_TEST_GEN_OBJ)) -include $(TEST_DEP_FILES) -x := $(shell mkdir -p $(sort $(OUTPUT)/$(ARCH_DIR) $(dir $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ)))) +$(shell mkdir -p $(sort $(OUTPUT)/$(ARCH_DIR) $(dir $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ)))) $(filter-out $(SPLIT_TEST_GEN_PROGS), $(TEST_GEN_PROGS)) \ $(TEST_GEN_PROGS_EXTENDED): %: %.o @@ -309,7 +309,7 @@ $(LIBKVM_S_OBJ): $(OUTPUT)/%.o: %.S $(GEN_HDRS) $(LIBKVM_STRING_OBJ): $(OUTPUT)/%.o: %.c $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c -ffreestanding $< -o $@ -x := $(shell mkdir -p $(sort $(dir $(TEST_GEN_PROGS)))) +$(shell mkdir -p $(sort $(dir $(TEST_GEN_PROGS)))) $(SPLIT_TEST_GEN_OBJ): $(GEN_HDRS) $(TEST_GEN_PROGS): $(LIBKVM_OBJS) $(TEST_GEN_PROGS_EXTENDED): $(LIBKVM_OBJS) -- 2.39.1