Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1312263ybn; Wed, 25 Sep 2019 16:09:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTyahOzmBaos9m0HGwADnrwJFn0NXtL1v5Y0qgyJOfTr+KsLzc6kWmx5GMhkg8Y4bCWx7l X-Received: by 2002:aa7:dad9:: with SMTP id x25mr493845eds.7.1569452966735; Wed, 25 Sep 2019 16:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569452966; cv=none; d=google.com; s=arc-20160816; b=ssGot6V8eOi36RAOx+JPZOMGh1rTImrub5ebv+EQZ9g/fd806h5Xrx3WEfjFX4AsoI M2l/TSsV7yjT0Qsy4K4IGuokn5IDqQeSCr2zDfkUMfopPBqnQLuWwcuNG1kHlMY274oY yIxMwe4+qAWUFs6XWW8routfPucJiNJO57XC3RKHGPqluQP6oEMrS02Ys5MOWF+Let/X c4g+I+K/HRc5K6YdLPsS2OQBXO4lLuNfOubpLPMHJglrMZFMPUXKDWp8KdQh6RH41E5f edi6Nu/8mXDbxTSuuard9ka5e06Kqm1dTBpCkCdqUnuh1YPXlpWCjnGwTzdFGqfJdTHz 9bAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=bsmJrqHV0ewka5Gks3Mfd3lHn1T9YXvQXU5YVqVSqwk=; b=nL27764qYxMbak6VO1Wj3HKkk3SKQKWMKdqbwv+5nRowtpySTwepPAo3jpIfI0BYG8 V0u4O2E0sCaNrGKbg2nqydkYXAXHPt3gyFRppPk/+Ho1ff+H+XQZ171vZ4Yyx+xXbie4 MGIgDCkKSkpD9D4T2qgSV9BzFYETSyGBLW8mSgpHAq0cfLl66jYDxtsztMPTndErOTch /yJlq+7Gj8MzpCwq31ehIWFyn0DMM7su0UKmxiTg+9O6XYFh8ZqenJH/JxZxQ9JbiFJD wwJoWw+r8QRm5c6K61a2p4CP4TwocAyBsvtsTQrpHR6auEjw5OUjc+zsZxilzCW1ezA+ PJ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=p6zgLyP4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b42si308342edb.11.2019.09.25.16.09.03; Wed, 25 Sep 2019 16:09:26 -0700 (PDT) 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=@amazon.com header.s=amazon201209 header.b=p6zgLyP4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727782AbfIWTSR (ORCPT + 99 others); Mon, 23 Sep 2019 15:18:17 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:26701 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfIWTSR (ORCPT ); Mon, 23 Sep 2019 15:18:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1569266296; x=1600802296; h=from:to:cc:subject:date:message-id:mime-version; bh=bsmJrqHV0ewka5Gks3Mfd3lHn1T9YXvQXU5YVqVSqwk=; b=p6zgLyP4dVaU6HhYNpk2k0wmfejOYuJ5kg94dVXM4mrF+hhQoEVw9h2y FB3FPlKmjcw1Hjbu5GK/zULfJ47jiWdqrd4X/ik0tHaw5NiBCnp2UHDOS zaxwJWVch1VtH4DiH4VCCZdOT04fSWWWX6wmOUD0mgeMTf7oJXukmKTxT Q=; X-IronPort-AV: E=Sophos;i="5.64,541,1559520000"; d="scan'208";a="786844310" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-4e7c8266.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 23 Sep 2019 19:18:03 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2c-4e7c8266.us-west-2.amazon.com (Postfix) with ESMTPS id 0FBE2A2412; Mon, 23 Sep 2019 19:18:03 +0000 (UTC) Received: from EX13D19EUB003.ant.amazon.com (10.43.166.69) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Sep 2019 19:18:02 +0000 Received: from ua9e4f3715fbc5f.ant.amazon.com (10.43.161.176) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Sep 2019 19:17:55 +0000 From: Hanna Hawa To: , , , CC: , , , , , , , , Subject: [PATCH v4 0/2] Add an API for edac device, for mulriple errors Date: Mon, 23 Sep 2019 20:17:39 +0100 Message-ID: <20190923191741.29322-1-hhhawa@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.176] X-ClientProxiedBy: EX13D08UWC002.ant.amazon.com (10.43.162.168) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an API for EDAC device to report for multiple errors, and move the old report function to use the new API. Changes from v3: ---------------- - Move count check to inline function - Fix count variable describtion (Reported-by: kbuild test robot ) Changes from v2: ---------------- - Remove copy of edac_device_handle_*() functions, modify the existing functions. Changes from v1: ---------------- - use 'unsigned int' instead of u16 - update variable name to be count - remove WARN_ON and simply exit if count is zero - add inline functions in header file Hanna Hawa (2): edac: Add an API for edac device to report for multiple errors edac: move edac_device_handle_*() API functions to header drivers/edac/edac_device.c | 44 +++++++++++++++++---------------- drivers/edac/edac_device.h | 50 +++++++++++++++++++++++++++++++++----- 2 files changed, 67 insertions(+), 27 deletions(-) -- 2.17.1