From patchwork Mon Aug 29 11:09:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74892 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1573281qga; Mon, 29 Aug 2016 04:10:01 -0700 (PDT) X-Received: by 10.98.25.8 with SMTP id 8mr31753167pfz.94.1472469001129; Mon, 29 Aug 2016 04:10:01 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si38661251pan.58.2016.08.29.04.10.00; Mon, 29 Aug 2016 04:10:01 -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 S1757255AbcH2LJs (ORCPT + 27 others); Mon, 29 Aug 2016 07:09:48 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33972 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756854AbcH2LJp (ORCPT ); Mon, 29 Aug 2016 07:09:45 -0400 Received: by mail-pf0-f177.google.com with SMTP id p64so51269490pfb.1 for ; Mon, 29 Aug 2016 04:09:44 -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=36SeYi8OLmn2NiKeK2qJLNMzwebVwazfnZ1ZgTtRSyE=; b=HYprJHyeo+X1vZeo2mYaHX/lwWgZcNZ8PcBtDSECIYBChmRFsCc4VTX60nmnmmtS5i ids0JCv7NsQEMzgJAywL919rCy8xT9raS/whWdM4ycLS+kW1q8gC1uXgE9oeXEZCebGu KR8Ruuk3RMPydXgjaBxApVCM/yf2PokMYVTEk= 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=36SeYi8OLmn2NiKeK2qJLNMzwebVwazfnZ1ZgTtRSyE=; b=iN2k+ftN+1Yt/DRwcxlCKnLRo34WtL8LLyFkFMj59NXMN8ZEM9iF799VOMRw9V1OPX PeP6eM5WwD+TJPNBUjcsCTDRgmjYBoIMR+Jp4yGPj9vVe4NmMe3w6C3JlzHpGC1Yo9ru N4wjjdTAEkReK9GiZ1wMDlP9D+LXAh8CnDFuqQ8/8ZxT0eyALnbdIGFw4r9eK9W7kFiB xqK4clKcRQp8ey2Xj3SZsuLr2ArLCY7GtAEmcfzOGSj+FW2bzgMFyK1+k7/hdzsGOwef eGWmMSr0reQ9qs1smiPwLxcHfqYOnIo/8tWG8L8SUQfY5L6iW5Pn0FFUFTv07sCEfuql sumQ== X-Gm-Message-State: AE9vXwM+mHTi9iGwVv1x3jAwzD/6zreknIk5bIQs4PVjlBcm4/zMUGDnIqIuWM0Up6JGjdWv X-Received: by 10.98.71.140 with SMTP id p12mr31669701pfi.93.1472468984309; Mon, 29 Aug 2016 04:09:44 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id w64sm48463050pfb.93.2016.08.29.04.09.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 04:09:43 -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/gf117-: mark symbols static where possible Date: Mon, 29 Aug 2016 19:09:20 +0800 Message-Id: <1472468960-13111-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/ctxgf117.c:222:1: warning: no previous prototype for 'gf117_grctx_generate_main' [-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/ctxgf117.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c index c925ade..74a64e3 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c @@ -218,7 +218,7 @@ gf117_grctx_generate_attrib(struct gf100_grctx *info) } } -void +static void gf117_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info) { struct nvkm_device *device = gr->base.engine.subdev.device;