parisc: Define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
PATCH 1/1 parisc: Define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
From: Helge Deller <[email protected]>
Define the HAVE_ARCH_HUGETLB_UNMAPPED_AREA macro like other platforms do in
their page.h files to avoid this compile warning:arch/parisc/mm/hugetlbpage.c:25:1: warning: no previous prototype for 'hugetlb_get_unmapped_area' [-Wmissing-prototypes]
Signed-off-by Helge Deller <[email protected]>
Cc [email protected] # 6.0+
Reported-by John David Anglin <[email protected]>
--- arch/parisc/include/asm/page.h | 1 + 1 file changed, 1 insertion(+)
arch/parisc/include/asm/page.h +1 -0
@@ -8,6 +8,7 @@#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)#define PAGE_MASK (~(PAGE_SIZE-1)) +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #ifndef __ASSEMBLY__
Signature · 1 line
2.45.0
Tested-by John David Anglin <[email protected]>
Dave
Quoted 25 lines · On 2024-05-15 8:53 a.m., [email protected] wrote:
From: Helge Deller <[email protected]>
Define the
HAVE_ARCH_HUGETLB_UNMAPPED_AREAmacro like other platforms do in
theirpage.hfiles to avoid this compile warning:arch/parisc/mm/hugetlbpage.c:25:1: warning: no previous prototype for 'hugetlb_get_unmapped_area' [-Wmissing-prototypes]Signed-off-by Helge Deller <[email protected]>Cc [email protected] # 6.0+Reported-by John David Anglin <[email protected]>--- arch/parisc/include/asm/page.h | 1 + 1 file changed, 1 insertion(+)arch/parisc/include/asm/page.h +1
-0@@ -8,6 +8,7 @@#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)#define PAGE_MASK (~(PAGE_SIZE-1)) +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #ifndef __ASSEMBLY__
Signature · 1 line
John David Anglin [email protected]