[PATCH] drm: Fix no previous prototype error in drm_nomodeset.c

Aashish Sharma shraash at google.com
Wed Mar 2 17:09:02 UTC 2022


Fix this kernel test robot error:

drivers/gpu/drm/drm_nomodeset.c:8:6: error:
no previous prototype for 'drm_firmware_drivers_only'

Including drm_drv.h in drm_nomodeset.c which contains
drm_firmware_drivers_only's declaration.

Signed-off-by: Aashish Sharma <shraash at google.com>
---
 drivers/gpu/drm/drm_nomodeset.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_nomodeset.c b/drivers/gpu/drm/drm_nomodeset.c
index f3978d5bd3a1..9402deb4985f 100644
--- a/drivers/gpu/drm/drm_nomodeset.c
+++ b/drivers/gpu/drm/drm_nomodeset.c
@@ -2,6 +2,7 @@
 
 #include <linux/module.h>
 #include <linux/types.h>
+#include <drm/drm_drv.h>
 
 static bool drm_nomodeset;
 
-- 
2.35.1.574.g5d30c73bfb-goog



More information about the dri-devel mailing list