From patchwork Sun Aug 28 05:28:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74868 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1066518qga; Sat, 27 Aug 2016 22:28:57 -0700 (PDT) X-Received: by 10.66.159.195 with SMTP id xe3mr20872591pab.159.1472362137408; Sat, 27 Aug 2016 22:28:57 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id af3si31321125pad.39.2016.08.27.22.28.56; Sat, 27 Aug 2016 22:28:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755235AbcH1F2q (ORCPT + 27 others); Sun, 28 Aug 2016 01:28:46 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35308 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbcH1F2p (ORCPT ); Sun, 28 Aug 2016 01:28:45 -0400 Received: by mail-pa0-f45.google.com with SMTP id hb8so39261598pac.2 for ; Sat, 27 Aug 2016 22:28:44 -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; bh=ikPAyJ37JGU6Tgk0o+iFyjn8pJX3PnINdleeiT7E0cQ=; b=OdCQXFdEx5FeWytCtaHuK1LRudwIsv6DoHxYlniZg2W5Ymo33CmFeBo7/5fUmDfVoB xy3ekWUk7b1gES3hiGxHQrloZX5wrHqLWFRiSy0GfIAW/IUnFYJz22VbnOz3oQFmMmph mEKTeXhjWEl36ZgPCRKTkPFfoWsmfPaK2p/aI= 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; bh=ikPAyJ37JGU6Tgk0o+iFyjn8pJX3PnINdleeiT7E0cQ=; b=CYmFCVSv7uNbhedfBqkb/oTlYV49XOEYkfgGC13UZAdark3v8CWIvpmv6GEMm5yQcW JlnLEDWml+6FOY8oxXqQDsEeuNQReXZa6uj6SI5Q8irV8hWJZ4b+71WMR7Zshe65oDAu mI2oNv17Lx+2GnuvEEykWMiYj8zI9BCdU8PLwtBJx3Aw8mr+6zF/xBa4c6uHnpoybEIG nHBv8GfZdrHgwiv+3xxiSIXVmOIR5r1UvZjnpWVT5qJEardI8PS8H/aZwzCFHbeR1pD4 nbeF/qLYPkd1ANCaHZTHJsn+Kr/L81Mqh7+HPfC3Zivm8g/o1x6xWDRbVxJnvY5W0gwG wiiQ== X-Gm-Message-State: AE9vXwNLIgo5WdFoG+d7ksjP/7WUN29IYqBG6HkLM3lDIvJKW4M/rX4/Nl0VDdd9O/Zx9oaI X-Received: by 10.66.185.14 with SMTP id ey14mr20936752pac.71.1472362124434; Sat, 27 Aug 2016 22:28:44 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.142]) by smtp.gmail.com with ESMTPSA id l128sm39539973pfl.21.2016.08.27.22.28.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Aug 2016 22:28:44 -0700 (PDT) From: Baoyou Xie To: rogerq@ti.com, tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@linaro.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] fix:memory:omap-gpmc:mark symbols static where possible Date: Sun, 28 Aug 2016 13:28:15 +0800 Message-Id: <1472362095-15715-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when build kernel with W=1: drivers/memory/omap-gpmc.c:354:14: warning: no previous prototype for 'gpmc_clk_ticks_to_ns' [-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/memory/omap-gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 869c83f..f71cbf7 100644 --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c @@ -350,7 +350,7 @@ static unsigned int gpmc_ps_to_ticks(unsigned int time_ps) return (time_ps + tick_ps - 1) / tick_ps; } -unsigned int gpmc_clk_ticks_to_ns(unsigned ticks, int cs, +static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs, enum gpmc_clk_domain cd) { return ticks * gpmc_get_clk_period(cs, cd) / 1000;