OSDN Git Service

nouveau: fix compile error with -DDEBUG on newer gcc
authorKarol Herbst <kherbst@redhat.com>
Sun, 3 May 2020 14:17:42 +0000 (16:17 +0200)
committerKarol Herbst <kherbst@redhat.com>
Mon, 4 May 2020 09:58:10 +0000 (11:58 +0200)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
nouveau/private.h

index 83060f9..034a958 100644 (file)
@@ -10,7 +10,7 @@
 #include "nouveau.h"
 
 #ifdef DEBUG
-drm_private uint32_t nouveau_debug;
+drm_private extern uint32_t nouveau_debug;
 #define dbg_on(lvl) (nouveau_debug & (1 << lvl))
 #define dbg(lvl, fmt, args...) do {                                            \
        if (dbg_on((lvl)))                                                     \