From patchwork Mon Sep 23 19:17:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hawa, Hanna" X-Patchwork-Id: 11157509 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4526513BD for ; Mon, 23 Sep 2019 19:18:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 22BFB2089F for ; Mon, 23 Sep 2019 19:18:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="p6zgLyP4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727419AbfIWTSR (ORCPT ); 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 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-edac-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-edac@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(-)