Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1566197rda; Mon, 23 Oct 2023 17:27:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4r/S3e6EkBtzrgq9IFR391YOenM213HkzcMjYr/sdecHdopnY6GCqqLbVUhXxeLxmVfHy X-Received: by 2002:a54:4689:0:b0:3a3:6329:4cb7 with SMTP id k9-20020a544689000000b003a363294cb7mr11205272oic.9.1698107224217; Mon, 23 Oct 2023 17:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698107224; cv=none; d=google.com; s=arc-20160816; b=MSKHXyLN2jR4lApCL/1QAd0Taq1f58IJnn9ybCp6BZ4omoTkTULBLW+d/kP0Ote/Sl GVx2ahLcN1NgCYRXZQakYu/3MT9gZdLUH+JeBhmzJxlwIz1YrtWpLC7BHuY4OQsMdWGH nYhQib6jf56Mf/TcKmbVlE1ne5kULS3NIfIub8BrvuEI3gtpETqVBejZHQcRoPT3Gesy aazWzYl6ZO9YBXJXnyWROi3hbUycnYzrNt/EW5kXhjrVa6cZJXkYVOvrMAhHVZfbIIx0 ps1A4fuw82Lf4t4QT2n7KQby/AhWrH1/JhIY1Zy5jneW2ZJPnwLFnb6zccz4lgzf7SE1 VGOQ== 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=cKw2oFXjDBeLUy3TN9d0wAQBta1CYNuO3g/uAt5rkPU=; fh=D//PLXZS63mgWSQM2kcZZyW+2k64a7rh3i2k12EZPR4=; b=J3nRLwXu03R7QBs0NdV6Kb3DGiw/b1/YUvugSatUnrNTi+LXO3CamCUPZXYt98LSxp UW2fiFqzqn7xPCNsRV6GlbmbRvkMUVioLJvTSb4PehhNGhlgw1iRyLEdZNTw57B8T7ds /rniUjOwCfjVpFmyhqahJp2uX8T+8KkvE7KdLabV0mNHs4tKF+6tn6Yuqj95PxKxydkg Gm/2gvu5suJcc/EBVLJ4vYOfHELXjC8gH9qeQ2U3wNZ8i6BLVRDsC3FhOsUnJMypHK6K hnJwupJu2eWapifRhGZMNsEGpqPuyyONppK+QBWQKYePtxVuJCh+Ir0xnWDl74Aya8Y3 OhMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="vKn+/AUw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b14-20020a63714e000000b00573fc592e9dsi6858403pgn.848.2023.10.23.17.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 17:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="vKn+/AUw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 4BEC680C2450; Mon, 23 Oct 2023 17:27:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231772AbjJXA05 (ORCPT + 99 others); Mon, 23 Oct 2023 20:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231775AbjJXA0t (ORCPT ); Mon, 23 Oct 2023 20:26:49 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60D3110C6 for ; Mon, 23 Oct 2023 17:26:46 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1c9d4e38f79so28089905ad.2 for ; Mon, 23 Oct 2023 17:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698107206; x=1698712006; 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=cKw2oFXjDBeLUy3TN9d0wAQBta1CYNuO3g/uAt5rkPU=; b=vKn+/AUweDCsC14TZMn+KQtWldIkLL/EkEtYsn7yPtJgZgLCDuGNTFQyNehKIDs1R7 2FB+dXItFGodP1BAWiHTDoszQ/2epqk2+DLDZ3/icmwMhkqkXPB7LO/IEaZhjCoFY75L KfyRKl2evBUXW1EqhZY37jGU9mukWm7yqYjEcVWsmx1MBH5F7zZFaVLBCmeaUs9euDKy kV8CtKhvlLu+3oOrHnCLyg66x6ADD307XIa10ei2nGsQWCB9oF5lGxaxcfxvQ25lqhQJ 9YIhQ5BaLmhXjViiiGegjaV+2ew5fo0UFqXaFCOxQOvfna56hAqEm7rZ29ar39TuCVYF t4zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698107206; x=1698712006; 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=cKw2oFXjDBeLUy3TN9d0wAQBta1CYNuO3g/uAt5rkPU=; b=fkfihSrx5F1bT71qRyL+xn3alU/FE4tBHxzg+MTxSJKdW2dywnDx7Y56wtTD/FZnyZ yidkp9KqzyVotucS55eqGwf3TIwFagIq1DwW3tFVCTaZeUC96ve1ts4AMK7plKtikxdO zBxcyKJR8rVazN0Fa+noL18BVJ8qdWBe8/lCmxxnbMdtpAzxST+5VGTd/Qz2AiCICJ9Z 3BVpfSWsmG2OBEK2nfZJgayk5zVkvhTKiC8PuQDMqJg1Svef4Jl+jPt1NpRoca9bcYGW Sab6YgZaK3BCQgYPPQZUY79UD3haN/FtPzME2P5DrQkAd3VXhSfYg4yhKfeXhZPlL9VC 5gag== X-Gm-Message-State: AOJu0YzUHgSeIFMnC5EzJGN+ti+LvhUE6qEKXl/8Ai8sRmGqC6V06x9a lqv6nYu3D4S6ckitB4DQh8wbwTOV5zU= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:ab5a:b0:1c7:3462:ce8d with SMTP id ij26-20020a170902ab5a00b001c73462ce8dmr193856plb.10.1698107205898; Mon, 23 Oct 2023 17:26:45 -0700 (PDT) Reply-To: Sean Christopherson Date: Mon, 23 Oct 2023 17:26:25 -0700 In-Reply-To: <20231024002633.2540714-1-seanjc@google.com> Mime-Version: 1.0 References: <20231024002633.2540714-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog Message-ID: <20231024002633.2540714-6-seanjc@google.com> Subject: [PATCH v5 05/13] 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, Jinrong Liang , Like Xu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 17:27:03 -0700 (PDT) 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. 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 a01931f7d954..2d9771151dd9 100644 --- a/tools/testing/selftests/kvm/include/x86_64/processor.h +++ b/tools/testing/selftests/kvm/include/x86_64/processor.h @@ -289,7 +289,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), \ @@ -298,7 +298,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.42.0.758.gaed0368e0e-goog