Skip to contentSkip to conversation

parisc: Define HAVE_ARCH_HUGETLB_UNMAPPED_AREA

PATCH In review [email protected] 2 participants 2 messages May 15, 2024 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

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]

---
 arch/parisc/include/asm/page.h | 1 +
 1 file changed, 1 insertion(+)
arch/parisc/include/asm/page.h +1 -0
index ad4e15d12ed1..4bea2e95798f 100644
@@ -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 on v1 1/1
#1 lore raw

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_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]

---
  arch/parisc/include/asm/page.h | 1 +
  1 file changed, 1 insertion(+)
arch/parisc/include/asm/page.h +1 -0
index ad4e15d12ed1..4bea2e95798f 100644
@@ -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]