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: 75188 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp224814qga; Thu, 1 Sep 2016 03:52:25 -0700 (PDT) X-Received: by 10.66.242.166 with SMTP id wr6mr25328634pac.147.1472727145885; Thu, 01 Sep 2016 03:52:25 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c71si5155366pfb.198.2016.09.01.03.52.25; Thu, 01 Sep 2016 03:52:25 -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 S1754648AbcIAKwW (ORCPT + 27 others); Thu, 1 Sep 2016 06:52:22 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:35163 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbcIAKwU (ORCPT ); Thu, 1 Sep 2016 06:52:20 -0400 Received: by mail-pf0-f178.google.com with SMTP id x72so30303727pfd.2 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=SLBHvEJrBCc7KeI1isE+vrlvtfa9A9TnjyUJe/KpL9JPUuc4YHZTp4pS3d0df4RLwm 2xmjDR8C15OcmiER9iHt3f57j01cIUexQlWTeBm3AUJ49oEqeqiSKHzri5R3Z1T3Qat2 K62t08HiY3NnLHz9NsteDM32qeAMfLs8Hl/e0jQlhvZuIRTq1vGo3Z9AGqeKrnOFxL1N oRqJzOXxD9kHZEtslD0bMRmqtkrkVLhLEjY0om903VqelPIaZrrJ7Up5rJmhrN/P2DeA 7LaBe+gVD4l1wJi8mQv+78wAyqdkk6EopN1agNKcooqtTU+6SIVq5576Hd2+ZVDa6U0G wDpg== X-Gm-Message-State: AE9vXwPROPN4td/quxiG/+rm720nkg33Bk2MmC6RxWaTOykDcPl+P/8VXwtYRTaljONgV0nV 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4 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) {