From patchwork Tue Jul 19 21:31:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 2767 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 F072D23F57 for ; Tue, 19 Jul 2011 21:33:59 +0000 (UTC) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.216.173]) by fiordland.canonical.com (Postfix) with ESMTP id BF2ECA18565 for ; Tue, 19 Jul 2011 21:33:59 +0000 (UTC) Received: by qyk10 with SMTP id 10so2866499qyk.11 for ; Tue, 19 Jul 2011 14:33:59 -0700 (PDT) Received: by 10.229.217.3 with SMTP id hk3mr7119386qcb.38.1311111239182; Tue, 19 Jul 2011 14:33:59 -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.217.78 with SMTP id hl14cs96061qcb; Tue, 19 Jul 2011 14:33:58 -0700 (PDT) Received: by 10.223.100.16 with SMTP id w16mr596115fan.81.1311111238082; Tue, 19 Jul 2011 14:33:58 -0700 (PDT) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx.google.com with ESMTPS id c17si468863fai.199.2011.07.19.14.33.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jul 2011 14:33:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.161.44 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) client-ip=209.85.161.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.44 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-fx0-f44.google.com with SMTP id 6so506056fxe.17 for ; Tue, 19 Jul 2011 14:33:56 -0700 (PDT) Received: by 10.223.159.197 with SMTP id k5mr12560234fax.50.1311111236704; Tue, 19 Jul 2011 14:33:56 -0700 (PDT) Received: from localhost.localdomain (c-3c7b71d5.029-82-6c756e10.cust.bredbandsbolaget.se [213.113.123.60]) by mx.google.com with ESMTPS id j19sm228367faa.41.2011.07.19.14.33.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jul 2011 14:33:54 -0700 (PDT) From: Per Forlin To: linaro-dev@lists.linaro.org, Nicolas Pitre , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-doc@vger.kernel.org, Venkatraman S , Linus Walleij , Kyungmin Park , Arnd Bergmann , Sourav Poddar , Chris Ball , Akinobu Mita Cc: Randy Dunlap , Per Forlin Subject: [PATCH v2 1/3] fault-inject: make fault injection available for modules Date: Tue, 19 Jul 2011 23:31:44 +0200 Message-Id: <1311111106-26814-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1311111106-26814-1-git-send-email-per.forlin@linaro.org> References: <1311111106-26814-1-git-send-email-per.forlin@linaro.org> export symbols should_fail() and init_fault_attr_dentries() in order to make modules use the fault injection functionality 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 7e65af7..cd28364 100644 --- a/lib/fault-inject.c +++ b/lib/fault-inject.c @@ -131,6 +131,7 @@ bool should_fail(struct fault_attr *attr, ssize_t size) return true; } +EXPORT_SYMBOL(should_fail); #ifdef CONFIG_FAULT_INJECTION_DEBUG_FS @@ -311,5 +312,6 @@ fail: cleanup_fault_attr_dentries(attr); return -ENOMEM; } +EXPORT_SYMBOL(init_fault_attr_dentries); #endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */