Thread (24 messages) 24 messages, 5 authors, 2021-11-05

Re: [Intel-gfx] [PATCH v2 1/2] drm: Add a drm_drv_enabled() to check if drivers should be enabled

From: Javier Martinez Canillas <javierm@redhat.com>
Date: 2021-11-04 16:44:16
Also in: amd-gfx, dri-devel, lkml, nouveau

On 11/4/21 17:24, Jani Nikula wrote:

[snip]
quoted
index ab2295dd4500..45cb3e540eff 100644
--- a/drivers/gpu/drm/i915/i915_module.c
+++ b/drivers/gpu/drm/i915/i915_module.c
@@ -18,9 +18,12 @@
 #include "i915_selftest.h"
 #include "i915_vma.h"
 
+static const struct drm_driver driver;
+
No, this makes absolutely no sense, and will also oops on nomodeset.
Ups, sorry about that. For some reason I thought that it was defined in
the same compilation unit, but I noticed now that it is in i915_drv.c.
 
BR,
Jani.
Best regards,
-- 
Javier Martinez Canillas
Linux Engineering
Red Hat
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help