+ mm-make-free_reserved_area-return-const-char.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm: make free_reserved_area() return "const char *"
has been added to the -mm tree.  Its filename is
     mm-make-free_reserved_area-return-const-char.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-make-free_reserved_area-return-const-char.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-make-free_reserved_area-return-const-char.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Subject: mm: make free_reserved_area() return "const char *"

and propagate through down the call stack.

Link: http://lkml.kernel.org/r/20181124091411.GC10969@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/arch/x86/include/asm/processor.h~mm-make-free_reserved_area-return-const-char
+++ a/arch/x86/include/asm/processor.h
@@ -967,7 +967,7 @@ static inline uint32_t hypervisor_cpuid_
 }
 
 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~mm-make-free_reserved_area-return-const-char
+++ a/arch/x86/mm/init.c
@@ -742,7 +742,7 @@ int devmem_is_allowed(unsigned long page
 	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~mm-make-free_reserved_area-return-const-char
+++ a/include/linux/mm.h
@@ -2120,7 +2120,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~mm-make-free_reserved_area-return-const-char
+++ a/mm/page_alloc.c
@@ -7379,7 +7379,7 @@ void adjust_managed_page_count(struct pa
 }
 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;
_

Patches currently in -mm which might be from adobriyan@xxxxxxxxx are

proc-update-maintainers-with-proctxt.patch
mm-make-migratetype_names-const-char.patch
mm-make-migrate_reason_names-const-char.patch
mm-make-free_reserved_area-return-const-char.patch
make-initcall_level_names-const-char.patch
coding-style-dont-use-extern-with-function-prototypes.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux