From patchwork Sat Oct 22 09:41:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78777 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703189qge; Sat, 22 Oct 2016 02:43:09 -0700 (PDT) X-Received: by 10.98.67.133 with SMTP id l5mr9642542pfi.170.1477129389255; Sat, 22 Oct 2016 02:43:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si6268272pgh.22.2016.10.22.02.43.08; Sat, 22 Oct 2016 02:43:09 -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 S964863AbcJVJnE (ORCPT + 27 others); Sat, 22 Oct 2016 05:43:04 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33863 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936567AbcJVJmp (ORCPT ); Sat, 22 Oct 2016 05:42:45 -0400 Received: by mail-pf0-f169.google.com with SMTP id r16so70640023pfg.1 for ; Sat, 22 Oct 2016 02:42:45 -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:in-reply-to:references; bh=qOFqZeP5n/McUxzlO2+s3v9uESFdM8eUsLgOYPKd2xo=; b=XAb25NJB6umk0/XrQ0AwvCRpYKn5SnnWX2RXu5apnZxT5moujfujrEA3EYt+tgRDcR xpZB74mts0M6kwYw3O8kN6vLI0Rwpf2rptwEn97ioJXx07kAzvF5sUwhOfkaDw0WAIdI krp/I5f9LaMhmSviANjFwtodRrFAgx8vSBdL8= 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:in-reply-to :references; bh=qOFqZeP5n/McUxzlO2+s3v9uESFdM8eUsLgOYPKd2xo=; b=VE8X1h3xEK+pMQVcM3gELIZ15Wutv7ENJyrcQFgIhmB5zIc/DMOM2Swmaosj4ik9tW MkuN6CEUaGKfB0hTlrMn5Bk6XEXrc792sUVub85JNNUd2etIO861e3y5fTERpGBhOBLC k8iiaUssj5ZNYVqjI0hDmhLJt1CI7gP60vMddqxyBDnXBmN9iCNRewhHDANZqR9ciHtF EX2zz5Ng7lRU3uHrEiFXTr/+uNM/JabSOWcTgvS19myV5NMA9qmlF2P0AZx4zZ0y6PJu GucRa5UFtrHdSeh3LlCbCH9QbnkMIWH/E/qBqmUab8au6FwSk6nOgyOPOM4ineKnHeEg ApFg== X-Gm-Message-State: ABUngvdiiVsuI1IJljUBY5fcUxCfkcWa079Z1Xnlhjd4bZlGNhcJGWRRBwuZ1H9Zo34umIFn X-Received: by 10.98.196.17 with SMTP id y17mr9690939pff.172.1477129364774; Sat, 22 Oct 2016 02:42:44 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.42.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:42:44 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie, acourbot@nvidia.com, imirkin@alum.mit.edu, Julia.Lawall@lip6.fr, martin.peres@free.fr, rspliet@eclipso.eu, nouveau@karolherbst.de Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 03/17] drm/nouveau/clk: mark symbol static where possible Date: Sat, 22 Oct 2016 17:41:44 +0800 Message-Id: <1477129318-29677-3-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> References: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> 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/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c:184:1: warning: no previous prototype for 'gt215_clk_info' [-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 this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c index 056702e..96e0941 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c @@ -180,7 +180,7 @@ gt215_clk_read(struct nvkm_clk *base, enum nv_clk_src src) return 0; } -int +static int gt215_clk_info(struct nvkm_clk *base, int idx, u32 khz, struct gt215_clk_info *info) {