Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1405989rdb; Fri, 1 Dec 2023 16:07:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpyfbxBbBF7HuIxOLHa0fbPCW5zRPComoBVjNuRMPJ29OFMMuo7kRiiU6JwZVvRN/XyTkO X-Received: by 2002:a05:6871:7b86:b0:1fa:e63b:91fa with SMTP id pg6-20020a0568717b8600b001fae63b91famr477232oac.40.1701475621717; Fri, 01 Dec 2023 16:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701475621; cv=none; d=google.com; s=arc-20160816; b=YJVTFNj/UiW29HyfMDkU6l8lQXZ89/QwwV/QsKcdsaVpqehaUGHP7M9gCKMG+Yv/MS NqnfAwNYnBSyihaIav7jyVWF7i4mSCIB0lVLJpgrXsNKuIUcUR1Q82T3DozrixCeWYOg nqTvOXXm12rqbuUKT2salT4Jym6DZujmBs5c7tUMh1sVK0Bko9biJb6Z+G9HnrqGWhuQ 40u+ydZHQKWm26zKrqM23MbPRKimqXP1/pIpqzT8BtVmHIl8WU6LWjk46CHsAHrcMbQe 8wIeiweOHjb2ToPx6xlJtPO88iFmkSlMaLNz75gVKipKqr0Ogm8d3i3rv9rQH/DXg9x8 9FyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=fYSe4fYTi/FXGdeBXMWzLtaR6u3FlgzSZKw16CFq7Qs=; fh=gm96CM+cG0KJxn7vnhn0c1c98ILNP1HHUrKfrGecw3M=; b=AK61mtP8OTxj8ai5nVyQQTa0o94Gbz/dhAHN0/I8QHI/4qX55E0GAEezeT+H9zSqpQ jMibOlUFEdIcqBX5yPULMqRTROPG8Kq5ki9PNrn9GjJb5b9iIvgEQMPbj/2AoaxJsjzI IzSxUPGoXTt1byEVhSD0x66qNax39mVbvxginiBPHhCey/HleSIICkYYVjKV+102SPW9 mN0N1vM9NSrixXgIW2gmo6uRFfqQoV/5dOeTpC0/mxGHM2JWyRJOj4I6s9p1q9RbEsQl KXfrrLTcDvGMijZmv2S9Krdc+5cOrsEL2sE9W4kOwshNInyoaed8fDiyWnQiFIURvNFl 7xqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="P5Oy/bS9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e16-20020a656790000000b005c212bdc7d2si175602pgr.611.2023.12.01.16.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 16:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="P5Oy/bS9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AF06480E9955; Fri, 1 Dec 2023 16:06:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442038AbjLBAFX (ORCPT + 99 others); Fri, 1 Dec 2023 19:05:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442037AbjLBAFA (ORCPT ); Fri, 1 Dec 2023 19:05:00 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 369461BF3 for ; Fri, 1 Dec 2023 16:04:45 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-daee86e2d70so1516610276.0 for ; Fri, 01 Dec 2023 16:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701475483; x=1702080283; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=fYSe4fYTi/FXGdeBXMWzLtaR6u3FlgzSZKw16CFq7Qs=; b=P5Oy/bS9Z7j0HLHWiDBbSHIA5JB5v0s/N0Xl8tgwcfKGk4zlUf5FpOKto8xih/RUFX hAcxikJ+PKvgBLXaQQEUC3Ki9c174PTje0vpn04GdZqsO7jvzmFDpt+TJAPyKCKtPiA8 11eyCXtmO2qQyiv8Rx5ppGGMmIDlKT1f6o/wTPqavlqK4ssWduyA6iXLQMC7/c435jGu qC3j5Tr3KIlLsJzFDc3Bs7QE7AAdOS0NBVxansK48HbAIM5EV9836x02wI0v1VMGiIcE vRVQIxqfuqzx4dTD6W+hLzkoKtprvztO6mchOoK2aBiZyS3tacTwPMbbIO/t2rJteuq9 9WAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701475483; x=1702080283; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fYSe4fYTi/FXGdeBXMWzLtaR6u3FlgzSZKw16CFq7Qs=; b=dYKt0+6q5o6R3bK5Nl1+FFl9S4KP5JuusFYMR+qGtDio4sP+DPTMcrby//beD2fLLX PDdtEZnZPFcwb8EPvHuGPz69/UA8VSUFFu1eGGRL+Y5erc5Tols96/BKJxWXda0Kqcfx mG6VbAJIJS47hlakjsN2v//psFMlNJeux4qzB3mfKkQx4RQ80+zhjD8zEecUhRLHLwTD 7PWXY1tQWaXCNi6CSWdcbDKyVL1x/7hUDLd3uCZcFceKEjCrwWnwUG51+7h1IGEsMV90 HnMpzvYASOzmro2Tpg/TDfii8Z/PkmNuezmWM/kYU6u6a6PXVc+FF6lBA17hwl8O45Ko /POg== X-Gm-Message-State: AOJu0Yz28vyZn242qJCHZ7mCf0G3kEehqVxjDOu0SplJoM0VPHa5yLuc ZSTrbBxB0fDbJw1djqLgOtx3ZiDtWss= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:d1d1:0:b0:db5:423c:965c with SMTP id i200-20020a25d1d1000000b00db5423c965cmr226579ybg.5.1701475483633; Fri, 01 Dec 2023 16:04:43 -0800 (PST) Reply-To: Sean Christopherson Date: Fri, 1 Dec 2023 16:04:01 -0800 In-Reply-To: <20231202000417.922113-1-seanjc@google.com> Mime-Version: 1.0 References: <20231202000417.922113-1-seanjc@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Message-ID: <20231202000417.922113-13-seanjc@google.com> Subject: [PATCH v9 12/28] KVM: selftests: Drop the "name" param from KVM_X86_PMU_FEATURE() From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Kan Liang , Dapeng Mi , Jim Mattson , Jinrong Liang , Aaron Lewis , Like Xu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 16:06:46 -0800 (PST) Drop the "name" parameter from KVM_X86_PMU_FEATURE(), it's unused and the name is redundant with the macro, i.e. it's truly useless. Reviewed-by: Jim Mattson Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/include/x86_64/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/include/x86_64/processor.h b/tools/testing/selftests/kvm/include/x86_64/processor.h index 932944c4ea01..4f737d3b893c 100644 --- a/tools/testing/selftests/kvm/include/x86_64/processor.h +++ b/tools/testing/selftests/kvm/include/x86_64/processor.h @@ -290,7 +290,7 @@ struct kvm_x86_cpu_property { struct kvm_x86_pmu_feature { struct kvm_x86_cpu_feature anti_feature; }; -#define KVM_X86_PMU_FEATURE(name, __bit) \ +#define KVM_X86_PMU_FEATURE(__bit) \ ({ \ struct kvm_x86_pmu_feature feature = { \ .anti_feature = KVM_X86_CPU_FEATURE(0xa, 0, EBX, __bit), \ @@ -299,7 +299,7 @@ struct kvm_x86_pmu_feature { feature; \ }) -#define X86_PMU_FEATURE_BRANCH_INSNS_RETIRED KVM_X86_PMU_FEATURE(BRANCH_INSNS_RETIRED, 5) +#define X86_PMU_FEATURE_BRANCH_INSNS_RETIRED KVM_X86_PMU_FEATURE(5) static inline unsigned int x86_family(unsigned int eax) { -- 2.43.0.rc2.451.g8631bc7472-goog