linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: hugetlb_vmemmap: include missing linux/moduleparam.h
@ 2022-11-02 18:09 Vasily Gorbik
  2022-11-03  2:51 ` Muchun Song
  0 siblings, 1 reply; 4+ messages in thread
From: Vasily Gorbik @ 2022-11-02 18:09 UTC (permalink / raw)
  To: Muchun Song, Mike Kravetz, Andrew Morton
  Cc: Gerald Schaefer, linux-mm, linux-kernel

The kernel test robot reported build failures with a 'randconfig' on s390:
>> mm/hugetlb_vmemmap.c:421:11: error: a function declaration without a
prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
   core_param(hugetlb_free_vmemmap, vmemmap_optimize_enabled, bool, 0);
             ^

Link: https://lore.kernel.org/linux-mm/202210300751.rG3UDsuc-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 30152245c63b ("mm: hugetlb_vmemmap: replace early_param() with core_param()")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
---
 mm/hugetlb_vmemmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c
index ba2a2596fb4e..4962dd1ba4a6 100644
--- a/mm/hugetlb_vmemmap.c
+++ b/mm/hugetlb_vmemmap.c
@@ -11,6 +11,7 @@
 #define pr_fmt(fmt)	"HugeTLB: " fmt
 
 #include <linux/pgtable.h>
+#include <linux/moduleparam.h>
 #include <linux/bootmem_info.h>
 #include <asm/pgalloc.h>
 #include <asm/tlbflush.h>
-- 
2.38.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-04 23:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02 18:09 [PATCH] mm: hugetlb_vmemmap: include missing linux/moduleparam.h Vasily Gorbik
2022-11-03  2:51 ` Muchun Song
2022-11-03 16:02   ` Vasily Gorbik
2022-11-04 23:36     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox