Skip to contentSkip to conversation

drm: Fix no previous prototype error in drm_nomodeset.c

PATCH In review Aashish Sharma 2 participants 2 messages Mar 2, 2022 – Mar 3, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Fix no previous prototype error in drm_nomodeset.c

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.

---
 drivers/gpu/drm/drm_nomodeset.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_nomodeset.c +1 -0
index f3978d5bd3a1..9402deb4985f 100644
@@ -2,6 +2,7 @@
 
 #include <linux/module.h>
 #include <linux/types.h>
+#include <drm/drm_drv.h>
 
 static bool drm_nomodeset;
 
Signature · 1 line
2.35.1.574.g5d30c73bfb-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Aashish Sharma

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.

Quoted 19 lines
---
 drivers/gpu/drm/drm_nomodeset.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_nomodeset.c +1 -0
index f3978d5bd3a1..9402deb4985f 100644
@@ -2,6 +2,7 @@
 
 #include <linux/module.h>
 #include <linux/types.h>
+#include <drm/drm_drv.h>
 
 static bool drm_nomodeset;
 
Signature · 1 line
2.35.1.574.g5d30c73bfb-goog