summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-08-27 06:42:13 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-08-27 06:42:13 +0000
commit2a4c8ad75cd595cec3aa181f911fea75d3ec6803 (patch)
treeae3c4b18b33861d4862e3913ad84321ff46242b2 /sys/dev/pci
parent168321ad9d45f332bf73a0b3bb0bc8c4fd98722e (diff)
bring back local #undef DEBUG changes lost in drm 5.7 update
fixes errors building with option DEBUG reported by phessler@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c4
-rw-r--r--sys/dev/pci/drm/radeon/atom.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c
index ad42114257b..751fe647c8a 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atom.c
@@ -94,6 +94,10 @@ static void debug_print_spaces(int n)
printk(" ");
}
+#ifdef DEBUG
+#undef DEBUG
+#endif
+
#define DEBUG(...) do if (amdgpu_atom_debug) { printk(KERN_DEBUG __VA_ARGS__); } while (0)
#define SDEBUG(...) do if (amdgpu_atom_debug) { printk(KERN_DEBUG); debug_print_spaces(debug_depth); printk(__VA_ARGS__); } while (0)
#else
diff --git a/sys/dev/pci/drm/radeon/atom.c b/sys/dev/pci/drm/radeon/atom.c
index f4852aea9ec..ec88b70f5b4 100644
--- a/sys/dev/pci/drm/radeon/atom.c
+++ b/sys/dev/pci/drm/radeon/atom.c
@@ -97,6 +97,10 @@ static void debug_print_spaces(int n)
printk(" ");
}
+#ifdef DEBUG
+#undef DEBUG
+#endif
+
#define DEBUG(...) do if (atom_debug) { printk(KERN_DEBUG __VA_ARGS__); } while (0)
#define SDEBUG(...) do if (atom_debug) { printk(KERN_DEBUG); debug_print_spaces(debug_depth); printk(__VA_ARGS__); } while (0)
#else