From patchwork Sun Aug 28 07:16:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74872 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1094154qga; Sun, 28 Aug 2016 00:17:33 -0700 (PDT) X-Received: by 10.98.60.217 with SMTP id b86mr21166618pfk.129.1472368653433; Sun, 28 Aug 2016 00:17:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tf1si31820862pab.230.2016.08.28.00.17.33; Sun, 28 Aug 2016 00:17:33 -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 S932370AbcH1HR2 (ORCPT + 27 others); Sun, 28 Aug 2016 03:17:28 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36355 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932249AbcH1HR1 (ORCPT ); Sun, 28 Aug 2016 03:17:27 -0400 Received: by mail-pf0-f182.google.com with SMTP id h186so41527014pfg.3 for ; Sun, 28 Aug 2016 00:17:27 -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=drVbKaoJsOksGDX15MBlS8EeWQ7U3NZYWLjJz/cz8NA=; b=E6GmFX2Zp3jyWqMvSc0ximfbR4Qa76aeBo6SBflcofQmUD+9rQFiGvgZSReJCOrlx+ 53cE69bsdwBWuGmV2Hkg1oIc4m650ByPWmabodahJdE3iCOBpi0Ck2zF6SvVQG9yMtyT x9XA1jOQaB/3yc7DekzAuwi3wyKcs39jy95cc= 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=drVbKaoJsOksGDX15MBlS8EeWQ7U3NZYWLjJz/cz8NA=; b=R8ptrjIr6nlxaeMqXvs0mihfZ6Ja5pLsKuZSEdSKaekK59kBXEtZ/PpV3xkKsf2aeq +C0/7c00vef0by6h6E4ZgCykNe6JqM/0h5ZQmwxN/mSUdX1WsRXUBG2X8LYMaUV90tSq g1ESupeA2Q9Z2dAeGmUgmO5f1R3/E93+aXDRG6pMlJZmNjWiK6mazkN4QxM83tdQ86GU FpQcORwFN/SgPIhIIputcJ+wm8nSfO/OrFVGgqH9kvJyJY06VKtBmxyqvx2OHSijsTzy LmN+UyVbcnR0jG9JeKTQdEu3DUp9gTxqf7QDQqHpqILa0+BWNRrJirUxa6TpCGRdbov/ X/mQ== X-Gm-Message-State: AE9vXwPcqFNPzIkmfAJdEePbgVO4THBg5SkkZks7xEuJqVAv5vReJ/wuSb0zu35VHhvz8AUx X-Received: by 10.98.21.131 with SMTP id 125mr21121507pfv.92.1472368646729; Sun, 28 Aug 2016 00:17:26 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.142]) by smtp.gmail.com with ESMTPSA id fe8sm40268856pad.2.2016.08.28.00.17.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Aug 2016 00:17:26 -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] fix:nv10_fence: mark symbols static where possible Date: Sun, 28 Aug 2016 15:16:55 +0800 Message-Id: <1472368615-30717-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 about global functions without a declaration in the nouveau nv10_fence driver when building with W=1: drivers/gpu/drm/nouveau/nv10_fence.c:70:1: warning: no previous prototype for 'nv10_fence_context_new' [-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 it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nv10_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nv10_fence.c b/drivers/gpu/drm/nouveau/nv10_fence.c index 4e3de34..619f79d 100644 --- a/drivers/gpu/drm/nouveau/nv10_fence.c +++ b/drivers/gpu/drm/nouveau/nv10_fence.c @@ -66,7 +66,7 @@ nv10_fence_context_del(struct nouveau_channel *chan) nouveau_fence_context_free(&fctx->base); } -int +static int nv10_fence_context_new(struct nouveau_channel *chan) { struct nv10_fence_chan *fctx;