From 5ec177b398d6d305f273329c8228ea870e180d6d Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 3 May 2020 16:17:42 +0200 Subject: [PATCH] nouveau: fix compile error with -DDEBUG on newer gcc Signed-off-by: Karol Herbst Reviewed-by: Ilia Mirkin --- nouveau/private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nouveau/private.h b/nouveau/private.h index 83060f96..034a958e 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -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))) \