From nobody Tue Feb 10 16:18:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1672995253; cv=none; d=zohomail.com; s=zohoarc; b=RNIsP7A1QI6EvSXY3AjcMbQbV5il4MwZ1tM/iyYpH51DPhiPmn1ZMSOwQBzSjrBAQ471qVFHlwQdjERvSWz4+QGjnkMbdqpwbqM4B1s28vxQIrF/C7YxPasK2R4I7v/z6WqCUhWxMR5976ltEKcvdcbrOBiRUKXMYOf16N9T0g0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672995253; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LD9BsxdEabpiTjmuww4n/yrlAU59Lgch+nRjj1ONyJ8=; b=Wy17mLOydMeT3leDsUSbmXuGhAjJwbdG+qesO/15vP/eURHe/W9lpgdWp6Xwqm4CEN6McJHWPREb7HS6eZDZ6YFcH6UIK5nzgo+BQywcP+hY1KTet0VmHOPzS3j+P1XIurqsz2GFDwThsXM/9lzgiaRhFzBM7m1m2HnOqyyPsoA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1672995253523364.67002337179156; Fri, 6 Jan 2023 00:54:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDiFW-00067x-8S; Fri, 06 Jan 2023 03:38:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDiF3-00060w-Va for qemu-devel@nongnu.org; Fri, 06 Jan 2023 03:38:22 -0500 Received: from mga05.intel.com ([192.55.52.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDiF2-0008Nh-7m for qemu-devel@nongnu.org; Fri, 06 Jan 2023 03:38:21 -0500 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 00:38:13 -0800 Received: from sdp.sh.intel.com ([10.112.228.155]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 00:38:11 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672994300; x=1704530300; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xDBR1AIofbX/BZeIfhHGjpPVbPt6SRoBtioaVSfH/7A=; b=Z/Re5OVTq3DbhYW6U8Dp016pyEHMJsbC4VO6nUmv1f1Y6xCGXoHr+L1N RChm6M/Nz26iR05fKXkqGFcFAr/F51a2l4Z2oTCf0Clfyfo4ut0lIlo7U Zl5KfenT9P0FG6kl1DKht/dMJVEv+t7Kgf/yGKaC/Mng/AV8pqUT2aL/i FuZVUgOeY7SySchNkeckegv6ja3lyypbtSd8T8Ai+WYibOFpI4UpY3AW4 x13VPYJPOk0yIjaGwsmPbKY8JyFBfXzCN4ipMK2AVWq+sqFyxhoVttgdS LBbO2adQZiPXWPegvWdUH9wulPsC7jWenxfsIfZqPuXLvKoZD20pusOOW A==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="408688485" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="408688485" X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="724378827" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="724378827" From: Lei Wang To: pbonzini@redhat.com Cc: qemu-devel@nongnu.org, imammedo@redhat.com, dgilbert@redhat.com, berrange@redhat.com, xiaoyao.li@intel.com, yang.zhong@linux.intel.com, lei4.wang@intel.com Subject: [PATCH v3 2/6] i386: Remove unused parameter "uint32_t bit" in feature_word_description() Date: Fri, 6 Jan 2023 00:38:22 -0800 Message-Id: <20230106083826.5384-3-lei4.wang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230106083826.5384-1-lei4.wang@intel.com> References: <20230106083826.5384-1-lei4.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=192.55.52.43; envelope-from=lei4.wang@intel.com; helo=mga05.intel.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1672995254462100001 Content-Type: text/plain; charset="utf-8" Parameter "uint32_t bit" is not used in function feature_word_description(), so remove it. Signed-off-by: Lei Wang Reviewed-by: Igor Mammedov Reviewed-by: Xiaoyao Li --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index b6d1247e5e..883098bc5a 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -4290,7 +4290,7 @@ static const TypeInfo max_x86_cpu_type_info =3D { .class_init =3D max_x86_cpu_class_init, }; =20 -static char *feature_word_description(FeatureWordInfo *f, uint32_t bit) +static char *feature_word_description(FeatureWordInfo *f) { assert(f->type =3D=3D CPUID_FEATURE_WORD || f->type =3D=3D MSR_FEATURE= _WORD); =20 @@ -4329,6 +4329,7 @@ static void mark_unavailable_features(X86CPU *cpu, Fe= atureWord w, uint64_t mask, CPUX86State *env =3D &cpu->env; FeatureWordInfo *f =3D &feature_word_info[w]; int i; + g_autofree char *feat_word_str =3D feature_word_description(f); =20 if (!cpu->force_features) { env->features[w] &=3D ~mask; @@ -4341,7 +4342,6 @@ static void mark_unavailable_features(X86CPU *cpu, Fe= atureWord w, uint64_t mask, =20 for (i =3D 0; i < 64; ++i) { if ((1ULL << i) & mask) { - g_autofree char *feat_word_str =3D feature_word_description(f,= i); warn_report("%s: %s%s%s [bit %d]", verbose_prefix, feat_word_str, --=20 2.34.1