Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David Hildenbrand <david@redhat.com>
Link: https://lkml.kernel.org/r/20200923162915.26935-1-rppt@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mike Rapoport and committed by
Linus Torvalds
1f0f8c0d 73eb7f9a

-5
-5
include/linux/mmzone.h
··· 1420 1420 #define pfn_to_nid(pfn) (0) 1421 1421 #endif 1422 1422 1423 - #define early_pfn_valid(pfn) pfn_valid(pfn) 1424 1423 void sparse_init(void); 1425 1424 #else 1426 1425 #define sparse_init() do {} while (0) ··· 1438 1439 unsigned long last_end; 1439 1440 int last_nid; 1440 1441 }; 1441 - 1442 - #ifndef early_pfn_valid 1443 - #define early_pfn_valid(pfn) (1) 1444 - #endif 1445 1442 1446 1443 /* 1447 1444 * If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we