From patchwork Tue Aug 9 09:47:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 3307 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DC45E2406C for ; Tue, 9 Aug 2011 09:48:12 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id A55FBA1838A for ; Tue, 9 Aug 2011 09:48:12 +0000 (UTC) Received: by qwb8 with SMTP id 8so1285644qwb.11 for ; Tue, 09 Aug 2011 02:48:12 -0700 (PDT) Received: by 10.229.183.84 with SMTP id cf20mr5054583qcb.121.1312883292113; Tue, 09 Aug 2011 02:48:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.190.71 with SMTP id dh7cs41501qcb; Tue, 9 Aug 2011 02:48:11 -0700 (PDT) Received: from mr.google.com ([10.213.28.209]) by 10.213.28.209 with SMTP id n17mr1793612ebc.144.1312883291744 (num_hops = 1); Tue, 09 Aug 2011 02:48:11 -0700 (PDT) Received: by 10.213.28.209 with SMTP id n17mr1365617ebc.144.1312883291158; Tue, 09 Aug 2011 02:48:11 -0700 (PDT) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx.google.com with ESMTPS id a12si4066745eei.143.2011.08.09.02.48.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 02:48:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.172 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) client-ip=209.85.215.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.172 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) smtp.mail=per.forlin@linaro.org Received: by mail-ey0-f172.google.com with SMTP id 4so3485641eye.31 for ; Tue, 09 Aug 2011 02:48:10 -0700 (PDT) Received: by 10.14.28.66 with SMTP id f42mr1861504eea.171.1312883289795; Tue, 09 Aug 2011 02:48:09 -0700 (PDT) Received: from localhost.localdomain (c-c37f71d5.029-82-6c756e10.cust.bredbandsbolaget.se [213.113.127.195]) by mx.google.com with ESMTPS id r5sm2925796eef.36.2011.08.09.02.48.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 02:48:08 -0700 (PDT) From: Per Forlin To: Akinobu Mita , akpm@linux-foundation.org, Linus Walleij , linux-kernel@vger.kernel.org, Randy Dunlap , Chris Ball Cc: linux-doc@vger.kernel.org, linux-mmc@vger.kernel.org, linaro-dev@lists.linaro.org, linux-mm@kvack.org, Per Forlin Subject: [PATCH --mmotm v6 1/3] fault-inject: export fault injection functions Date: Tue, 9 Aug 2011 11:47:46 +0200 Message-Id: <1312883268-4342-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312883268-4342-1-git-send-email-per.forlin@linaro.org> References: <1312883268-4342-1-git-send-email-per.forlin@linaro.org> export symbols should_fail() and fault_create_debugfs_attr() in order to let modules utilize the fault injection Signed-off-by: Per Forlin Acked-by: Akinobu Mita --- lib/fault-inject.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/fault-inject.c b/lib/fault-inject.c index f193b77..328d433 100644 --- a/lib/fault-inject.c +++ b/lib/fault-inject.c @@ -130,6 +130,7 @@ bool should_fail(struct fault_attr *attr, ssize_t size) return true; } +EXPORT_SYMBOL_GPL(should_fail); #ifdef CONFIG_FAULT_INJECTION_DEBUG_FS @@ -243,5 +244,6 @@ fail: return ERR_PTR(-ENOMEM); } +EXPORT_SYMBOL_GPL(fault_create_debugfs_attr); #endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */