Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3725613pxb; Mon, 4 Oct 2021 08:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEb5U9vu0X4kQXQF4CV8P4P01z0GOURwdpAtrnoCGG8G3bY9KDaJvOPF2BpYpHl0jI6xLJ X-Received: by 2002:a62:17d3:0:b0:44c:6022:9428 with SMTP id 202-20020a6217d3000000b0044c60229428mr6070449pfx.65.1633360752820; Mon, 04 Oct 2021 08:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633360752; cv=none; d=google.com; s=arc-20160816; b=fMbqIV7XCQug/Q1o6tUykRp1YTBE80OnrL/06PiecbG9R0t+GvQ7dnivaHlL8YBOpQ ver73t2Mu+tG/63kpdE8ruLSn4HpfKCd45ENOI8B1iLtqlY6KVN5sW2YvklL9RxAz6HL Pg5/ETzltIZCJUmEtOwAv6xpnfACvhPtTp5LeGGiCNf7pKPwvC8jvNDPDi8qd6wh/qK5 lC9gtay5YlI7K4MqfvS/haD+vlmnRbtr9wGkaIJ3p3OZSUp0cmM3ZzPpS2OLAaRdewl5 3NWHGF4LKAO9ii1Bfxc/pnM32Hunl3K511bnD2TRkV/MRqTSCn/rBLtHBaAnIUM+RgHO ozDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8NjcHI4oZ8m/vSiPh1bKOJc3CY5Ba7Zc7eicRaenRCQ=; b=k0Buob3vgQ0l8e7x8okegDjawC+gYxJ8jNewy88bIi1i/P9C69+IerbnjyJv223ITB 8t2ZJByzQrD8CUz5imDzkRRjki87LugpmsKcLyGX0pyIF4EWlxlbKFnBLHsaPkj7SYM2 ooPbWPljNyaG16AtUQ64T9Zn3OwHJLTGZMS4y/cc1ZbaD23U34XaW3+1vPWGmP4iSjdG gZvpq7cUPGFx55QB27hWgIcKxgt9pDUI8GkqHBk/g9B5YNzJVWP6fFAL4RL7Rv8HjdkF Teup5l5v4GAtVZD/ZSseTHFeM5Jxz/JmV4m390s89LXPBCIukQksIEN7k1IFx0p9Ll4d V6fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FCMShRk5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si1732633pjp.61.2021.10.04.08.18.58; Mon, 04 Oct 2021 08:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FCMShRk5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234084AbhJDNHd (ORCPT + 99 others); Mon, 4 Oct 2021 09:07:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:37450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235007AbhJDNE6 (ORCPT ); Mon, 4 Oct 2021 09:04:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 099F561373; Mon, 4 Oct 2021 13:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633352438; bh=bofRQF8V4KZ0GU9jbM7DDLS1tyHH/1lOTOy5XoKg1+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FCMShRk5dp12Mk5oE4ZjIJrZpYKp0IFxG2x65dCHikUTLHJkgVjYP1Vsys9rexCE8 DC88bm5lX3t75uWnO2lv5dAdlmG7/GVI2a0GprfTgtbb2EWZgFI4o1/DYabk9MXsAz X+WpEMtBeHsImckiIYmYbk8xfY1oaNWur96sKCPw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sai Krishna Potthuri , Shubhrajyoti Datta , Borislav Petkov Subject: [PATCH 4.14 62/75] EDAC/synopsys: Fix wrong value type assignment for edac_mode Date: Mon, 4 Oct 2021 14:52:37 +0200 Message-Id: <20211004125033.615719687@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125031.530773667@linuxfoundation.org> References: <20211004125031.530773667@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sai Krishna Potthuri commit 5297cfa6bdf93e3889f78f9b482e2a595a376083 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/edac/synopsys_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -371,7 +371,7 @@ static int synps_edac_init_csrows(struct 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;