nouveau: fix compile error with -DDEBUG on newer gcc

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
main
Karol Herbst 2020-05-03 16:17:42 +02:00
parent 05727548a1
commit 5ec177b398
1 changed files with 1 additions and 1 deletions

View 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))) \