From patchwork Sat Oct 22 09:41:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78776 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703187qge; Sat, 22 Oct 2016 02:43:08 -0700 (PDT) X-Received: by 10.98.193.2 with SMTP id i2mr9858391pfg.155.1477129388849; Sat, 22 Oct 2016 02:43:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si6268272pgh.22.2016.10.22.02.43.08; Sat, 22 Oct 2016 02:43:08 -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 S964832AbcJVJnD (ORCPT + 27 others); Sat, 22 Oct 2016 05:43:03 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33782 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937911AbcJVJmy (ORCPT ); Sat, 22 Oct 2016 05:42:54 -0400 Received: by mail-pf0-f169.google.com with SMTP id 128so70839975pfz.0 for ; Sat, 22 Oct 2016 02:42:54 -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:in-reply-to:references; bh=ErcatATpB7y8qYikHxaaQS9Qmv3HCbdn6lPdp4x1ma0=; b=HJV46kXLu95w5upZ6Flrd8JdJtBuWAAFe98fSX5/lXdE9D3ITy+YtXETtaeaAGDu4V Nghoc9fBYs8fC/ODbr6HhJHNxP+GYjQHHcxjEuGtYO10DCD6jI3ccvqzb8kXOsQ0qoJ/ medheQPCZe1FmkguIQsmfMAf0T4JXipIMAIEk= 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:in-reply-to :references; bh=ErcatATpB7y8qYikHxaaQS9Qmv3HCbdn6lPdp4x1ma0=; b=PXTq157FKB9xKXRgNGJOn461BMuU12hlivU0ZPVqZq/AKOP74ETP/82TtUnoxjmDm9 3Ig+BQ4I4NhJG19NgLRmMHVlyDNXoS+bPWsS+zm9LI8/fw0r5aI9uU+iL9HyV+IfhpMG aaVQlVpiKSOqUsBisBgPaDyPoeQG5eU8sl4EcC7CE9iFfg872V/rup6zzSWrfWVu3b8T zikzg81YSOQ5vYB9QiujE3Rqubs3v/aSKtdOU6sE5Xuww+/ACMoNJ2dr/w5VgSSFwDsN +3t0zkc8zQ03gdWvMrTOCybnAy83V1ueJssg85BNjaxPbbjUQ6KYMi9hQGxsAnT3piD8 c7gw== X-Gm-Message-State: ABUngvfYbCD2lvnKQSsycfj4qsarK3nmkZo4GENjyPrKaRHMHahkUYaJuVQJQS6yL9UV0CRq X-Received: by 10.99.213.21 with SMTP id c21mr8119259pgg.176.1477129373756; Sat, 22 Oct 2016 02:42:53 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.42.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:42:53 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie, acourbot@nvidia.com, imirkin@alum.mit.edu, Julia.Lawall@lip6.fr, martin.peres@free.fr, rspliet@eclipso.eu, nouveau@karolherbst.de 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, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 04/17] drm/nouveau/fb: add missing header dependencies Date: Sat, 22 Oct 2016 17:41:45 +0800 Message-Id: <1477129318-29677-4-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> References: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c:69:1: warning: no previous prototype for 'nvkm_sddr3_calc' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c:60:1: warning: no previous prototype for 'nvkm_sddr2_calc' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c | 1 + 2 files changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c index b9f1ffd..4dcd874 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c @@ -23,6 +23,7 @@ * Ben Skeggs */ #include "priv.h" +#include "ram.h" struct ramxlat { int id; diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c index 2690033..eca8a44 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c @@ -23,6 +23,7 @@ * Roy Spliet */ #include "priv.h" +#include "ram.h" struct ramxlat { int id;