Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5399221ybc; Wed, 27 Nov 2019 03:28:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzJYbN4r9exxqf/QnlHrk1kkzQ3NjxTnhi/cn2RbcD3JFsxei8JOI1j9V31vAR91kE+SE1r X-Received: by 2002:a17:906:b819:: with SMTP id dv25mr30750380ejb.182.1574854111191; Wed, 27 Nov 2019 03:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574854111; cv=none; d=google.com; s=arc-20160816; b=EUn/FTMfAwLUwYs9NMYI1+fJ4cvGiTjqqUQS9Kfb7a+pMoDRWTKVO+a3qGsaWXpr2W j3U7k4Rb1ED+WCLHd8Abl3hIgIuzavIogNDvy8zoaD15n3CqoeoZlb/pEU1Lt696Fe34 /nyS6UjPxImjovgs3PNYFMi4GhKbygJwiYQIJMRZSgenH0zfXqOpFtZMyWCGiGP4p5If ec5mF8QdGfwBlttMzjCxCFihCYiEFueHkeysMcKsdWjOfZcbzCEOcKzhFu1yJ9wHLjSO /zzeebYtOSauPkNl9k+laGN+Na30AzAhbEJvlKqfMEYempWH9CwErBDPltGZAvIUbtse l9rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zkgYU9yQbCe3KqRjeSOv/Vsy6xOWdNuit7arXyBXsR8=; b=Nr0FcA/ZTS+HXSdypG0sYqS4yPtRmksWxWzWzfAsx3vT7b9H9djdOe12c2hIHoqYGJ uLt0Wq4h+xV2WTABmR5MnBjv5iQV7nNWT+wIItXj+jTEIxRn019IsLVIDMxTlQQk/pEt H1jf2BNFNgT5PGO2De7OzYtxvnhczSAN/NbAG66wiCF3+VR/T1jHWz0DSJJ4oG4y0rtq y7gfkMtF3NofjgiAOUx1K5XBlqBGo/4ERyb7erqtPzpxiiR5b0elWASYbbhka6qMWSnQ QiNhRaLDA3N3la/LuAZ/7rdEPZgXHvBrGuXPvbTZWIlfmwykOiFROziT5wFUAjsDWFEr A6qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=fEz4+Vgw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si8957918ejt.319.2019.11.27.03.28.07; Wed, 27 Nov 2019 03:28:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=fEz4+Vgw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726546AbfK0L01 (ORCPT + 99 others); Wed, 27 Nov 2019 06:26:27 -0500 Received: from mail.skyhub.de ([5.9.137.197]:54506 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbfK0L01 (ORCPT ); Wed, 27 Nov 2019 06:26:27 -0500 Received: from zn.tnic (p200300EC2F0F37003034EE13CF148829.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:3700:3034:ee13:cf14:8829]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 83C531EC0CEB; Wed, 27 Nov 2019 12:26:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1574853981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=zkgYU9yQbCe3KqRjeSOv/Vsy6xOWdNuit7arXyBXsR8=; b=fEz4+VgwlWzJgyGzRPmC9fQQXD8YKWUB2F6jMEnUiBY4w1cNtHIPxShAsjuFAu3zm7RRMI CCHzwdQUrz96dXJFE+NTvM7Z7/wTnWU3kzkH3NwHk73GOs19sAgWhIH35AyQBJoKHx8qoR qoNHcq4B8l062u8GGC6FstPOhFA7pqw= Date: Wed, 27 Nov 2019 12:26:13 +0100 From: Borislav Petkov To: Ingo Molnar Cc: Jules Irenge , tglx@linutronix.de, linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@redhat.com Subject: Re: [PATCH] cpu: microcode: Add comma to 0 Message-ID: <20191127112613.GA3812@zn.tnic> References: <20191126221519.167145-1-jbi.octave@gmail.com> <20191127065436.GC52731@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191127065436.GC52731@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 27, 2019 at 07:54:36AM +0100, Ingo Molnar wrote: > > * Jules Irenge wrote: > > > Add "," after 0 > > Because memory for the struct is being cleared > > and elements after "," are missing on purpose > > as they are being cleared to > > > > Recommended by Boris Petkov > > > > Signed-off-by: Jules Irenge > > --- > > arch/x86/kernel/cpu/microcode/amd.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c > > index a0e52bd00ecc..04ee649f4acb 100644 > > --- a/arch/x86/kernel/cpu/microcode/amd.c > > +++ b/arch/x86/kernel/cpu/microcode/amd.c > > @@ -418,7 +418,7 @@ static int __apply_microcode_amd(struct microcode_amd *mc) > > static bool > > apply_microcode_early_amd(u32 cpuid_1_eax, void *ucode, size_t size, bool save_patch) > > { > > - struct cont_desc desc = { 0 }; > > + struct cont_desc desc = { 0, }; > > This is 100% unnecessary - " = { }" is enough of a structure initializer. That was my initial thought but empty initializers are not ISO C compliant, I've been told. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette