From patchwork Mon Aug 8 20:07:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 3301 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 ABE3423E54 for ; Mon, 8 Aug 2011 20:08:14 +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 7593CA18043 for ; Mon, 8 Aug 2011 20:08:14 +0000 (UTC) Received: by qwb8 with SMTP id 8so908140qwb.11 for ; Mon, 08 Aug 2011 13:08:14 -0700 (PDT) Received: by 10.224.209.9 with SMTP id ge9mr4531659qab.19.1312834093782; Mon, 08 Aug 2011 13:08:13 -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 dh7cs25029qcb; Mon, 8 Aug 2011 13:08:13 -0700 (PDT) Received: from mr.google.com ([10.213.1.151]) by 10.213.1.151 with SMTP id 23mr960338ebf.10.1312834093447 (num_hops = 1); Mon, 08 Aug 2011 13:08:13 -0700 (PDT) Received: by 10.213.1.151 with SMTP id 23mr726527ebf.10.1312834092744; Mon, 08 Aug 2011 13:08:12 -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 g14si520796eea.130.2011.08.08.13.08.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 13:08: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 eye4 with SMTP id 4so3195239eye.31 for ; Mon, 08 Aug 2011 13:08:10 -0700 (PDT) Received: by 10.204.0.84 with SMTP id 20mr973975bka.16.1312834090593; Mon, 08 Aug 2011 13:08:10 -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 y2sm677319bkd.19.2011.08.08.13.08.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 13:08:09 -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 v5 1/3] fault-inject: export fault injection functions Date: Mon, 8 Aug 2011 22:07:27 +0200 Message-Id: <1312834049-29910-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312834049-29910-1-git-send-email-per.forlin@linaro.org> References: <1312834049-29910-1-git-send-email-per.forlin@linaro.org> export symbols fault_should_fail() and fault_create_debugfs_attr() in order to let modules utilize the fault injection Signed-off-by: Per Forlin --- 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 */