Skip to contentSkip to conversation

x86/mm: remove unused DBG() macro

PATCH In review Akinobu Mita 1 participant 2 messages May 24, 2010 – May 31, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/mm: remove unused DBG() macro

DBG() macro for CONFIG_DEBUG_PER_CPU_MAPS is unused.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
 arch/x86/kernel/setup_percpu.c |    6 ------
 arch/x86/mm/numa.c             |    6 ------
 2 files changed, 0 insertions(+), 12 deletions(-)
arch/x86/kernel/setup_percpu.c +0 -6
index ef6370b..3627998 100644
@@ -21,12 +21,6 @@
 #include <asm/cpu.h>
 #include <asm/stackprotector.h>
 
-#ifdef CONFIG_DEBUG_PER_CPU_MAPS
-# define DBG(fmt, ...) pr_dbg(fmt, ##__VA_ARGS__)
-#else
-# define DBG(fmt, ...) do { if (0) pr_dbg(fmt, ##__VA_ARGS__); } while (0)
-#endif
-
 DEFINE_PER_CPU(int, cpu_number);
 EXPORT_PER_CPU_SYMBOL(cpu_number);
 
arch/x86/mm/numa.c +0 -6
index 550df48..787c52c 100644
@@ -3,12 +3,6 @@
 #include <linux/module.h>
 #include <linux/bootmem.h>
 
-#ifdef CONFIG_DEBUG_PER_CPU_MAPS
-# define DBG(x...) printk(KERN_DEBUG x)
-#else
-# define DBG(x...)
-#endif
-
 /*
  * Which logical CPUs are on which nodes
  */
Signature · 1 line
1.6.0.6
#1 lore raw

[tip:x86/urgent] x86/mm: Remove unused DBG() macro

Commit-ID:  e565813ab95875af0d51a6bcd537068380bb06ea
Gitweb:     http://git.kernel.org/tip/e565813ab95875af0d51a6bcd537068380bb06ea
Author:     Akinobu Mita <[email protected]>
AuthorDate: Mon, 24 May 2010 22:04:51 +0900
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 31 May 2010 10:01:53 +0200

x86/mm: Remove unused DBG() macro

DBG() macro for CONFIG_DEBUG_PER_CPU_MAPS is unused.

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/setup_percpu.c |    6 ------
 arch/x86/mm/numa.c             |    6 ------
 2 files changed, 0 insertions(+), 12 deletions(-)
arch/x86/kernel/setup_percpu.c +0 -6
index a867940..401ff10 100644
@@ -21,12 +21,6 @@
 #include <asm/cpu.h>
 #include <asm/stackprotector.h>
 
-#ifdef CONFIG_DEBUG_PER_CPU_MAPS
-# define DBG(fmt, ...) pr_dbg(fmt, ##__VA_ARGS__)
-#else
-# define DBG(fmt, ...) do { if (0) pr_dbg(fmt, ##__VA_ARGS__); } while (0)
-#endif
-
 DEFINE_PER_CPU(int, cpu_number);
 EXPORT_PER_CPU_SYMBOL(cpu_number);
 
arch/x86/mm/numa.c +0 -6
index 550df48..787c52c 100644
@@ -3,12 +3,6 @@
 #include <linux/module.h>
 #include <linux/bootmem.h>
 
-#ifdef CONFIG_DEBUG_PER_CPU_MAPS
-# define DBG(x...) printk(KERN_DEBUG x)
-#else
-# define DBG(x...)
-#endif
-
 /*
  * Which logical CPUs are on which nodes
  */