From patchwork Mon Aug 29 11:37:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74898 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1585077qga; Mon, 29 Aug 2016 04:39:14 -0700 (PDT) X-Received: by 10.98.70.199 with SMTP id o68mr32003491pfi.17.1472470754632; Mon, 29 Aug 2016 04:39:14 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w27si38815325pfi.135.2016.08.29.04.39.14; Mon, 29 Aug 2016 04:39:14 -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 S932745AbcH2LjF (ORCPT + 27 others); Mon, 29 Aug 2016 07:39:05 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:34952 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932346AbcH2LjE (ORCPT ); Mon, 29 Aug 2016 07:39:04 -0400 Received: by mail-pf0-f176.google.com with SMTP id x72so51442934pfd.2 for ; Mon, 29 Aug 2016 04:39:04 -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=cXWSbiU+62c+J6W3K1piIjZqzIKMaQXv7gJGSdwVi4U=; b=RP76tIRpBi/MKabRM4hyDFyqotQKEad8mOmkSfGIMI7phvmu1Zu3KXn47qSJzTCPHa qk6muiK/zvOc3CgwcjEv71PJNedE86oseXKUaR9q0O7OAOY4lKP2CLP0ydKIh+kcGY4z QofEPCu8RsEsgY/hLX31PeswbvEgNk2EXjlXc= 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=cXWSbiU+62c+J6W3K1piIjZqzIKMaQXv7gJGSdwVi4U=; b=UbuXx3870sncfn9hMViLEYRvDp10/V2TRdQXN3qJSy9SpvPb4a7eirb2dFDDJxQF5m YMxfu1ZYMRs8KR84WA4dGTKPAOTmDzXUK/gjhnB/LLK2g1hp2i9h4/1MF7v5CGz6HjQB 0tdLfKxB59pepqJEymubhnz4RkM3cDin4zCNUuwOZwF6CZGLdMZHHDEHv15xdEKFLIlu 3pqSC/hVlhFQAvkaZ4Zt4/aT21zAWNpa0sRd6zci3uPpY+/qWO9bFLPIeF1Xo2T034W9 5ETngrbgxhuaLkeJ7XKzSbASJ0mLq0Pm/plSVkSdBuFo6Eazxu6gk5ocYki0/TBuROJr BRPQ== X-Gm-Message-State: AE9vXwOyUhDKENZAfIqwYj0tE8ynGn7p3/wN1hgo37RvC4Fxmv4k9kS8SLgdgdu8VsSLy4bG X-Received: by 10.98.80.29 with SMTP id e29mr31632598pfb.76.1472470743757; Mon, 29 Aug 2016 04:39:03 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id im5sm10464492pab.14.2016.08.29.04.38.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 04:39:03 -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@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/nouveau/gr/gm107: mark symbols static where possible Date: Mon, 29 Aug 2016 19:37:45 +0800 Message-Id: <1472470665-3851-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 build kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c:312:1: warning: no previous prototype for 'gm107_gr_init' [-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/gm107.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c index 45f965f..2c67fac 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c @@ -308,7 +308,7 @@ gm107_gr_init_bios(struct gf100_gr *gr) } } -int +static int gm107_gr_init(struct gf100_gr *gr) { struct nvkm_device *device = gr->base.engine.subdev.device;