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: 3551 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 836A023F4D for ; Fri, 19 Aug 2011 12:55:38 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4E49DA18020 for ; Fri, 19 Aug 2011 12:55:38 +0000 (UTC) Received: by mail-gx0-f180.google.com with SMTP id 10so3124718gxk.11 for ; Fri, 19 Aug 2011 05:55:38 -0700 (PDT) Received: by 10.151.21.21 with SMTP id y21mr2154648ybi.447.1313758538066; Fri, 19 Aug 2011 05:55:38 -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.150.157.17 with SMTP id f17cs97653ybe; Fri, 19 Aug 2011 05:55:37 -0700 (PDT) Received: by 10.14.98.132 with SMTP id v4mr668974eef.161.1313758535043; Fri, 19 Aug 2011 05:55:35 -0700 (PDT) Received: from eu1sys200aog110.obsmtp.com (eu1sys200aog110.obsmtp.com [207.126.144.129]) by mx.google.com with SMTP id x48si2240577eeh.158.2011.08.19.05.55.23 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Aug 2011 05:55:35 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.129 is neither permitted nor denied by best guess record for domain of per.forlin@stericsson.com) client-ip=207.126.144.129; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.129 is neither permitted nor denied by best guess record for domain of per.forlin@stericsson.com) smtp.mail=per.forlin@stericsson.com 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 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 */