From patchwork Tue Jul 26 20:11:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 3161 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 8DF8423F3F for ; Tue, 26 Jul 2011 20:12:21 +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 5DA2AA187FA for ; Tue, 26 Jul 2011 20:12:21 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so676354qwb.11 for ; Tue, 26 Jul 2011 13:12:21 -0700 (PDT) Received: by 10.229.73.196 with SMTP id r4mr5174816qcj.266.1311711141090; Tue, 26 Jul 2011 13:12:21 -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 hl14cs124982qcb; Tue, 26 Jul 2011 13:12:20 -0700 (PDT) Received: by 10.14.10.197 with SMTP id 45mr2496106eev.130.1311711140160; Tue, 26 Jul 2011 13:12:20 -0700 (PDT) Received: from mail-ew0-f50.google.com (mail-ew0-f50.google.com [209.85.215.50]) by mx.google.com with ESMTPS id n15si1091780eef.183.2011.07.26.13.12.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jul 2011 13:12:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.50 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) client-ip=209.85.215.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.50 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-ew0-f50.google.com with SMTP id 10so914751ewy.37 for ; Tue, 26 Jul 2011 13:12:18 -0700 (PDT) Received: by 10.204.134.216 with SMTP id k24mr172815bkt.84.1311711138453; Tue, 26 Jul 2011 13:12:18 -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 l21sm146755bkt.2.2011.07.26.13.12.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jul 2011 13:12:17 -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 , J Freyensee Cc: Randy Dunlap , Per Forlin Subject: [PATCH v4 1/3] fault-inject: make fault injection available for modules Date: Tue, 26 Jul 2011 22:11:57 +0200 Message-Id: <1311711119-6286-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1311711119-6286-1-git-send-email-per.forlin@linaro.org> References: <1311711119-6286-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..27783da 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_GPL(should_fail); #ifdef CONFIG_FAULT_INJECTION_DEBUG_FS @@ -311,5 +312,6 @@ fail: cleanup_fault_attr_dentries(attr); return -ENOMEM; } +EXPORT_SYMBOL_GPL(init_fault_attr_dentries); #endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */