Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: Remove definition of DEBUG

Defining DEBUG should only be done in development. So remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/20210114212827.47584-1-trix@redhat.com

authored by

Tom Rix and committed by
Borislav Petkov
b86cb292 11aa1415

-8
-1
arch/x86/kernel/cpu/mtrr/generic.c
··· 3 3 * This only handles 32bit MTRR on 32bit hosts. This is strictly wrong 4 4 * because MTRRs can span up to 40 bits (36bits on most modern x86) 5 5 */ 6 - #define DEBUG 7 6 8 7 #include <linux/export.h> 9 8 #include <linux/init.h>
-2
arch/x86/kernel/cpu/mtrr/mtrr.c
··· 31 31 System Programming Guide; Section 9.11. (1997 edition - PPro). 32 32 */ 33 33 34 - #define DEBUG 35 - 36 34 #include <linux/types.h> /* FIXME: kvm_para.h needs this */ 37 35 38 36 #include <linux/stop_machine.h>
-3
arch/x86/kernel/pci-iommu_table.c
··· 4 4 #include <linux/string.h> 5 5 #include <linux/kallsyms.h> 6 6 7 - 8 - #define DEBUG 1 9 - 10 7 static struct iommu_table_entry * __init 11 8 find_dependents_of(struct iommu_table_entry *start, 12 9 struct iommu_table_entry *finish,
-2
arch/x86/mm/mmio-mod.c
··· 10 10 11 11 #define pr_fmt(fmt) "mmiotrace: " fmt 12 12 13 - #define DEBUG 1 14 - 15 13 #include <linux/moduleparam.h> 16 14 #include <linux/debugfs.h> 17 15 #include <linux/slab.h>