Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5162517ybc; Tue, 26 Nov 2019 22:57:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyAWICidG/wDOQl49hSF4vXjqIR0n1v7I+FKFj60lcmMFlnNi16JIU4cfNSnqn8MDFpHFx6 X-Received: by 2002:aa7:c898:: with SMTP id p24mr29787662eds.19.1574837827535; Tue, 26 Nov 2019 22:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574837827; cv=none; d=google.com; s=arc-20160816; b=pxNeVhY9hI6eJ5pUIkwZbNztZXzRg25qw42jG559MS4zl9kAW1Lctp+FxAwwmovBV1 CJcfwLC6apf6exZLHW0puVX7c3LyuTLhdcS2x0e+fdDJJa/UXdphoZjWkbSrs5ho1LH6 qYtNPjAVNIgycCiHWn/DWjFCwwEUQdQpaPH1ctxQL9mI4ne6/N0S0QPO7qY55pLpos0K Xfa/kUfwHAF8oumUkXztnj4xjsVl7AqHl7kKZ/ulygq485DZAeiqyJVXJ32uHhfV7Gcx T7jwBP1uDpf/nEScsSV2s+4LvKU971ZvcPU/QTG5OXG/V5UEILCMjDc8c+OIkdx7lkIi g2jQ== 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=KuQPrp2Sf7gN5I9EAr348T1yBTBQmJrpqeh1YXF7Lzs=; b=C3ECuUmoyswaVXzo5HPGz88jkmNGZ0l2cAaIJKU+igBCIrnhJy2RwQsMm+/NixO4ff bvEpDI8lSPBGtDgmxBxfJDXAy/i42rjlej/Ksq90a9lLBkiFph+iEe0Jo1l0ZZ9fTMSL rgKXBvi4PTSs91CRZXE0iAD23qtHuSpfBMcmYs3D+9c6Gr2BsuP1FXNVtg1Go3fWNbJS IzzT7coFjnrQr00MICrE/edII1njunH8f/XeOEQFaMXFDm7DuPHjPi58BV8/5m3khdK6 vj+TJjaUbkWXeyFOOjYBiUPhftuv0pxmu2jJA3lotzuj+RU1GP8Ts41iV4qUqkrEgrm5 Bqgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="WMOXL/IL"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si9184389edq.31.2019.11.26.22.56.42; Tue, 26 Nov 2019 22:57:07 -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=fail header.i=@gmail.com header.s=20161025 header.b="WMOXL/IL"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726227AbfK0Gyl (ORCPT + 99 others); Wed, 27 Nov 2019 01:54:41 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43564 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbfK0Gyl (ORCPT ); Wed, 27 Nov 2019 01:54:41 -0500 Received: by mail-wr1-f68.google.com with SMTP id n1so25313232wra.10 for ; Tue, 26 Nov 2019 22:54:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KuQPrp2Sf7gN5I9EAr348T1yBTBQmJrpqeh1YXF7Lzs=; b=WMOXL/ILHyTMMK62UlIIUCyH/MoU3hbrKHjGiJ/sgbLmF8XmA91lLhtmCa5Ztrd3g6 tNdDYpi5taMs0iX+3voaZrBBh19vE2wkV+mc0weNsnYvdJbu672uh6m8LRKlUqHGoCWz v9ogaH1rzEAdR8vW2/bEmSfiNJKyEetkpVt/bvZ+qrCan9TMT2J8I7SpohSfhatJPiEp +s8lTs3pULMQCxidqNPa5VniRtds2lDbR2ucfDDfd9XwVVL/EsrXHhXCjrVPGvOluJ6b SLikrXMnNPR51Uvy6lfWXbg9wcOFADAPMj8IQfMOh7MPxmQJ1Xs7wHF3N7bQZHB+ostn SwBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=KuQPrp2Sf7gN5I9EAr348T1yBTBQmJrpqeh1YXF7Lzs=; b=fsLqy75UA/Tx2+wV/oFBHlVq9rgFlmBkr6XR63kRPqTUyMr9+qIc6iCCUIqRTsqfSi nFmyUeW8lszY39RrghS+jvPeU9HYvpDyugHwMJ+gEhXar0fJzZk/pZR4U7OgvzZV5zly rXVf09GvaHe0V/AbFSiAkYjfmOILWfeNd9GteRMe3FrSVQlp3OyCYPljLg0iN56CiUCD wUHKYbh3QU4AtlQU5FIOGbSBGjTiDsvgpFu6FYfRgEVQu9poQBt6PnQSearHV4RkeyKp vJFiYte8OTZGd9gspmstCYtFcdHzPW2eLGECT5+zeuYA8HrXH7b0QyvjpLMtT8vvvKma QXqA== X-Gm-Message-State: APjAAAXpIFROkbtT9b7WuvlKsEJcFUpVFKU2g5562A38HGvIrW1pyWeu aEWJaQlo1BTr3zuM8wtPUw7CBMrd X-Received: by 2002:adf:e40e:: with SMTP id g14mr19328980wrm.264.1574837679093; Tue, 26 Nov 2019 22:54:39 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id z9sm18102498wrv.35.2019.11.26.22.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 22:54:38 -0800 (PST) Date: Wed, 27 Nov 2019 07:54:36 +0100 From: Ingo Molnar To: Jules Irenge Cc: bp@alien8.de, 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: <20191127065436.GC52731@gmail.com> References: <20191126221519.167145-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191126221519.167145-1-jbi.octave@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 * 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. Thanks, Ingo