From patchwork Mon May 31 14:52:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 450518 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp899427jao; Mon, 31 May 2021 07:55:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3guzLsgXZAf02rjQn7tOgPjhloDqIa2qlxiizk4XsJqbZVXW93nsdv/OJPy4dUxQxdCir X-Received: by 2002:a17:906:274d:: with SMTP id a13mr23689417ejd.51.1622472926641; Mon, 31 May 2021 07:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472926; cv=none; d=google.com; s=arc-20160816; b=RO6Os1DgtUe/41NhuLbom1RNI/jVCuA0kg7UFoGIvWfnqRfA2GtD6XOEcngsCNYhGR YG69uhiCwwXoP+lsvmlRNfjMBpoVg5jmrz10/gK6kDgGcCYviyqN4Lz8eqJ3YZHxArPr wtXcfXBSPor0ilar9URSjsiuo7B7YqdN39G86muH8d8RhyfQD2sc9sTpqILjQGk5r6RV zxIsEwoiS37KBfIOR1GufQ9jur89WPXRfLcF4Eur4F6AGBbhuUwkT0jPTiImxmXZ8ULO dSIjwd0AmhNvP+C9kt737KQbrA+tW0rhVNvRSf2WN4xJh7zmIs6EPUzh9Y4c8uq7YqWw XPeg== 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 :message-id:date:subject:cc:to:from; bh=4PIujY9wFTuZHXiWBD/UHeKBZlN7cKwfjYZkV5qvUp4=; b=M1H7Tuy5YXjRx47QOfcy4IkRqqFjFSzbCHbihdHdHq/cuLZ3KE/4mv7NUiaRmNDHD9 Ntr7m48w2HCNPzv66GhpZh4Z0GXWQR/WElq35btoWrChg7yBy3yGPOt29peIA4B7gC2d OYXteIBQWcpC0bvHYzA/GFobosQQzJZzMeUUkq7pwWub7/lz4rUrzgbodCvzC30jIMcl ep/xXsC6lxYRhrp37QTxCOsxlrZbb9JeeRgj9ZoI4jIbD9NqjGK1/KSABFdrXs8RsiY1 +fYMId9Os1iDSo3W5Ry/Tmc5Lr3pcmac2NjytfDUfR+1+Vr29pspuDHFeZ4yhMPboAmS sDKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si3991067ejc.708.2021.05.31.07.55.26; Mon, 31 May 2021 07:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234063AbhEaO45 (ORCPT + 17 others); Mon, 31 May 2021 10:56:57 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:3308 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234288AbhEaOyx (ORCPT ); Mon, 31 May 2021 10:54:53 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4FtypP6gwQz1BGky; Mon, 31 May 2021 22:48:29 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 22:53:10 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 22:53:09 +0800 From: Zhen Lei To: Borislav Petkov , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , Johannes Thumshirn , Ralf Baechle , Dinh Nguyen , Jan Luebbe , Andre Przywara , Channagoud Kadabi , "Venkata Narendra Kumar Gutta" , Andy Gross , Bjorn Andersson , "Khuong Dinh" , York Sun , linux-edac , linux-mips , linux-arm-msm , linux-kernel CC: Zhen Lei Subject: [PATCH v2 0/3] edac: Fix error return code when edac_pci_add_device() or edac_device_add_device() fails Date: Mon, 31 May 2021 22:52:59 +0800 Message-ID: <20210531145302.9655-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org v1 --> v2: 1. When edac_pci_add_device() fails, fix to return -ENODEV 2. When edac_device_add_device() fails, fix to return -ENXIO 3. Use 'ret' instead of 'res' to store the return value Zhen Lei (3): edac: Fix error return code when edac_pci_add_device() fails edac: Fix error return code when edac_device_add_device() fails edac: Use 'ret' instead of 'res' to store the return value drivers/edac/altera_edac.c | 70 +++++++++++++++++---------------- drivers/edac/amd8111_edac.c | 2 + drivers/edac/armada_xp_edac.c | 8 ++-- drivers/edac/cpc925_edac.c | 16 ++++---- drivers/edac/fsl_ddr_edac.c | 24 +++++------ drivers/edac/highbank_l2_edac.c | 22 ++++++----- drivers/edac/highbank_mc_edac.c | 20 +++++----- drivers/edac/layerscape_edac.c | 8 ++-- drivers/edac/mpc85xx_edac.c | 46 +++++++++++----------- drivers/edac/octeon_edac-pci.c | 9 +---- drivers/edac/qcom_edac.c | 4 +- drivers/edac/skx_base.c | 6 +-- drivers/edac/thunderx_edac.c | 28 +++++++------ drivers/edac/xgene_edac.c | 6 +-- 14 files changed, 138 insertions(+), 131 deletions(-) -- 2.26.0.106.g9fadedd