asm-generic, mm: pgtable: convert my_zero_pfn() to macros to fix build
Changes
1 files changed · +2 −4
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| include/asm-generic/pgtable.h | modified | +2 | −4 | View file |
include/asm-generic/pgtable.h
View filediff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index 701beab..5cf680a 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -461,10 +461,8 @@ static inline int is_zero_pfn(unsigned long pfn)
return offset_from_zero_pfn <= (zero_page_mask >> PAGE_SHIFT);
}
-static inline unsigned long my_zero_pfn(unsigned long addr)
-{
- return page_to_pfn(ZERO_PAGE(addr));
-}
+#define my_zero_pfn(addr) page_to_pfn(ZERO_PAGE(addr))
+
#else
static inline int is_zero_pfn(unsigned long pfn)
{