From patchwork Mon Aug 29 10:55:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74891 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1567149qga; Mon, 29 Aug 2016 03:56:38 -0700 (PDT) X-Received: by 10.98.92.65 with SMTP id q62mr31232847pfb.70.1472468198672; Mon, 29 Aug 2016 03:56:38 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a78si38648400pfj.35.2016.08.29.03.56.38; Mon, 29 Aug 2016 03:56:38 -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 S1757039AbcH2K4f (ORCPT + 27 others); Mon, 29 Aug 2016 06:56:35 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:34665 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756406AbcH2K4e (ORCPT ); Mon, 29 Aug 2016 06:56:34 -0400 Received: by mail-pf0-f173.google.com with SMTP id p64so51161285pfb.1 for ; Mon, 29 Aug 2016 03:56:12 -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=arpA1v4OWj4aaRHH+vdEkySOLAulY+ZxUmOHCQ4mTXQ=; b=WwBkJCeOEvEi60z4bWJSuXEM3VaR8JvmtuVtIqwHOTXBErVTfRY10auDEvpyVYOuyy mjblZ/ejLoUbeU9XTKUGBHA9BBV5bKDfMfeZNPY56ltUHhSNlQMUZmb0wcLmV7MKOVp+ xq+0O+gsWhCU7azcNqoUuR6ehMjQGkESts2s8= 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=arpA1v4OWj4aaRHH+vdEkySOLAulY+ZxUmOHCQ4mTXQ=; b=RyingHuUwnBF88C0IfOqicTLWXTmTlf0OkRIZynruCT/I2NIsOJdpgLue7LwouiK9n Cew6QrKlrjClTzHqa/ZtrUFC2pYWt9swkt5gluxY2Kpa+V46DZMkTkkWskNbKuW53ETg JLZibW+iAfcK6Iq4IVH5aypJolNEzJTLbO/XvFqk9n9IdDdiaEET1i9Z/oG0Jb0TXY+J JTm8jJkz9Y+dtnPydQXiYR2ZNVrcHI5r2db0gXLZ6MYVyWKp6PYeTtmotcGYQJNGQfJw +v3mBh6EDxTGG+ALSn/cc2fXWznzaJHRc1NpcNgLObP6NPRRCc4NteNiw+TjB3qlQnD8 amIg== X-Gm-Message-State: AE9vXwMCqHBX///In8gOEJw+LNiF6a5LeLrlklyiH0EtJyRhgXK3o2hwU2koZiMtlRot5GdY X-Received: by 10.98.8.13 with SMTP id c13mr31846599pfd.166.1472468171769; Mon, 29 Aug 2016 03:56:11 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id h66sm48354969pfe.58.2016.08.29.03.56.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 03:56:11 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@linaro.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/nouveau/gr: mark symbols static where possible Date: Mon, 29 Aug 2016 18:55:52 +0800 Message-Id: <1472468152-18413-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 biuld kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c:937:1: warning: no previous prototype for 'gm107_grctx_generate_tpcid' [-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/engine/gr/ctxgm107.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c index 6d3c501..4c4b5ab 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c @@ -933,7 +933,7 @@ gm107_grctx_generate_attrib(struct gf100_grctx *info) } } -void +static void gm107_grctx_generate_tpcid(struct gf100_gr *gr) { struct nvkm_device *device = gr->base.engine.subdev.device;