From patchwork Fri Aug 14 06:46:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 7012341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ACD8FC05AD for ; Fri, 14 Aug 2015 06:48:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0131920788 for ; Fri, 14 Aug 2015 06:48:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D942C20614 for ; Fri, 14 Aug 2015 06:48:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQ8lQ-00058L-RG; Fri, 14 Aug 2015 06:46:52 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQ8lO-00055L-76 for linux-arm-kernel@lists.infradead.org; Fri, 14 Aug 2015 06:46:50 +0000 Received: by pacgr6 with SMTP id gr6so53850604pac.2 for ; Thu, 13 Aug 2015 23:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QNG27vG3er9/tSIpawE6KxvVzALjEFrTiI8e1tSPTos=; b=UEFjU2KGoApk83rQDyuHXd2XjQzUtceBsdR77EqHc+cr7/LIs28pTdJzqeQK7erEcR SrwRB7W+A/8dyJEYHwMCi4cix/S11dpXGKF1RyuIu1Z4P1Zbh5wtlHxdNk6M2Opa4O0t 41v7kKoqWKYEaqsiPFCeFa5UYmxHSs+1X7xdM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QNG27vG3er9/tSIpawE6KxvVzALjEFrTiI8e1tSPTos=; b=W27aFWra2gr9nF4n2vvKLx/YR4XSXGXJr79l8PnWMohU+QY52ME4Bias6p2nsJlAbG D7SdTkEIub0hoX9nyX/MK2pXjBxNJWZ0jWYvAndREunNyjAHnlqRi4xrP4GMk4WsgU2y zKs4G6n4goT/0nAB2901OMhXzZIqKbvREW4YuhwBRxua4vzJwas+xvV88j4l6RBpRDEh FjPrT8grNr/YJiUzRSNQI1OnVzYX7CN/1acmwpLaK4kf1u3sXxVSymNVPcRec5wb1tTW 7Q00i4AGE8W2vtU1tX1O4qz/DoPmAQx2tJFQCHJJ4nJ/YzvM8vCtly3Ucp3GLPwOVmUe 9kIw== X-Gm-Message-State: ALoCoQm1AuDTiq4MQ4DRFPFHMZRCCSPZX+GooJ4hddOvqK7TxCou9V5qim/jP4FFFwD/+WxvKcXF X-Received: by 10.66.158.65 with SMTP id ws1mr85067126pab.18.1439534788649; Thu, 13 Aug 2015 23:46:28 -0700 (PDT) Received: from localhost ([198.137.200.11]) by smtp.gmail.com with ESMTPSA id fa1sm4785847pbb.35.2015.08.13.23.46.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 13 Aug 2015 23:46:27 -0700 (PDT) From: Loc Ho To: dougthompson@xmission.com, bp@alien8.de, mchehab@osg.samsung.com, arnd@arndb.de Subject: [PATCH v4 1/4] edac: Export edac_debugfs Date: Fri, 14 Aug 2015 00:46:06 -0600 Message-Id: <1439534769-22811-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1439534769-22811-1-git-send-email-lho@apm.com> References: <1439534769-22811-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150813_234650_293070_51A176C1 X-CRM114-Status: GOOD ( 10.91 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, ijc+devicetree@hellion.org.uk, jcm@redhat.com, patches@apm.com, robh+dt@kernel.org, Loc Ho , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch exports and expose the edac_debugfs file node. This allows EDAC driver to create debugfs node under the EDAC debugfs node. Signed-off-by: Loc Ho --- drivers/edac/edac_core.h | 1 + drivers/edac/edac_mc_sysfs.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index ad42587..a978a4f 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -511,5 +511,6 @@ extern void edac_pci_remove_sysfs(struct edac_pci_ctl_info *pci); * edac misc APIs */ extern char *edac_op_state_to_string(int op_state); +extern struct dentry *edac_debugfs; #endif /* _EDAC_CORE_H_ */ diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index 33df7d9..236e76c 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c @@ -896,9 +896,10 @@ static struct device_type mci_attr_type = { .release = mci_attr_release, }; -#ifdef CONFIG_EDAC_DEBUG -static struct dentry *edac_debugfs; +struct dentry *edac_debugfs; +EXPORT_SYMBOL_GPL(edac_debugfs); +#ifdef CONFIG_EDAC_DEBUG int __init edac_debugfs_init(void) { edac_debugfs = debugfs_create_dir("edac", NULL);