From patchwork Tue Sep 13 21:03:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Per Forlin X-Patchwork-Id: 4052 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 F210723F44 for ; Tue, 13 Sep 2011 21:04:16 +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 E82BDA18383 for ; Tue, 13 Sep 2011 21:04:16 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so1360744fxe.11 for ; Tue, 13 Sep 2011 14:04:16 -0700 (PDT) Received: by 10.223.61.66 with SMTP id s2mr3129820fah.27.1315947856767; Tue, 13 Sep 2011 14:04:16 -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 m8cs22980lab; Tue, 13 Sep 2011 14:04:16 -0700 (PDT) Received: by 10.14.13.79 with SMTP id a55mr1624223eea.46.1315947856327; Tue, 13 Sep 2011 14:04:16 -0700 (PDT) Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by mx.google.com with ESMTPS id w3si988468eef.171.2011.09.13.14.04.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Sep 2011 14:04:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.44 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) client-ip=209.85.215.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.44 is neither permitted nor denied by best guess record for domain of per.forlin@linaro.org) smtp.mail=per.forlin@linaro.org Received: by ewy19 with SMTP id 19so695903ewy.17 for ; Tue, 13 Sep 2011 14:04:14 -0700 (PDT) Received: by 10.204.9.194 with SMTP id m2mr1206414bkm.153.1315947853776; Tue, 13 Sep 2011 14:04:13 -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 i5sm2260984bkd.0.2011.09.13.14.04.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Sep 2011 14:04:13 -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 1/3] fault-inject: export setup_fault_attr() Date: Tue, 13 Sep 2011 23:03:28 +0200 Message-Id: <1315947810-22714-2-git-send-email-per.forlin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1315947810-22714-1-git-send-email-per.forlin@linaro.org> References: <1315947810-22714-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) {