Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752549AbcKHOue (ORCPT ); Tue, 8 Nov 2016 09:50:34 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:56460 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751506AbcKHOu1 (ORCPT ); Tue, 8 Nov 2016 09:50:27 -0500 From: Arnd Bergmann To: Stephen Boyd Cc: Arnd Bergmann , Michael Turquette , Robert Jarzmik , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clk: pxa mark dummy helper as 'inline' Date: Tue, 8 Nov 2016 15:49:30 +0100 Message-Id: <20161108144950.3472058-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:4i2Nt4WE6p4eT+0J6nEDOXW/JpMPJoRpUBzTFcXaRb5VnOsmgsl 2yMjBZ9EGd1yD1dljx9FzFv8XDPh91MeG9nVGgyOxssovdLOETM3W0fCX4vXCPmoWzIX1dx fnSQHDuX1w+sfzigzJ/weNOS9Mm1HMMZ2rLinI0ZhRVP4ie/Qt5zFD3F0S6S/o35PDPyHXf C7tcZjjVzS85hYq54QBHw== X-UI-Out-Filterresults: notjunk:1;V01:K0:tjxzq4NM7Pk=:8RsTIf1y87NtOYPobRWu6O eVEKe9ZSGkp2GgAoscWJX2EJNcWgC4zTNql+XzXwGQIKtbd9yVe1sVhLhRBkr4zmMt4S+Dkm9 RLRK0r8ST4JrIWkbHq67ky/PV8EH2h/Qsx+s7zSvzAoDAXs0oRgay6LDjwQmqPJtRtUJRnpmj BVzCLNXiNhKrGaI5BfjBiUm+T3MRCr1kfTVEE/AJ9IcWveOoVRhNpeFcNBcSDhwvzFDEJNKdw YZKEikoiVj5R3+rIYai0+AO7YuG6EzzS2U9+IXRwmz9Oo3PNIbpBrKhoSVc+ZUxg+Jgtcpe5h NzWE55Tx9hVQxg3jTfadHxZXz1BBdztnulNHg1iEZeqLv0xANxdS34jSDwiVjSTo0PyNoQ8aM V9i+/2z5Q7BlUPaWcl2aq2v5z9zPpx0bMVNjflSNUBhsxbfc2pU3ufbm4Agl8PPxImDT3iLck RF1XbjLMhDPOuLtWxhkx0LqW6p4FwuMoL0LnLc/0EzgGSGvJ8EXZiNwukse+nMwqa52/CE81i s1LNm7PYOko/kONUjM690fnF/qTnUmFkg876DXrhbScaqWyjcsi9gVZlpjERq7F4Ohya3QCiB V6eJxefHkfihbXwk7fli+Mk07/vryJibVBvMPElj+TnRcEgYJNyC6ten5BoOVjqGS3kLfPKOL xfzyYcsI/A5TjaGbeN6mduEkLUe6PGjWmTVOtmiWTP3g+xe3ZeKIYQ3fMM0rTqv1e51o= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1098 Lines: 32 The dummy_clk_set_parent function is marked as 'static' but is no longer referenced from the pxa25x clk driver after the last use of the RATE_RO_OPS() macro is gone from this file, causing a harmless build warning: In file included from drivers/clk/pxa/clk-pxa25x.c:24:0: drivers/clk/pxa/clk-pxa.h:146:12: error: 'dummy_clk_set_parent' defined but not used [-Werror=unused-function] This marks the functon as 'inline', which lets the compiler simply drop it when it gets referenced. Fixes: 9fe694295098 ("clk: pxa: transfer CPU clock setting from pxa2xx-cpufreq") Signed-off-by: Arnd Bergmann --- drivers/clk/pxa/clk-pxa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/pxa/clk-pxa.h b/drivers/clk/pxa/clk-pxa.h index f60a7bccae4e..58abfa816d53 100644 --- a/drivers/clk/pxa/clk-pxa.h +++ b/drivers/clk/pxa/clk-pxa.h @@ -143,7 +143,7 @@ struct pxa2xx_freq { unsigned int clkcfg; }; -static int dummy_clk_set_parent(struct clk_hw *hw, u8 index) +static inline int dummy_clk_set_parent(struct clk_hw *hw, u8 index) { return 0; } -- 2.9.0