Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp413600ybj; Thu, 19 Sep 2019 16:44:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDb4NdDSNPXFNCo4T6QoY4wBokOTwMgigK4TKm6uH+i7Ac+OY/v5Q1yVBg0IzLN4I3GVvR X-Received: by 2002:a17:906:7687:: with SMTP id o7mr944697ejm.213.1568936654370; Thu, 19 Sep 2019 16:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568936654; cv=none; d=google.com; s=arc-20160816; b=ZliKU9Cg6VbiKlsrLlyC8y7pemP8MzxQ8+w7gISuzZTusAyOlCuzUsGk0knpbiKQ3+ vYBfSRBDrBpkFnpS3jhKEQZGUNLdbL1MHRS7MhdojJahZ4M9PUK1KaXde5blAgJMev3+ Ydt5w8SAUBl9TA8aWZU1kvb1eAcmPf54lCJRDZ1Y7QkuA2JjZxw6W4qDvbqXjQnbpUPu Gh7w1y1AOhK5VBC1NJMs7BPCm731zbrZDmZbZJzCmarJxd8U1Gq1++kWfvWMIYMadka3 wLsvS1PXHEgyNDWRP4C+bYCe79jUYDgalL+OmvlyOyOyW4sCpGHfVrpa0+2SN6psvrX0 fPTg== 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=7/ufa7vNDq03J7rJcwWzKdIosJz93JtbhFQOq7c9jEc=; b=yUTvA4Ma8YqVGoqQaTwTlURazaz74mQgW7Hq5EOB8MPxrI6yBRfks5txrWAko22/yS LBJke7PhXycOh9XmYKqpcHB5l9e2hJKLCzvHCr764moS7xsTDHkn02qmIg/yhBqtI2ME O0hYH32JpND9nOlMbpU/m+EcXzyOd9/YEkFvCM+mV2D8qPwkwcS2jSF9RcO7L9BqZoAz 6PRGbCmh/RMti0De4imcT2mbyMHajbzVo7QiAgfwfDrwq6bKBOudW0cqoqKchPabu5vt 2oyRjrLXVpqrU3WXjWBJY70vLSEMmHr31/0dAdo2OsfonaMg7Jqx3GNadFTOTHE5hYHF 5tYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=fxu3TNsX; 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 f29si65394ejj.110.2019.09.19.16.43.51; Thu, 19 Sep 2019 16:44:14 -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=fxu3TNsX; 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 S2389835AbfISRRl (ORCPT + 99 others); Thu, 19 Sep 2019 13:17:41 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:36646 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388943AbfISRRl (ORCPT ); Thu, 19 Sep 2019 13:17:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1568913460; x=1600449460; h=from:to:cc:subject:date:message-id:mime-version; bh=7/ufa7vNDq03J7rJcwWzKdIosJz93JtbhFQOq7c9jEc=; b=fxu3TNsXK9z6BXrhC5c3DYyzq+5mBk9HRhqIX1B/7CcZvwSWVrHR/JnQ cKsG4RTe6bRlt+nv+Ns70+qmitrE8KGGaYNGzLQQXE2Sz9ERSkGS8Vzm8 c2OO0KlBo4YQCuTvRU/Q+rd0lq4qEsRuAo77bwV9ZgB7ZP8OOdAzoJDo7 0=; X-IronPort-AV: E=Sophos;i="5.64,524,1559520000"; d="scan'208";a="416145656" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 19 Sep 2019 17:17:37 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id 60E14A00AA; Thu, 19 Sep 2019 17:17:35 +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; Thu, 19 Sep 2019 17:17:34 +0000 Received: from ua9e4f3715fbc5f.ant.amazon.com (10.43.160.5) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Sep 2019 17:17:27 +0000 From: Hanna Hawa To: , , , CC: , , , , , , , , Subject: [PATCH v3 0/2] Add an API for edac device, for mulriple errors Date: Thu, 19 Sep 2019 18:17:11 +0100 Message-ID: <20190919171713.8060-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.160.5] X-ClientProxiedBy: EX13D06UWC002.ant.amazon.com (10.43.162.205) 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 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 | 50 +++++++++++++++++------------- drivers/edac/edac_device.h | 63 ++++++++++++++++++++++++++++---------- 2 files changed, 76 insertions(+), 37 deletions(-) -- 2.17.1