From patchwork Sat Aug 30 17:53:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4813941 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 168439F377 for ; Sat, 30 Aug 2014 17:53:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 46F972013D for ; Sat, 30 Aug 2014 17:53:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41DBE20136 for ; Sat, 30 Aug 2014 17:53:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751722AbaH3Rxu (ORCPT ); Sat, 30 Aug 2014 13:53:50 -0400 Received: from mail-yh0-f47.google.com ([209.85.213.47]:44120 "EHLO mail-yh0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702AbaH3Rxu (ORCPT ); Sat, 30 Aug 2014 13:53:50 -0400 Received: by mail-yh0-f47.google.com with SMTP id c41so2367559yho.20 for ; Sat, 30 Aug 2014 10:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=P7xIbGJX98jW2pHaUQqWxDY+gj7tT5xQUIUdaMf75BU=; b=F58MR+2O4fiNoDjwqqBNHoInADu7fanqFNOAJThroUK57xJWvqskMXd+g6W4ZrrxMC uIHV4M4FnXY8lui6rH5j5/lOFRAs25ZyNCw/DidDVrp5Pu6u+1Y1gbJD4g5ltlktbB7a JJEkix7MNzOYEyopZ46CeDj5E1pu8s6v/k6O7/XqTSkyfCzqSb5qi3gNZVFvbeL1DTnc 0FQFIxvnmBxFloScZgpG4mLxwt6tKpaev8R47Ez8EBVcat9jszY0TDN/i0i3caIEhWrJ is/cjxtfLSYBAK/DBrwZWTso7i7fxhokITDnYX6lFVswZfjweentOy25UOtyddoG2Dz4 i9dQ== X-Received: by 10.236.231.38 with SMTP id k36mr91579yhq.75.1409421229491; Sat, 30 Aug 2014 10:53:49 -0700 (PDT) Received: from localhost.localdomain ([187.66.158.182]) by mx.google.com with ESMTPSA id 26sm1281394yhf.4.2014.08.30.10.53.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Aug 2014 10:53:48 -0700 (PDT) From: Fabio Estevam To: ulf.hansson@linaro.org Cc: chris@printf.net, linux-mmc@vger.kernel.org, Fabio Estevam Subject: [PATCH] sdhci: Make sdhci_disable_irq_wakeups() static Date: Sat, 30 Aug 2014 14:53:13 -0300 Message-Id: <1409421193-17077-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam sdhci_disable_irq_wakeups() is exported, but it is not called outside sdhci.c. Make it static and do not export it, so that the following sparse warning is fixed: drivers/mmc/host/sdhci.c:2548:6: warning: symbol 'sdhci_disable_irq_wakeups' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- drivers/mmc/host/sdhci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 4cc2ff9..930c190 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2545,7 +2545,7 @@ void sdhci_enable_irq_wakeups(struct sdhci_host *host) } EXPORT_SYMBOL_GPL(sdhci_enable_irq_wakeups); -void sdhci_disable_irq_wakeups(struct sdhci_host *host) +static void sdhci_disable_irq_wakeups(struct sdhci_host *host) { u8 val; u8 mask = SDHCI_WAKE_ON_INSERT | SDHCI_WAKE_ON_REMOVE @@ -2555,7 +2555,6 @@ void sdhci_disable_irq_wakeups(struct sdhci_host *host) val &= ~mask; sdhci_writeb(host, val, SDHCI_WAKE_UP_CONTROL); } -EXPORT_SYMBOL_GPL(sdhci_disable_irq_wakeups); int sdhci_suspend_host(struct sdhci_host *host) {