From patchwork Fri Sep 30 01:37:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 77153 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp17966qgf; Thu, 29 Sep 2016 18:38:58 -0700 (PDT) X-Received: by 10.66.193.71 with SMTP id hm7mr7432303pac.164.1475199538882; Thu, 29 Sep 2016 18:38:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dg5si17121267pad.122.2016.09.29.18.38.58; Thu, 29 Sep 2016 18:38:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935528AbcI3Bi5 (ORCPT + 3 others); Thu, 29 Sep 2016 21:38:57 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:35866 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935272AbcI3Bi4 (ORCPT ); Thu, 29 Sep 2016 21:38:56 -0400 Received: by mail-pf0-f171.google.com with SMTP id q2so34471421pfj.3 for ; Thu, 29 Sep 2016 18:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VZW/UIsF7aRf8P+g1pJ5NRNa4vik4oB0IGILKIp3hX4=; b=k3VOaXwUXOhrrYQhEtAMNd7yJkQ/BX5CHf7IqOjroMPHGNR6/qc4AuaXVCo1QgX+4K Ze+xq1CooX6fvqeTVIjpwbthGQERwO+dpye2BlPWTmXqetLTV568dAUb91UlEK1xPiif y4YMKHYww6HkAqfecfh8wfrrcYL4kuNoJIKlY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VZW/UIsF7aRf8P+g1pJ5NRNa4vik4oB0IGILKIp3hX4=; b=g3va5ohM2KNJHaESZWBSnp9Sm0P/0lIK0w+P/5IjzL1q5FB93hjbySiOeYpJKYuBeX LGtDtpPbTWbqZ01mKdOrZSF3aYq6XA+09jFmbO//4nO08ifbDjR0yQDNUxjSPZxW85LW bfZnS+7YknenbQefYlVVhrj0g+WHxH08EtxV0jU5LCS4fr7M4BUIlSJ4k1AXhpFMxPgY 6txyufHthquQurVsqoGQtf5qC2jmbPc/WkHrV94ULCHgfkaCxGlIumAyoBqY3dtFocTg Zr6PU5nYUZfoKeFFwvJXIo93cckNobZtYHZ5asWR2skiGPYQG3aH43YaQNYc6bArhsFb zN4g== X-Gm-Message-State: AA6/9RngTuNosow/qokpSeTn9R0d9HMFY3+lX94Ph8oGJrnPg9OAGTC0HQnNMoinFh60ndJt X-Received: by 10.98.87.157 with SMTP id i29mr7181231pfj.97.1475199535881; Thu, 29 Sep 2016 18:38:55 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.122]) by smtp.gmail.com with ESMTPSA id id6sm16415578pad.28.2016.09.29.18.38.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Sep 2016 18:38:55 -0700 (PDT) From: Baoyou Xie To: michal.simek@xilinx.com, soren.brinkmann@xilinx.com, adrian.hunter@intel.com, ulf.hansson@linaro.org, linux-arm-kernel@lists.infradead.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 2/2] mmc: sdhci-of-arasan: mark sdhci_arasan_reset() static Date: Fri, 30 Sep 2016 09:37:39 +0800 Message-Id: <1475199459-4775-2-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475199459-4775-1-git-send-email-baoyou.xie@linaro.org> References: <1475199459-4775-1-git-send-email-baoyou.xie@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/mmc/host/sdhci-of-arasan.c:253:6: warning: no previous prototype for 'sdhci_arasan_reset' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/mmc/host/sdhci-of-arasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index da8e40a..e263671 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -250,7 +250,7 @@ static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc, writel(vendor, host->ioaddr + SDHCI_ARASAN_VENDOR_REGISTER); } -void sdhci_arasan_reset(struct sdhci_host *host, u8 mask) +static void sdhci_arasan_reset(struct sdhci_host *host, u8 mask) { u8 ctrl; struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);