diff mbox series

[3/3] mm: add missing declaration of memmap_init in linux/mm.h

Message ID fccff943020c51f2319b673dd9e5720672e64a6e.1543899764.git.dato@net.com.org.es (mailing list archive)
State New, archived
Headers show
Series [1/3] mm: add include files so that function definitions have a prototype | expand

Commit Message

Adeodato Simó Dec. 4, 2018, 5:14 a.m. UTC
This follows-up commit dfb3ccd00a06 ("mm: make memmap_init a proper
function"), which changed memmap_init from macro to function.

Signed-off-by: Adeodato Simó <dato@net.com.org.es>
---
scripts/checkpatch.pl complained about use of extern for a prototype,
but I preferred to maintain consistency with surrounding code. -d

 include/linux/mm.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mike Rapoport Dec. 4, 2018, 7:48 a.m. UTC | #1
On Tue, Dec 04, 2018 at 02:14:24AM -0300, Adeodato Simó wrote:
> This follows-up commit dfb3ccd00a06 ("mm: make memmap_init a proper
> function"), which changed memmap_init from macro to function.
> 
> Signed-off-by: Adeodato Simó <dato@net.com.org.es>

Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
> scripts/checkpatch.pl complained about use of extern for a prototype,
> but I preferred to maintain consistency with surrounding code. -d
> 
>  include/linux/mm.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/linux/mm.h b/include/linux/mm.h
> index 3eb3bf7774f1..8597b864dd91 100644
> --- a/include/linux/mm.h
> +++ b/include/linux/mm.h
> @@ -2268,6 +2268,8 @@ static inline void zero_resv_unavail(void) {}
>  #endif
> 
>  extern void set_dma_reserve(unsigned long new_dma_reserve);
> +extern void memmap_init(unsigned long size, int nid,
> +			unsigned long zone, unsigned long start_pfn);
>  extern void memmap_init_zone(unsigned long, int, unsigned long, unsigned long,
>  		enum memmap_context, struct vmem_altmap *);
>  extern void setup_per_zone_wmarks(void);
> -- 
> 2.19.2
>
diff mbox series

Patch

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 3eb3bf7774f1..8597b864dd91 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2268,6 +2268,8 @@  static inline void zero_resv_unavail(void) {}
 #endif
 
 extern void set_dma_reserve(unsigned long new_dma_reserve);
+extern void memmap_init(unsigned long size, int nid,
+			unsigned long zone, unsigned long start_pfn);
 extern void memmap_init_zone(unsigned long, int, unsigned long, unsigned long,
 		enum memmap_context, struct vmem_altmap *);
 extern void setup_per_zone_wmarks(void);