Commit 1f0f8c0d authored by Mike Rapoport's avatar Mike Rapoport Committed by Linus Torvalds

include/linux/mmzone.h: remove unused early_pfn_valid()

The early_pfn_valid() macro is defined but it is never used.  Remove it.
Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarDavid Hildenbrand <david@redhat.com>
Link: https://lkml.kernel.org/r/20200923162915.26935-1-rppt@kernel.orgSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 73eb7f9a
...@@ -1420,7 +1420,6 @@ static inline unsigned long next_present_section_nr(unsigned long section_nr) ...@@ -1420,7 +1420,6 @@ static inline unsigned long next_present_section_nr(unsigned long section_nr)
#define pfn_to_nid(pfn) (0) #define pfn_to_nid(pfn) (0)
#endif #endif
#define early_pfn_valid(pfn) pfn_valid(pfn)
void sparse_init(void); void sparse_init(void);
#else #else
#define sparse_init() do {} while (0) #define sparse_init() do {} while (0)
...@@ -1440,10 +1439,6 @@ struct mminit_pfnnid_cache { ...@@ -1440,10 +1439,6 @@ struct mminit_pfnnid_cache {
int last_nid; int last_nid;
}; };
#ifndef early_pfn_valid
#define early_pfn_valid(pfn) (1)
#endif
/* /*
* If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we * If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we
* need to check pfn validity within that MAX_ORDER_NR_PAGES block. * need to check pfn validity within that MAX_ORDER_NR_PAGES block.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment