Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C39AC433EF for ; Mon, 4 Oct 2021 10:13:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34248613A1 for ; Mon, 4 Oct 2021 10:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbhJDKPB (ORCPT ); Mon, 4 Oct 2021 06:15:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:34772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbhJDKPA (ORCPT ); Mon, 4 Oct 2021 06:15:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 371826128A; Mon, 4 Oct 2021 10:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633342391; bh=W8gsA0e5WMmQkhDIxgucH/2WMvBUflfSF6SflerPjaw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rxa0wGeSojmpDzKjstImkPJuTHEQoB1U/NJl3Ts4kwN3l3JlwkpdMaF19MedS/jAy QKhjJ2SCQ6X5NPw6+MoQ12PB1uWvYWwWTW/zmRZztrLykeYzeu81ZV2w4rohDR5Zp4 Gx868NA1qghlEi7DnmicRNvSNtYi0WKg5g/2s1w0= Date: Mon, 4 Oct 2021 12:13:08 +0200 From: Greg KH To: Borislav Petkov Cc: lakshmi.sai.krishna.potthuri@xilinx.com, shubhrajyoti.datta@xilinx.com, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] EDAC/synopsys: Fix wrong value type assignment for edac_mode" failed to apply to 4.19-stable tree Message-ID: References: <163274045325350@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Sep 28, 2021 at 12:48:56AM +0200, Borislav Petkov wrote: > On Tue, Sep 28, 2021 at 12:47:25AM +0200, Borislav Petkov wrote: > > On Mon, Sep 27, 2021 at 01:00:53PM +0200, gregkh@linuxfoundation.org wrote: > > > > > > The patch below does not apply to the 4.19-stable tree. > > > If someone wants it applied there, or to any other stable or longterm > > > tree, then please email the backport, including the original git commit > > > id to . > > > > --- > > From: Sai Krishna Potthuri > > Date: Wed, 18 Aug 2021 12:53:14 +0530 > > Subject: [PATCH] EDAC/synopsys: Fix wrong value type assignment for edac_mode > > > > Upstream commit 5297cfa6bdf93e3889f78f9b482e2a595a376083. > > > > dimm->edac_mode contains values of type enum edac_type - not the > > corresponding capability flags. Fix that. > > > > Issue caught by Coverity check "enumerated type mixed with another > > type." > > > > [ bp: Rewrite commit message, add tags. ] > > > > Fixes: ae9b56e3996d ("EDAC, synps: Add EDAC support for zynq ddr ecc controller") > > Signed-off-by: Sai Krishna Potthuri > > Signed-off-by: Shubhrajyoti Datta > > Signed-off-by: Borislav Petkov > > Cc: > > Link: https://lkml.kernel.org/r/20210818072315.15149-1-shubhrajyoti.datta@xilinx.com > > --- > > drivers/edac/synopsys_edac.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c > > index 0c9c59e2b5a3..ba9de54a701e 100644 > > --- a/drivers/edac/synopsys_edac.c > > +++ b/drivers/edac/synopsys_edac.c > > @@ -371,7 +371,7 @@ static int synps_edac_init_csrows(struct mem_ctl_info *mci) > > > > for (j = 0; j < csi->nr_channels; j++) { > > dimm = csi->channels[j]->dimm; > > - dimm->edac_mode = EDAC_FLAG_SECDED; > > + dimm->edac_mode = EDAC_SECDED; > > dimm->mtype = synps_edac_get_mtype(priv->baseaddr); > > dimm->nr_pages = (size >> PAGE_SHIFT) / csi->nr_channels; > > dimm->grain = SYNPS_EDAC_ERR_GRAIN; > > -- > > ... and you get the idea - just use this one for 4.9.y and 4.14.y - it > should apply cleanly there. All now queued up, thanks. greg k-h