From patchwork Mon Aug 29 13:02:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74915 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1621402qga; Mon, 29 Aug 2016 06:02:55 -0700 (PDT) X-Received: by 10.98.149.131 with SMTP id c3mr33015060pfk.73.1472475775577; Mon, 29 Aug 2016 06:02:55 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si39160316pfj.8.2016.08.29.06.02.51; Mon, 29 Aug 2016 06:02:55 -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 S1757411AbcH2NCt (ORCPT + 27 others); Mon, 29 Aug 2016 09:02:49 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34957 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756632AbcH2NCs (ORCPT ); Mon, 29 Aug 2016 09:02:48 -0400 Received: by mail-pa0-f46.google.com with SMTP id hb8so49682013pac.2 for ; Mon, 29 Aug 2016 06:02:47 -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=pbL0/TXU1gjOdEjQjFDLWvnD9jqTSQM3U2fwvJRFMSk=; b=TYRZ/UF/GxosIPEyInCvV6T+VgFK67ffA5RisRlQCcMqazI8CZuIgYyClvG+3V8wp1 kxa7tj3DQr+3aydQjV4qyQMXoIxS39nNqcEsIpxxf1nxxTryHDrPy1wYiRefQr1Qqp8E DL/VryCQJQGIwoRMY78WAgRYqnETW4A0j7JVI= 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=pbL0/TXU1gjOdEjQjFDLWvnD9jqTSQM3U2fwvJRFMSk=; b=CRQLhBsGFNRk0Z93jbMgUD9H0g6lBJSoGBtqSIdp3Pm1gvySaDNOLKaRfvAVlO9TQn ES1shBJNrDBVveseOVgE1ckAH1AEq9VZWtXbG+uB+1z98xqf/So9Si2rVCA6ON3HV255 R6mrkcqID8lUfSI4DEaRhyxwPriIO+m+5rYwDRbSD7Hh3imJwPIUsTVj8g5D3uobigiG HbZot4nS9+9R10d4aGGUaH7iOq8pFqS4klTghIq/yrEHO4KgbQST6XBp++eenc4kJoek 7ExAJhPg3Goc5tjVd6mkBsqjknjA5bU2HHPCkAJK9OOZwrcjBo2ZGDqIkhGwpLwqCf7Y dkqw== X-Gm-Message-State: AE9vXwMkTmmk8CVqmiIK1dUnd1TmN+okVlLL93BaJKpPPFG4lvOfgCe1pp+dS4M7FGnBmoGc X-Received: by 10.66.54.229 with SMTP id m5mr32188954pap.91.1472475767165; Mon, 29 Aug 2016 06:02:47 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id w76sm49327458pfd.69.2016.08.29.06.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 06:02:46 -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: mark gm107_grctx_generate_tpcid() static Date: Mon, 29 Aug 2016 21:02:27 +0800 Message-Id: <1472475747-30296-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/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;