From patchwork Mon Aug 29 11:29:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74897 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1581319qga; Mon, 29 Aug 2016 04:29:45 -0700 (PDT) X-Received: by 10.98.74.91 with SMTP id x88mr31715949pfa.79.1472470185185; Mon, 29 Aug 2016 04:29:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si38799711pal.10.2016.08.29.04.29.44; Mon, 29 Aug 2016 04:29:45 -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 S1757287AbcH2L3m (ORCPT + 27 others); Mon, 29 Aug 2016 07:29:42 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33465 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756135AbcH2L3l (ORCPT ); Mon, 29 Aug 2016 07:29:41 -0400 Received: by mail-pf0-f177.google.com with SMTP id y134so51291209pfg.0 for ; Mon, 29 Aug 2016 04:29:40 -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=Li7W4Ag1vyJv/jqQQHp0qBm6JVpELR+RrBgnazh+Sjs=; b=eSOnwWUeXRivn98I6ia5Z4kwxyKghHT8R6rJwUvCxeIyJNXsZwFMU4zq87Z+Z+1RWt R3SBpNxdTI0vfAPUwnMg1NGy4FXRKXYU2dhqlKpzfWTfVJo6Uwnru6DsWvbuuDc6INd+ hgkNrhXVEX132v5Uvi0H75AT0B7H6FZTyknUo= 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=Li7W4Ag1vyJv/jqQQHp0qBm6JVpELR+RrBgnazh+Sjs=; b=Sj/es9yj/CJj+i0WQMIquLvSyZLMPDfvm++Yg2WfghJeCAB+JC3V4/MbVxd7cJzyxf RLhd073VSB5TiUYmNdC7eb7VDmxz2GoN9EHfT1ZPgf4Ijgt2PWBt3XaPYKwXp/zvlFK0 IzbSbE54Dzw1D1kpTz7DI9lIHNB9Dl365xScLiDj9KizkClXRNTERqg+ed0+czw/mvWL /ppM2dj7yG5BkKvUxV/FmcIY1V7JRScE4N5JD7STQxYWeQp6C67E7JIRbZdWVCo/DSlf BWu9Ai6ErMYCfeyFjHzLFNqPqP10I6Fw9Plog8APcVk6FZ4unjRI1QFSVbmmX0RdXyll 17gw== X-Gm-Message-State: AE9vXwPZyZZhPksxxKpOx4WOd3wiik0T7bUdBdLQ/aDH7KjBs3xOktz0q1ohufT8AzjV03Qn X-Received: by 10.98.67.193 with SMTP id l62mr32192700pfi.16.1472470180309; Mon, 29 Aug 2016 04:29:40 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id 72sm48641210pfs.51.2016.08.29.04.29.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 04:29:39 -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 v2] drm/nouveau/gr/gf117-: mark symbols static where possible Date: Mon, 29 Aug 2016 19:29:21 +0800 Message-Id: <1472470161-23872-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/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;