From patchwork Thu Sep 8 11:31:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75771 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp792744qgf; Thu, 8 Sep 2016 04:32:29 -0700 (PDT) X-Received: by 10.98.54.134 with SMTP id d128mr91357280pfa.150.1473334346411; Thu, 08 Sep 2016 04:32:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zq10si46696648pab.103.2016.09.08.04.32.26; Thu, 08 Sep 2016 04:32:26 -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 S1757680AbcIHLcU (ORCPT + 27 others); Thu, 8 Sep 2016 07:32:20 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36169 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757474AbcIHLcS (ORCPT ); Thu, 8 Sep 2016 07:32:18 -0400 Received: by mail-pa0-f52.google.com with SMTP id id6so16668672pad.3 for ; Thu, 08 Sep 2016 04:32:17 -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=f6qgBDp8htS9hwWxDc1F8pj241o4/EgMkQ0lrbkv3u4=; b=NuGHBkUBaWWemRCh/3ZUA1vNuIS2IWiiI1U07vfsC+reBqtstk+Z9DDn0S9gKQE0lP dFltcPDyNkClnkt8TErsAUtrDIM2d+aEQ7PMtcmdfcIc9sM48ba3c7oRNn/bNtPYi2KN b2tJF3On7dfYiyFzuy3XWEakFpKSToO6b29+E= 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=f6qgBDp8htS9hwWxDc1F8pj241o4/EgMkQ0lrbkv3u4=; b=hTNVqTi/R+XNsolEnQTATv/cFQjgndAWlauqOEdHuF2h3i03lKIOi5G+0N0WmT58Hq SUj5RV6OWxZhe3EaMAaG9ggPoHVsc4uIrOp7Mj7bzBpfTQI8XwKbRGKoOdt8MEcIER9A PSe4jJANaozOV4wUF5rbSEZ1w6F3pNVSEy5AAVSoKDCie6zMqNqxCyRWmeclSWYsjsPx y/p+x4b1Gv1RvB+341WVGfZnrnsfuYUr+ytD2vrbB/aonWUYt+d4NXVnk9uwWq6FewAW muiF+jCYfj1vymbntwOTaD1ddWJb4WBuCzSeVc68Sp/GKOc2VfWSUBDsKl1C8Q7qt81k b4+Q== X-Gm-Message-State: AE9vXwNWow2nDn7wH2TMGtFaPmAFnVJ1NF4QNltFnReRrhMxxS1FwwOC5QuBvHytfJ3zX8NQ X-Received: by 10.66.138.74 with SMTP id qo10mr90640490pab.135.1473334337301; Thu, 08 Sep 2016 04:32:17 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id b88sm53619188pfe.66.2016.09.08.04.32.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 04:32:16 -0700 (PDT) From: Baoyou Xie To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/radeon: add missing header dependencies Date: Thu, 8 Sep 2016 19:31:41 +0800 Message-Id: <1473334301-25984-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 a few warnings when building kernel with W=1: drivers/gpu/drm/radeon/radeon_clocks.c:35:10: warning: no previous prototype for 'radeon_legacy_get_engine_clock' [-Wmissing-prototypes] drivers/gpu/drm/radeon/atombios_encoders.c:75:1: warning: no previous prototype for 'atombios_get_backlight_level' [-Wmissing-prototypes] drivers/gpu/drm/radeon/r600_cs.c:2268:5: warning: no previous prototype for 'r600_cs_parse' [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_cs.c:2671:5: warning: no previous prototype for 'evergreen_cs_parse' [-Wmissing-prototypes] .... In fact, these functions are declared in drivers/gpu/drm/radeon/radeon_asic.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/atombios_encoders.c | 1 + drivers/gpu/drm/radeon/evergreen_cs.c | 1 + drivers/gpu/drm/radeon/r600_cs.c | 1 + drivers/gpu/drm/radeon/radeon_atombios.c | 1 + drivers/gpu/drm/radeon/radeon_clocks.c | 1 + drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 1 + 6 files changed, 6 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 56bb758..fa4f8f0 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -28,6 +28,7 @@ #include #include "radeon.h" #include "radeon_audio.h" +#include "radeon_asic.h" #include "atom.h" #include diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index d960d39..f8b0509 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c @@ -27,6 +27,7 @@ */ #include #include "radeon.h" +#include "radeon_asic.h" #include "evergreend.h" #include "evergreen_reg_safe.h" #include "cayman_reg_safe.h" diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index b69c8de..595a197 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -28,6 +28,7 @@ #include #include #include "radeon.h" +#include "radeon_asic.h" #include "r600d.h" #include "r600_reg_safe.h" diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 5df3ec7..4134759 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -29,6 +29,7 @@ #include "atom.h" #include "atom-bits.h" +#include "radeon_asic.h" extern void radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum, diff --git a/drivers/gpu/drm/radeon/radeon_clocks.c b/drivers/gpu/drm/radeon/radeon_clocks.c index 38e396d..c1135fe 100644 --- a/drivers/gpu/drm/radeon/radeon_clocks.c +++ b/drivers/gpu/drm/radeon/radeon_clocks.c @@ -29,6 +29,7 @@ #include #include "radeon_reg.h" #include "radeon.h" +#include "radeon_asic.h" #include "atom.h" /* 10 khz */ diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c index 868c3ba..222a1fa 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c @@ -27,6 +27,7 @@ #include #include #include "radeon.h" +#include "radeon_asic.h" #include "atom.h" #include #ifdef CONFIG_PMAC_BACKLIGHT