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: 1009472 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6QKCvnL029318 for ; Tue, 26 Jul 2011 20:12:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753471Ab1GZUMX (ORCPT ); Tue, 26 Jul 2011 16:12:23 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:39571 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753420Ab1GZUMU (ORCPT ); Tue, 26 Jul 2011 16:12:20 -0400 Received: by ewy4 with SMTP id 4so735148ewy.19 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> 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 (demeter1.kernel.org [140.211.167.41]); Tue, 26 Jul 2011 20:12:57 +0000 (UTC) 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 */