diff mbox series

drm/amd/display: include missing linux/delay.h

Message ID 20190617123915.926526-1-arnd@arndb.de
State New
Headers show
Series drm/amd/display: include missing linux/delay.h | expand

Commit Message

Arnd Bergmann June 17, 2019, 12:38 p.m. UTC
Some randconfig builds fail to compile the dcn10 code because of
a missing declaration:

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In function 'dcn10_apply_ctx_for_surface':
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2378:3: error: implicit declaration of function 'udelay' [-Werror=implicit-function-declaration]

Include the appropriate kernel header.

Fixes: 9ed43ef84d9d ("drm/amd/display: Add Underflow Asserts to dc")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.0
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index 1ac9a4f03990..d87ddc7de9c6 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -22,6 +22,7 @@ 
  * Authors: AMD
  *
  */
+#include <linux/delay.h>
 
 #include <linux/delay.h>
 #include "dm_services.h"