From: Paul Burton Date: Wed, 23 Aug 2017 18:17:50 +0000 (-0700) Subject: MIPS: Include linux/initrd.h for free_initrd_mem() X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~6927^2~130 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2aa7687c3cf2764a5dffcd214c18cc9b1cf2be1d;p=mirror_ubuntu-focal-kernel.git MIPS: Include linux/initrd.h for free_initrd_mem() arch/mips/mm/init.c provides our implementation of free_initrd_mem(), but doesn't include the linux/initrd.h header which declares them. This leads to a warning from sparse: arch/mips/mm/init.c:501:6: warning: symbol 'free_initrd_mem' was not declared. Should it be static? Fix this by including linux/initrd.h to get the declaration of free_initrd_mem(). Signed-off-by: Paul Burton Cc: linux-mips@linux-mips.org Cc: trivial@kernel.org Patchwork: https://patchwork.linux-mips.org/patch/17172/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 8ce2983a7015..5f6ea7d746de 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include