From patchwork Mon Aug 29 11:24:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74896 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1579677qga; Mon, 29 Aug 2016 04:25:16 -0700 (PDT) X-Received: by 10.66.241.40 with SMTP id wf8mr26724399pac.119.1472469916428; Mon, 29 Aug 2016 04:25:16 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si38725773paz.267.2016.08.29.04.25.16; Mon, 29 Aug 2016 04:25:16 -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 S1757244AbcH2LZN (ORCPT + 27 others); Mon, 29 Aug 2016 07:25:13 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:34021 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756977AbcH2LZM (ORCPT ); Mon, 29 Aug 2016 07:25:12 -0400 Received: by mail-pa0-f50.google.com with SMTP id fi15so48866333pac.1 for ; Mon, 29 Aug 2016 04:25:12 -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=z7wAvp24IMp7VGboW2hsIb5YpZad47oK+c72L7+n6ec=; b=DZrvVdRjdtsuky/L3GTbBcZkphFcts098QpImZVS4uTxrmc2nfqFjF9ypVXgPUiSGQ /odOmyyrvWThrGQKHGnxFF6+2Zmm8zDr26CyFbipbi2qKrgHbn99OYJdTX6h0W/KdW/b YQKBxZs46sWTn+aF+vLrOokUopaig/cdMXVxE= 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=z7wAvp24IMp7VGboW2hsIb5YpZad47oK+c72L7+n6ec=; b=g5p8QMFZWn6BPjTF8mE6dHxvIsopKgR3+fVLHbI7vTQH5IPxXDK3NJSi2979RVpjXB 8jtJL1QTeN0BA3zytIm7aRzIUCxOz1Db/wj1Q3336I+GcqRpBMYFxouMqj1gXQj8y5UP aPBce0ciNq8DDAbsVSe9XzIkSVfkb5v69eJTLlxlTc5R1xCJA93fc0fQ7awbQv1/7+L+ wq+QPi5JOq+x9YN9Uu9UK25wpXgej+o1l0s/mqKqYb53HnbeK4HzOlw+5Ydi4Mx8I71S G46K8gH+hAcRsSHLERU8J8nSWHq6paEk3r7lUxziXsotrId5mbM9L7a9SqYnDSznEngt n8xA== X-Gm-Message-State: AE9vXwPZCppHDOLbkCqpQyJoCj/juk2axi27oZxpW/Zqkjlv67y8jD9qouDfEZdfQhaKVFX9 X-Received: by 10.66.138.108 with SMTP id qp12mr31582089pab.65.1472469911778; Mon, 29 Aug 2016 04:25:11 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.36]) by smtp.gmail.com with ESMTPSA id tr1sm48680993pab.19.2016.08.29.04.25.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 04:25:11 -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: add missing header dependencies Date: Mon, 29 Aug 2016 19:24:50 +0800 Message-Id: <1472469890-23683-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 2 warnings when build kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c:255:1: warning: no previous prototype for 'nv50_grctx_fill' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c:265:1: warning: no previous prototype for 'nv50_grctx_init' [-Wmissing-prototypes] In fact, these functions are declared in gr/nv50.h, so this patch add missing header dependencies Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c index 1e13278..0490ee8 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c @@ -109,6 +109,8 @@ #include +#include "nv50.h" + #define IS_NVA3F(x) (((x) > 0xa0 && (x) < 0xaa) || (x) == 0xaf) #define IS_NVAAF(x) ((x) >= 0xaa && (x) <= 0xac)