From patchwork Tue Nov 8 14:49:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9417601 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 291BE6022E for ; Tue, 8 Nov 2016 14:50:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B3A128B77 for ; Tue, 8 Nov 2016 14:50:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DC5228F19; Tue, 8 Nov 2016 14:50:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D146D28C8B for ; Tue, 8 Nov 2016 14:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752280AbcKHOud (ORCPT ); Tue, 8 Nov 2016 09:50:33 -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 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0LbItu-1cX6gy2fXO-00kzJ8; Tue, 08 Nov 2016 15:49:54 +0100 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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Robert Jarzmik --- 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; }