mm: make free_reserved_area() return "const char *"
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 28 Dec 2018 08:36:03 +0000 (00:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Dec 2018 20:11:48 +0000 (12:11 -0800)
and propagate through down the call stack.

Link: http://lkml.kernel.org/r/20181124091411.GC10969@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/processor.h
arch/x86/mm/init.c
include/linux/mm.h
mm/page_alloc.c

index 071b2a6fff85c9a85c3cc5f4f349fb836224254f..33051436c86459131a23005b67ecfdaa952cc123 100644 (file)
@@ -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);
index 427a955a2cf2c49fdc1fd5c84494f064a5704caf..f905a2371080beee339dac3f5dad13d0ab1e7ef8 100644 (file)
@@ -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;
 
index 031b2ce983f9d5322dfeefa725d7af513ea10048..9963f77f1101fadc8504b3ed88973882bdbc161e 100644 (file)
@@ -2108,7 +2108,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
 /*
index 4115d7f20223fe1cd6c3971e1e104d7ac4f723ea..e97ebaf5ba2636765ded03ce081c8a913b045849 100644 (file)
@@ -7193,7 +7193,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;