From patchwork Wed Sep 14 08:46:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 4056 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 7946423EFA for ; Wed, 14 Sep 2011 08:47:17 +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 6C5D6A1813D for ; Wed, 14 Sep 2011 08:47:17 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so2006249fxe.11 for ; Wed, 14 Sep 2011 01:47:17 -0700 (PDT) Received: by 10.223.34.143 with SMTP id l15mr321728fad.46.1315990037333; Wed, 14 Sep 2011 01:47:17 -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 m8cs41697lab; Wed, 14 Sep 2011 01:47:17 -0700 (PDT) Received: by 10.204.136.154 with SMTP id r26mr1950182bkt.327.1315990036754; Wed, 14 Sep 2011 01:47:16 -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 zy13si2719239bkb.118.2011.09.14.01.47.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Sep 2011 01:47:16 -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 zt19so1498262bkb.37 for ; Wed, 14 Sep 2011 01:47:15 -0700 (PDT) Received: by 10.204.147.155 with SMTP id l27mr2517422bkv.86.1315990035279; Wed, 14 Sep 2011 01:47:15 -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 t16sm3139564bkv.11.2011.09.14.01.47.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Sep 2011 01:47:14 -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 v2 1/3] fault-inject: export setup_fault_attr() Date: Wed, 14 Sep 2011 10:46:55 +0200 Message-Id: <1315990017-16912-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1315990017-16912-1-git-send-email-per.forlin@linaro.org> References: <1315990017-16912-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) {