Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp635622rdd; Tue, 9 Jan 2024 15:11:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7qiSgxixWQyTKWNpQsMSPY9SSeTA8g90odtsob7pzRDEYAY3rFheHni/Qpdbb1kXdBC4t X-Received: by 2002:a17:902:f54a:b0:1d0:7535:8b94 with SMTP id h10-20020a170902f54a00b001d075358b94mr119852plf.97.1704841873634; Tue, 09 Jan 2024 15:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704841873; cv=none; d=google.com; s=arc-20160816; b=xHRYdWbOAS7wg5WbT/3iV859I0lbPNXd85Uf3W90OhDyTYP5khxl7ke9TWVqF3ULIj 9F60nC94LOr89KxSyHVloSdjAse/rwLQOjh8MRt+/6HQzLIk5pEm+Zk6Q1v2b07Pf59J d0TX68c6rwpRSV1jz18A457nDsx6wcdSG7DvqXLAFqJ7OVcWYMzD7fqM+z7+NVnFoAS5 X3dF2wSWbQbqKpPsEGQTIe6Mq5uDByKL3xODkehU+cDFV2jcpsv7yGBfwvyeQ6g7y5+q GwSX9IUoeTlgLbz+75SIEG9psuEzZDK2EnkieYnEegIkd1wgzKKYt4/+Xq0Z44sPXlrt 7wAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :reply-to:dkim-signature; bh=1kUdagJS0RkwSIGsouIbjCNUHXTtDF8gUa99CW8Gru4=; fh=gm96CM+cG0KJxn7vnhn0c1c98ILNP1HHUrKfrGecw3M=; b=PaBzUmFCKUp+6q56TqMs4iOBud0mgLYMb/XGxcWKSZRjyFx42IVvdx8HglHGXBGuqU ZIJo62+NXJcuu/be2eoQZG9Y794AQNKnJ5IULrCsx8fMiPlJ2C7QIxeWYH8Qay5bT6im HItA1MtZkBj9yGQw8dulJPiBM9ik8bL+Gg6Av45mw8cRihRDFHWmAFpnALLfF05vrEoN dzkwo778V7G+kw8eAMve9GJfY74vsfBjW7oOJjPNLAdd+KW0Dcnjn6MO7bXRHiwqT747 79nDvjG4+oVvVgTW/psZ3ItJAfbsvTHajT2319A63mKTKpZfqnGQScVl9RVcbbCQY+7C RK+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=f0GbSmzp; spf=pass (google.com: domain of linux-kernel+bounces-21502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21502-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a20-20020a170902ee9400b001d4f2286e15si2278139pld.393.2024.01.09.15.11.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 15:11:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=f0GbSmzp; spf=pass (google.com: domain of linux-kernel+bounces-21502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21502-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 54579B260AF for ; Tue, 9 Jan 2024 23:08:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5213A47F6F; Tue, 9 Jan 2024 23:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="f0GbSmzp" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B9A447A76 for ; Tue, 9 Jan 2024 23:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-5ee22efe5eeso48123577b3.3 for ; Tue, 09 Jan 2024 15:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704841398; x=1705446198; 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=1kUdagJS0RkwSIGsouIbjCNUHXTtDF8gUa99CW8Gru4=; b=f0GbSmzpYP+33Jvp0fC6ebWL69OIh1Zmrq0XRjXlFYhxzSAknu5Tvy7H97AW7P/lVV mJvZJG2gsBo1F3g5dQgJOCeWCcN8Sudi29YVi0YsqekdniDOj6ZKXgEkNpw5mpRNBvER AYrL6gptOBEle8pzG1fUzKtApkdo62DkMVMNqvRxTO1KkfJ3Su9QhZKFvuH0s3I9qMo6 n7qDRZSD70opkx4ZpcCbz4oYkLrdJ1gx4ApRQUbUetgQFX7tqjQDPOxxCXr46CV6XAZT 8Kpj4Alxaz1I3Wi0t5zHKHTaZ6HyxXjaGWTFqZt5t/6iWQDsh6oiJb5nYm7fi8REoN70 F4mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704841398; x=1705446198; 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=1kUdagJS0RkwSIGsouIbjCNUHXTtDF8gUa99CW8Gru4=; b=qnu1QUGMWhFJoDLSFqTvmwQvn1W3CmBdwvZMxJ13CUQVsTu+fxwXyE1hNFJTTSq/SG 9WQMpzwvtpxIUqQpy8oo34YmddBpnNnUJhmzShRT5lP+n+svEflRe7QDE4X3bDH4KQDu UBRjdjx0wXQOiY/ENBhwhKmhDhjLvXVze24rsrn3UAfJDxF5eCQ2LBvGRPaNqgJo6vtr VhPyLhnm4dSbZknBnhjU99fkwLKV7tJFFPTBfJvguck6bejntCauM3f4dGqbfRQttTQ8 D3Uh8f5CIOpuCdGdWxl+YDMWRJSzRNbEnk5CvwDmUYk91h+SyJD49IhouOqfszi4Qslm JWJg== X-Gm-Message-State: AOJu0YxJirli+QP0pkm/yRIM0yyw5+e1v496uvwp3MhEeNAiM0FLicov qu0s62rId5GX8Q/ck0USy88gpjwol/6XKJP0Hw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:8211:0:b0:dbe:387d:a8ef with SMTP id q17-20020a258211000000b00dbe387da8efmr5333ybk.1.1704841398399; Tue, 09 Jan 2024 15:03:18 -0800 (PST) Reply-To: Sean Christopherson Date: Tue, 9 Jan 2024 15:02:33 -0800 In-Reply-To: <20240109230250.424295-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240109230250.424295-1-seanjc@google.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20240109230250.424295-14-seanjc@google.com> Subject: [PATCH v10 13/29] 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" 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.472.g3155946c3a-goog