From patchwork Thu Sep 1 10:51:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9308825 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 E6FD8607D2 for ; Thu, 1 Sep 2016 10:52:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D86E4292EC for ; Thu, 1 Sep 2016 10:52:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB768292EF; Thu, 1 Sep 2016 10:52:22 +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=-5.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 4375E292EC for ; Thu, 1 Sep 2016 10:52:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754222AbcIAKwV (ORCPT ); Thu, 1 Sep 2016 06:52:21 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:34174 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752127AbcIAKwU (ORCPT ); Thu, 1 Sep 2016 06:52:20 -0400 Received: by mail-pf0-f172.google.com with SMTP id p64so30292710pfb.1 for ; Thu, 01 Sep 2016 03:52:20 -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=eVYyXylY4jrnyyKjglbzI9+/qEx4YFOQpav29bbiJMw=; b=T+2LjayljhZmWUuN2u2Rq1mw/2C5erhvGa2XT/EljNHBYQxMGwkqeVe3juP4MEPrgK AVzmi/GSu1uiEBuz3MqsIA75jwmEtp0jYQepXRT3BLEGcjfX7C8/HFA6VRLyJCP2VCMJ lgOOL1dZOPWIWmMYhXXOGcyqVxNfG7V/cmNC8= 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=eVYyXylY4jrnyyKjglbzI9+/qEx4YFOQpav29bbiJMw=; b=NzepSrlwm7nXd4epJ7Ql2lusZneSngCGOJl3UoIg78PifSYbXTQlehtPTsAnf9jnA0 vAY+auQM2P38d/ZU9qzTgO/n1TjvkCgImXv17Edn0ahKxYU8iTCrDhdUlpi01Jb8uDy+ EudS251ujxrlze4pqUZUGALKfJhYnwBov6byk5ARmjJX6HuAAUjN14X0cBY9j+stly7e lwaoSH3STSXRAx/OnfEzuksoxK9mXoycEZaADFHfAUKEjxKq/OILVDpuF+DoJGgc+dKB 593fX/bvNpoXn4me4wzToeXn1Xl00lq7C544kVSJSzcYSRKIgtdLPZz9gaX9vPtJ91z6 QiyQ== X-Gm-Message-State: AE9vXwMAFAPLNDZCTVVqyEOCRbTw9N5w/JiMqyEgThaFlgUuw4YnnhFEHAuwkXpFeYbeGyO9 X-Received: by 10.98.149.22 with SMTP id p22mr25373090pfd.88.1472727140194; Thu, 01 Sep 2016 03:52:20 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.82]) by smtp.gmail.com with ESMTPSA id a21sm6580668pfe.81.2016.09.01.03.52.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Sep 2016 03:52:19 -0700 (PDT) From: Baoyou Xie To: mturquette@baylibre.com, sboyd@codeaurora.org, maxime.ripard@free-electrons.com, wens@csie.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] clk: sunxi-ng: mark ccu_nk_find_best() static Date: Thu, 1 Sep 2016 18:51:48 +0800 Message-Id: <1472727108-18388-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 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 We get 1 warning when building kernel with W=1: drivers/clk/sunxi-ng/ccu_nk.c:17:6: warning: no previous prototype for 'ccu_nk_find_best' [-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/clk/sunxi-ng/ccu_nk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu_nk.c b/drivers/clk/sunxi-ng/ccu_nk.c index 4470ffc..2adb62e 100644 --- a/drivers/clk/sunxi-ng/ccu_nk.c +++ b/drivers/clk/sunxi-ng/ccu_nk.c @@ -14,7 +14,7 @@ #include "ccu_gate.h" #include "ccu_nk.h" -void ccu_nk_find_best(unsigned long parent, unsigned long rate, +static void ccu_nk_find_best(unsigned long parent, unsigned long rate, unsigned int max_n, unsigned int max_k, unsigned int *n, unsigned int *k) {