From nobody Tue Nov 26 09:22:43 2024 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 68B10201271 for ; Fri, 18 Oct 2024 15:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729266717; cv=none; b=K5DVQ3mJeo7giD3SuIR5vgUWCri8DlyI2DCePfHot+KdUxBlMquGvmVjBmOjWXlrqFYIBaB/pyYRP2RJBxI8hGlmIEC6dV5L8SCmHahXamI+bvtnh+589Hj+Sq6NpioPGZn78JDHQWV8Ck6+XIyYsuq4RjPwyJ9TzOpOiydmfmU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729266717; c=relaxed/simple; bh=oS68MaL8eWy4mAk70gs3Fwr6dLNVT/QWAf+96r2AMRc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=L4dEzowvRmYa1knQOJTsp/M9NOzCc40f9cqEx9NIjs/KRf/7S+IC1K2UiMf5MGqQwv/xZIo+O1my9oULsFWZWTnsF6Wnokx5ODgxZzz6KnuwSF/jcGgCZtSrlp9FQbXx3lTA/xrkvXVglLUaUor1AaezM3R30yt0PgDCeIZ2MOQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=ude7u+Cn; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=ude7u+Cn; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="ude7u+Cn"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="ude7u+Cn" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6EF1D1F7FD; Fri, 18 Oct 2024 15:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1729266713; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uPGclzRuSriQ1LArqFrQu9QFEEXg4iJhqamCVoDdVOE=; b=ude7u+CnoxmgRluTXqbwvj8Jssm92wJdoHLDc4+KQOw4lPBEmmjmTjRB7KihZLsxw/RF/H Pt7IltMPkdiMlv6Unf33g3mk/7YYQ5V85KtY0Mj3mD0HH+e3pjDjsVFgA829dq12GEPsgd Eg9s6Y9RuCVRIpPVRyiwLBwyGumwaOY= Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1729266713; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uPGclzRuSriQ1LArqFrQu9QFEEXg4iJhqamCVoDdVOE=; b=ude7u+CnoxmgRluTXqbwvj8Jssm92wJdoHLDc4+KQOw4lPBEmmjmTjRB7KihZLsxw/RF/H Pt7IltMPkdiMlv6Unf33g3mk/7YYQ5V85KtY0Mj3mD0HH+e3pjDjsVFgA829dq12GEPsgd Eg9s6Y9RuCVRIpPVRyiwLBwyGumwaOY= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2EE9613A7F; Fri, 18 Oct 2024 15:51:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 2Dw3CRmEEmcvTwAAD6G6ig (envelope-from ); Fri, 18 Oct 2024 15:51:53 +0000 From: Nikolay Borisov To: bp@alien8.de Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Nikolay Borisov Subject: [PATCH 1/3] x86/microcode/AMD: Return bool from find_blobs_in_containers() Date: Fri, 18 Oct 2024 18:51:49 +0300 Message-Id: <20241018155151.702350-2-nik.borisov@suse.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018155151.702350-1-nik.borisov@suse.com> References: <20241018155151.702350-1-nik.borisov@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.com:email,suse.com:mid]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.80 X-Spam-Flag: NO Content-Type: text/plain; charset="utf-8" Instead of open-coding the check for size/data move it inside the function and make it return a boolean indicating whether data was found or not. No functional changes. Signed-off-by: Nikolay Borisov --- arch/x86/kernel/cpu/microcode/amd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index f63b051f25a0..9986cb85c951 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -554,7 +554,7 @@ static bool get_builtin_microcode(struct cpio_data *cp) return false; } =20 -static void __init find_blobs_in_containers(struct cpio_data *ret) +static bool __init find_blobs_in_containers(struct cpio_data *ret) { struct cpio_data cp; =20 @@ -562,6 +562,7 @@ static void __init find_blobs_in_containers(struct cpio= _data *ret) cp =3D find_microcode_in_initrd(ucode_path); =20 *ret =3D cp; + return cp.data && cp.size; } =20 void __init load_ucode_amd_bsp(struct early_load_data *ed, unsigned int cp= uid_1_eax) @@ -576,8 +577,7 @@ void __init load_ucode_amd_bsp(struct early_load_data *= ed, unsigned int cpuid_1_ /* Needed in load_microcode_amd() */ ucode_cpu_info[0].cpu_sig.sig =3D cpuid_1_eax; =20 - find_blobs_in_containers(&cp); - if (!(cp.data && cp.size)) + if (!find_blobs_in_containers(&cp)) return; =20 if (early_apply_microcode(ed->old_rev, cp.data, cp.size)) @@ -597,8 +597,7 @@ static int __init save_microcode_in_initrd(void) if (dis_ucode_ldr || c->x86_vendor !=3D X86_VENDOR_AMD || c->x86 < 0x10) return 0; =20 - find_blobs_in_containers(&cp); - if (!(cp.data && cp.size)) + if (!find_blobs_in_containers(&cp)) return -EINVAL; =20 scan_containers(cp.data, cp.size, &desc); --=20 2.34.1 From nobody Tue Nov 26 09:22:43 2024 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 777C8201277 for ; Fri, 18 Oct 2024 15:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729266717; cv=none; b=YsawyokSicYXVwKvkPt5U7v9MVeQAdQcmZQbs80wFNvl0zef7TyWWHpoJ6ItjD5QQ/GewhDfk2Ll0onzUFnuvflfmSmlQhmK/uZBOPwDub3ZVE9Z92xgT2CNy7UaCtCyAcEb4Hm8BHx3LKt8Gv6d78yfMwWs04HsE+2hmz5TUks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729266717; c=relaxed/simple; bh=QeYya6PLVeBUcR5U2zHNvWyl0K1mFebd1ZprbHk4lqc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TCE3hFYD5lnGB8p8EGr1H0/x7SmWdsCsDsUkKM7wV1jnD5Hs3qknfT7Kl8nckMDlJUcrRrrn5Ir/INjxB9S20OjjZbMqJdUbreb25tnl45Y4Vl79i08fuclzjoIm2zOZ5t0K6vBbEq2UcR+0t9ZBg3u9fzT6+gzDUS461Y4osbU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=J0q++TUO; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=J0q++TUO; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="J0q++TUO"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="J0q++TUO" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B7AF721C99; Fri, 18 Oct 2024 15:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1729266713; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o5ikgjVSfBS6Q+1un3aDubfCNJOs1tOymRWICZ/T0eI=; b=J0q++TUO0vCDFTuwbKr8sAsMPuyv483sIMgW/ln7chw9NUsT9zbmoYHROd7TvgLchLPIiw 4KcUD0ew751lyK8kbucdYm14klhgT6VxBxa6yi00Ruaim1Bsbwh2tIBrxbHcWdrq7Qwd4q Xb65bz59QTS903Fur4m8hGYdgT+CDHk= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1729266713; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o5ikgjVSfBS6Q+1un3aDubfCNJOs1tOymRWICZ/T0eI=; b=J0q++TUO0vCDFTuwbKr8sAsMPuyv483sIMgW/ln7chw9NUsT9zbmoYHROd7TvgLchLPIiw 4KcUD0ew751lyK8kbucdYm14klhgT6VxBxa6yi00Ruaim1Bsbwh2tIBrxbHcWdrq7Qwd4q Xb65bz59QTS903Fur4m8hGYdgT+CDHk= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 78F3113680; Fri, 18 Oct 2024 15:51:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id qLtJGxmEEmcvTwAAD6G6ig (envelope-from ); Fri, 18 Oct 2024 15:51:53 +0000 From: Nikolay Borisov To: bp@alien8.de Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Nikolay Borisov Subject: [PATCH 2/3] x86/microcode/AMD: Make __verify_patch_size() return bool Date: Fri, 18 Oct 2024 18:51:50 +0300 Message-Id: <20241018155151.702350-3-nik.borisov@suse.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018155151.702350-1-nik.borisov@suse.com> References: <20241018155151.702350-1-nik.borisov@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.80 X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:mid,suse.com:email,imap1.dmz-prg2.suse.org:helo] X-Spam-Flag: NO X-Spam-Level: Content-Type: text/plain; charset="utf-8" The result of that function is in essence boolean, so simplify to return the result of the relevant expression. It also makes it follow the convetion used by __verify_patch_section(). No functional changes. Signed-off-by: Nikolay Borisov --- arch/x86/kernel/cpu/microcode/amd.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index 9986cb85c951..37a428b109a2 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -282,7 +282,7 @@ __verify_patch_section(const u8 *buf, size_t buf_size, = u32 *sh_psize) * exceed the per-family maximum). @sh_psize is the size read from the sec= tion * header. */ -static unsigned int __verify_patch_size(u32 sh_psize, size_t buf_size) +static bool __verify_patch_size(u32 sh_psize, size_t buf_size) { u8 family =3D x86_family(bsp_cpuid_1_eax); u32 max_size; @@ -305,10 +305,7 @@ static unsigned int __verify_patch_size(u32 sh_psize, = size_t buf_size) return 0; } =20 - if (sh_psize > min_t(u32, buf_size, max_size)) - return 0; - - return sh_psize; + return sh_psize <=3D min_t(u32, buf_size, max_size); } =20 /* @@ -323,7 +320,6 @@ static int verify_patch(const u8 *buf, size_t buf_size,= u32 *patch_size) { u8 family =3D x86_family(bsp_cpuid_1_eax); struct microcode_header_amd *mc_hdr; - unsigned int ret; u32 sh_psize; u16 proc_id; u8 patch_fam; @@ -347,8 +343,7 @@ static int verify_patch(const u8 *buf, size_t buf_size,= u32 *patch_size) return -1; } =20 - ret =3D __verify_patch_size(sh_psize, buf_size); - if (!ret) { + if (!__verify_patch_size(sh_psize, buf_size)) { pr_debug("Per-family patch size mismatch.\n"); return -1; } --=20 2.34.1 From nobody Tue Nov 26 09:22:43 2024 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 B2FE9165EFC for ; Fri, 18 Oct 2024 15:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729266717; cv=none; b=i8lq7hPNk/NBv9S9LEX30F2XFj3uX8jcK95CQHCqzxWNJvIMmcEpkzH2izuL+y9EwtMhdgFTZg+sBS9YmoE19k3LkltJ9xg3EWwJ3YVr/Vgjwpw/jjpkDdsrwC4tloxVlFGbIKnYuw1DvsvI8wSVgYxPWJ3PxT8GzKkQq1ruhSE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729266717; c=relaxed/simple; bh=bKVbGZrcmlJayVE3NlLl398wEqLngGiUSaAH0OJkd5Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pxYuHOsd1csi7TzI0dsfdAufLwdJPEPgndk4DUW5k18eKaOu50AoXwDa5EsQ5P/bdlasxHDlb1Inun+vuFESf2o1zItbM1Uzmx+2lNt2VYdrSj3S6DMHdmTUaeQ7JN1xhTQfWRknwLNqecHcvM8FtjN51B5ZlQGDu14FAdiZ0O8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=XM6EL3qq; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=XM6EL3qq; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="XM6EL3qq"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="XM6EL3qq" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1015D21D06; Fri, 18 Oct 2024 15:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1729266714; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z6GRUW7l8LPVKjGnWI+EPQJ0S+pCZSweLZVBQClN/cA=; b=XM6EL3qqhWxezdgAPBXd8gaSwDJPsF+u27MTAqZpJki4L+C43+EWD9JGHS1+JQdPN4CD5v 1J5CsIk9mBZxJDqyVPFL5Ficc4VJWu8PIVRcZa5tkQUxCcfee/0MYP+GuiX2Lv0C8B6IOG smTO9/GfJ3DhBl5VYUEHfQ/rS55e+9Q= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1729266714; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z6GRUW7l8LPVKjGnWI+EPQJ0S+pCZSweLZVBQClN/cA=; b=XM6EL3qqhWxezdgAPBXd8gaSwDJPsF+u27MTAqZpJki4L+C43+EWD9JGHS1+JQdPN4CD5v 1J5CsIk9mBZxJDqyVPFL5Ficc4VJWu8PIVRcZa5tkQUxCcfee/0MYP+GuiX2Lv0C8B6IOG smTO9/GfJ3DhBl5VYUEHfQ/rS55e+9Q= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C872413A7F; Fri, 18 Oct 2024 15:51:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QBAnLhmEEmcvTwAAD6G6ig (envelope-from ); Fri, 18 Oct 2024 15:51:53 +0000 From: Nikolay Borisov To: bp@alien8.de Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Nikolay Borisov Subject: [PATCH 3/3] x86/microcode/AMD: Remove bogus comment from parse_container() Date: Fri, 18 Oct 2024 18:51:51 +0300 Message-Id: <20241018155151.702350-4-nik.borisov@suse.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018155151.702350-1-nik.borisov@suse.com> References: <20241018155151.702350-1-nik.borisov@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid,imap1.dmz-prg2.suse.org:helo]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.80 X-Spam-Flag: NO Content-Type: text/plain; charset="utf-8" The functions doesn't return an equivalence ID, remove the false comment. Signed-off-by: Nikolay Borisov --- arch/x86/kernel/cpu/microcode/amd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index 37a428b109a2..f4e6d1f96b6b 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -375,8 +375,8 @@ static bool mc_patch_matches(struct microcode_amd *mc, = u16 eq_id) =20 /* * This scans the ucode blob for the proper container as we can have multi= ple - * containers glued together. Returns the equivalence ID from the equivale= nce - * table or 0 if none found. + * containers glued together. + * * Returns the amount of bytes consumed while scanning. @desc contains all= the * data we're going to use in later stages of the application. */ --=20 2.34.1