From patchwork Fri Aug 19 12:52:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 1079472 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7JCu7OU005264 for ; Fri, 19 Aug 2011 12:56:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685Ab1HSMzh (ORCPT ); Fri, 19 Aug 2011 08:55:37 -0400 Received: from eu1sys200aog110.obsmtp.com ([207.126.144.129]:48223 "EHLO eu1sys200aog110.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305Ab1HSMzf (ORCPT ); Fri, 19 Aug 2011 08:55:35 -0400 Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob110.postini.com ([207.126.147.11]) with SMTP ID DSNKTk5dNx9BZrwxFRTyEbEOC/J9LUiW0Jyy@postini.com; Fri, 19 Aug 2011 12:55:34 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 2C37BB5; Fri, 19 Aug 2011 12:55:11 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id D4C57CDA; Fri, 19 Aug 2011 12:55:10 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 32C8D24C07C; Fri, 19 Aug 2011 14:55:03 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 19 Aug 2011 14:55:09 +0200 From: Per Forlin To: , , , Linus Walleij , Akinobu Mita Cc: Chris Ball , , Per Forlin Subject: [PATCH v9 1/3] fault-inject: export fault injection functions Date: Fri, 19 Aug 2011 14:52:36 +0200 Message-ID: <1313758358-27536-2-git-send-email-per.forlin@stericsson.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1313758358-27536-1-git-send-email-per.forlin@stericsson.com> References: <1313758358-27536-1-git-send-email-per.forlin@stericsson.com> MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 19 Aug 2011 12:56:12 +0000 (UTC) From: Per Forlin 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 */