Commit 297b1286 authored by Baoyou Xie's avatar Baoyou Xie Committed by Alex Deucher

drm/radeon: add missing header dependencies

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.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarBaoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ef704318
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <drm/radeon_drm.h> #include <drm/radeon_drm.h>
#include "radeon.h" #include "radeon.h"
#include "radeon_audio.h" #include "radeon_audio.h"
#include "radeon_asic.h"
#include "atom.h" #include "atom.h"
#include <linux/backlight.h> #include <linux/backlight.h>
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
*/ */
#include <drm/drmP.h> #include <drm/drmP.h>
#include "radeon.h" #include "radeon.h"
#include "radeon_asic.h"
#include "evergreend.h" #include "evergreend.h"
#include "evergreen_reg_safe.h" #include "evergreen_reg_safe.h"
#include "cayman_reg_safe.h" #include "cayman_reg_safe.h"
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <drm/drmP.h> #include <drm/drmP.h>
#include "radeon.h" #include "radeon.h"
#include "radeon_asic.h"
#include "r600d.h" #include "r600d.h"
#include "r600_reg_safe.h" #include "r600_reg_safe.h"
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "atom.h" #include "atom.h"
#include "atom-bits.h" #include "atom-bits.h"
#include "radeon_asic.h"
extern void extern void
radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum, radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum,
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <drm/radeon_drm.h> #include <drm/radeon_drm.h>
#include "radeon_reg.h" #include "radeon_reg.h"
#include "radeon.h" #include "radeon.h"
#include "radeon_asic.h"
#include "atom.h" #include "atom.h"
/* 10 khz */ /* 10 khz */
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <drm/drm_crtc_helper.h> #include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h> #include <drm/radeon_drm.h>
#include "radeon.h" #include "radeon.h"
#include "radeon_asic.h"
#include "atom.h" #include "atom.h"
#include <linux/backlight.h> #include <linux/backlight.h>
#ifdef CONFIG_PMAC_BACKLIGHT #ifdef CONFIG_PMAC_BACKLIGHT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment