From patchwork Tue Aug 9 11:48: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: 1049242 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 p79BoC19023412 for ; Tue, 9 Aug 2011 11:50:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753481Ab1HILt2 (ORCPT ); Tue, 9 Aug 2011 07:49:28 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:54961 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753429Ab1HILt0 (ORCPT ); Tue, 9 Aug 2011 07:49:26 -0400 Received: by eyx24 with SMTP id 24so3378879eyx.19 for ; Tue, 09 Aug 2011 04:49:24 -0700 (PDT) Received: by 10.14.119.130 with SMTP id n2mr1817772eeh.97.1312890564323; Tue, 09 Aug 2011 04:49:24 -0700 (PDT) Received: from localhost.localdomain (c-c37f71d5.029-82-6c756e10.cust.bredbandsbolaget.se [213.113.127.195]) by mx.google.com with ESMTPS id v20sm2991237eeh.46.2011.08.09.04.49.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 04:49:23 -0700 (PDT) From: Per Forlin To: Akinobu Mita , akpm@linux-foundation.org, Linus Walleij , linux-kernel@vger.kernel.org, Randy Dunlap , Chris Ball Cc: linux-doc@vger.kernel.org, linux-mmc@vger.kernel.org, linaro-dev@lists.linaro.org, linux-mm@kvack.org, Per Forlin Subject: [PATCH --mmotm v7 1/3] fault-inject: export fault injection functions Date: Tue, 9 Aug 2011 13:48:57 +0200 Message-Id: <1312890539-28177-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312890539-28177-1-git-send-email-per.forlin@linaro.org> References: <1312890539-28177-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 (demeter2.kernel.org [140.211.167.43]); Tue, 09 Aug 2011 11:50:13 +0000 (UTC) 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 */