Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2328140ybe; Thu, 12 Sep 2019 07:56:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzpW9Q2rDLP50dzfBoEwgiqVIOBmes7D9C3OBaKieq3G5Q5mWY9mzkLdthy8PahvsKrPVx X-Received: by 2002:a17:906:c72d:: with SMTP id fj13mr35525329ejb.36.1568300191936; Thu, 12 Sep 2019 07:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568300191; cv=none; d=google.com; s=arc-20160816; b=z11qpDg59PbLrJcDqgOLUfWhlDZ5F2Sfn5Np4xFCRW7DFBXzIunmYjvd/yiRnvpVr1 XjiSvT7kbKOY4rS49IgaVMgmDE4JgE7F80DXq+zV/9WJaB9+uRUAVuG7dxdqou2yXmmF AjHQaB6Xk9bWw7L8s4uVppRlc/WrCb0wEn5w5D+MgWOcmwxMko56pfCTYZ5sxjxxgRA7 fopWKoePwkzYw2gbSjLmdX3Z6y0nCKylCKEZRHaRVcrjlnNuv3QGwc7K1c8YFwv03GlL VMcBz57nNi6BlgeZe8rj83MrU7pAUwe+ZXgdwEu/q7uC0jO/OcBJ7ab96JSmw4OlXTdB IeHA== 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=iXXC6QHvhsukvUq7xWp72n4eTBHxcxsmsJia2V5Zs38=; b=0k+90rtOlaE6iPbGM+5cO3Te85ZVdQZzrNY3SdHTAEcf4cI0RF1J0KToX2TNQP67Bd I3SUVisZA4KsgcfRCIpR8Zu496OJXmNl3pzUNFd53zwLLRAQFxaAIYA+hniVY3qqHyDo ZRLsXkMHirozxvAeKcEVUECTnjmluLAtcdzLUlBWXo7GdvewRWEXkVVHYOtSlTVlGuSp wNtpiknQyGdH5qdZt89wZz6ctG/I21FfNNM0BwQ+HXOLigtTE32QLiDO6hACSM5m6vQW WA0bNysHecSQu3BFMvxlMA9B/j6L0Na+7woxaxAAprEZpOIShas1ymNcdiLPbv3qj43g rU3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mpoob6V7; 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 b1si14253244edm.271.2019.09.12.07.56.08; Thu, 12 Sep 2019 07:56:31 -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=mpoob6V7; 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 S1732819AbfILOyO (ORCPT + 99 others); Thu, 12 Sep 2019 10:54:14 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:41147 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732592AbfILOyO (ORCPT ); Thu, 12 Sep 2019 10:54:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1568300053; x=1599836053; h=from:to:cc:subject:date:message-id:mime-version; bh=iXXC6QHvhsukvUq7xWp72n4eTBHxcxsmsJia2V5Zs38=; b=mpoob6V7HZEEMVbTD7DnToIwYyKpJ4vremUz6R2+JQ8+9nH75sv4u5XA 2vDPIhA8zeRel7jcXlCE7Bhpc9yqXNMaCIT1POfx8gQlzMA/dx1VO83NS vnLTq8sSW5b+XjHoq4XSAabBR5OhLuZFpRl1xlv9FGhk6HHiUqX7ZoeXo k=; X-IronPort-AV: E=Sophos;i="5.64,497,1559520000"; d="scan'208";a="414933565" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-62350142.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 12 Sep 2019 14:54:11 +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-62350142.us-east-1.amazon.com (Postfix) with ESMTPS id 93FFBA2AE4; Thu, 12 Sep 2019 14:54:09 +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, 12 Sep 2019 14:54:08 +0000 Received: from ua9e4f3715fbc5f.ant.amazon.com (10.43.161.99) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 12 Sep 2019 14:54:02 +0000 From: Hanna Hawa To: , , , CC: , , , , , , , , Subject: [PATCH v2 0/2] Add an API for edac device, for mulriple errors Date: Thu, 12 Sep 2019 15:53:03 +0100 Message-ID: <20190912145305.21008-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.99] X-ClientProxiedBy: EX13D15UWA002.ant.amazon.com (10.43.160.218) 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 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 | 72 ++++++++++++++++++++------------------ drivers/edac/edac_device.h | 63 ++++++++++++++++++++++++--------- 2 files changed, 84 insertions(+), 51 deletions(-) -- 2.17.1