From patchwork Wed Sep 14 12:10:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 4066 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 AE40D23E51 for ; Wed, 14 Sep 2011 12:10:43 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id A3249A18A40 for ; Wed, 14 Sep 2011 12:10:43 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so2202652fxe.11 for ; Wed, 14 Sep 2011 05:10:43 -0700 (PDT) Received: by 10.223.61.66 with SMTP id s2mr1192245fah.27.1316002243532; Wed, 14 Sep 2011 05:10:43 -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.152.11.8 with SMTP id m8cs46957lab; Wed, 14 Sep 2011 05:10:43 -0700 (PDT) Received: by 10.204.5.67 with SMTP id 3mr210968bku.409.1316002241376; Wed, 14 Sep 2011 05:10:41 -0700 (PDT) Received: from mail-bw0-f50.google.com (mail-bw0-f50.google.com [209.85.214.50]) by mx.google.com with ESMTPS id n1si1876bke.97.2011.09.14.05.10.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Sep 2011 05:10:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) client-ip=209.85.214.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.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-bw0-f50.google.com with SMTP id zt19so1675025bkb.37 for ; Wed, 14 Sep 2011 05:10:40 -0700 (PDT) Received: by 10.204.146.155 with SMTP id h27mr2486362bkv.353.1316002240046; Wed, 14 Sep 2011 05:10:40 -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 t16sm3297bkv.11.2011.09.14.05.10.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Sep 2011 05:10:39 -0700 (PDT) From: Per Forlin To: linaro-dev@lists.linaro.org, Akinobu Mita , Linus Walleij , linux-mmc@vger.kernel.org Cc: Chris Ball , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Per Forlin Subject: [PATCH v3 1/3] fault-inject: export setup_fault_attr() Date: Wed, 14 Sep 2011 14:10:16 +0200 Message-Id: <1316002218-3408-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1316002218-3408-1-git-send-email-per.forlin@linaro.org> References: <1316002218-3408-1-git-send-email-per.forlin@linaro.org> mmc_core module needs to use setup_fault_attr() in order to set fault injection attributes during module load time. Signed-off-by: Per Forlin --- lib/fault-inject.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/fault-inject.c b/lib/fault-inject.c index 328d433..4f75540 100644 --- a/lib/fault-inject.c +++ b/lib/fault-inject.c @@ -14,7 +14,7 @@ * setup_fault_attr() is a helper function for various __setup handlers, so it * returns 0 on error, because that is what __setup handlers do. */ -int __init setup_fault_attr(struct fault_attr *attr, char *str) +int setup_fault_attr(struct fault_attr *attr, char *str) { unsigned long probability; unsigned long interval; @@ -36,6 +36,7 @@ int __init setup_fault_attr(struct fault_attr *attr, char *str) return 1; } +EXPORT_SYMBOL_GPL(setup_fault_attr); static void fail_dump(struct fault_attr *attr) {