Skip to contentSkip to conversation

x86: convert highmem macros to functions

PATCH New Marcin Slusarz 1 participant 1 message Oct 25, 2008

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

PATCH 1/1 x86: convert highmem macros to functions

convert kmap_init, permanent_kmaps_init, set_highmem_pages_init macros defined when !CONFIG_HIGHMEM to functions

supresses following warning from gcc:
arch/x86/mm/init_32.c: In function 'pagetable_init':
arch/x86/mm/init_32.c:516: warning: unused variable 'pgd_base'

---
 arch/x86/mm/init_32.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/mm/init_32.c +3 -3
index 8396868..d5dfdc4 100644
@@ -436,9 +436,9 @@ static void __init set_highmem_pages_init(void)
 #endif /* !CONFIG_NUMA */
 
 #else
-# define kmap_init()				do { } while (0)
-# define permanent_kmaps_init(pgd_base)		do { } while (0)
-# define set_highmem_pages_init()	do { } while (0)
+static inline void kmap_init(void) {}
+static inline void permanent_kmaps_init(pgd_t *pgd_base) {}
+static inline void set_highmem_pages_init(void) {}
 #endif /* CONFIG_HIGHMEM */
 
 void __init native_pagetable_setup_start(pgd_t *base)
Signature · 1 line
1.5.6.4