mm: make free_reserved_area() return "const char *"
diff mbox series

Message ID 20181124091411.GC10969@avx2
State In Next
Commit e5cb113f2dbc8125f31005faebab161a2a84ebe6
Headers show
Series
  • mm: make free_reserved_area() return "const char *"
Related show

Commit Message

Alexey Dobriyan Nov. 24, 2018, 9:14 a.m. UTC
and propagate through down the call stack.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 arch/x86/include/asm/processor.h |    2 +-
 arch/x86/mm/init.c               |    2 +-
 include/linux/mm.h               |    2 +-
 mm/page_alloc.c                  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Patch
diff mbox series

--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -967,7 +967,7 @@  static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves)
 }
 
 extern unsigned long arch_align_stack(unsigned long sp);
-extern void free_init_pages(char *what, unsigned long begin, unsigned long end);
+void free_init_pages(const char *what, unsigned long begin, unsigned long end);
 extern void free_kernel_image_pages(void *begin, void *end);
 
 void default_idle(void);
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -742,7 +742,7 @@  int devmem_is_allowed(unsigned long pagenr)
 	return 1;
 }
 
-void free_init_pages(char *what, unsigned long begin, unsigned long end)
+void free_init_pages(const char *what, unsigned long begin, unsigned long end)
 {
 	unsigned long begin_aligned, end_aligned;
 
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2054,7 +2054,7 @@  extern void free_initmem(void);
  * Return pages freed into the buddy system.
  */
 extern unsigned long free_reserved_area(void *start, void *end,
-					int poison, char *s);
+					int poison, const char *s);
 
 #ifdef	CONFIG_HIGHMEM
 /*
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -7072,7 +7072,7 @@  void adjust_managed_page_count(struct page *page, long count)
 }
 EXPORT_SYMBOL(adjust_managed_page_count);
 
-unsigned long free_reserved_area(void *start, void *end, int poison, char *s)
+unsigned long free_reserved_area(void *start, void *end, int poison, const char *s)
 {
 	void *pos;
 	unsigned long pages = 0;