--- zzzz-none-000/linux-3.10.107/include/linux/mmzone.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/mmzone.h 2021-11-10 11:53:56.000000000 +0000 @@ -799,7 +799,9 @@ #ifdef CONFIG_HAVE_MEMORY_PRESENT void memory_present(int nid, unsigned long start, unsigned long end); #else -static inline void memory_present(int nid, unsigned long start, unsigned long end) {} +static inline void memory_present(int nid __maybe_unused, + unsigned long start __maybe_unused, + unsigned long end __maybe_unused) {} #endif #ifdef CONFIG_HAVE_MEMORYLESS_NODES @@ -833,7 +835,7 @@ #endif } -static inline int is_highmem_idx(enum zone_type idx) +static inline int is_highmem_idx(enum zone_type idx __maybe_unused) { #ifdef CONFIG_HIGHMEM return (idx == ZONE_HIGHMEM || @@ -854,7 +856,7 @@ * to ZONE_{DMA/NORMAL/HIGHMEM/etc} in general code to a minimum. * @zone - pointer to struct zone variable */ -static inline int is_highmem(struct zone *zone) +static inline int is_highmem(struct zone *zone __maybe_unused) { #ifdef CONFIG_HIGHMEM int zone_off = (char *)zone - (char *)zone->zone_pgdat->node_zones; @@ -871,7 +873,7 @@ return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL; } -static inline int is_dma32(struct zone *zone) +static inline int is_dma32(struct zone *zone __maybe_unused) { #ifdef CONFIG_ZONE_DMA32 return zone == zone->zone_pgdat->node_zones + ZONE_DMA32; @@ -880,7 +882,7 @@ #endif } -static inline int is_dma(struct zone *zone) +static inline int is_dma(struct zone *zone __maybe_unused) { #ifdef CONFIG_ZONE_DMA return zone == zone->zone_pgdat->node_zones + ZONE_DMA; @@ -962,7 +964,7 @@ return zoneref->zone_idx; } -static inline int zonelist_node_idx(struct zoneref *zoneref) +static inline int zonelist_node_idx(struct zoneref *zoneref __maybe_unused) { #ifdef CONFIG_NUMA /* zone_to_nid not available in this context */ @@ -1045,7 +1047,7 @@ #if !defined(CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID) && \ !defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP) -static inline unsigned long early_pfn_to_nid(unsigned long pfn) +static inline unsigned long early_pfn_to_nid(unsigned long pfn __maybe_unused) { return 0; } @@ -1263,8 +1265,9 @@ int memmap_valid_within(unsigned long pfn, struct page *page, struct zone *zone); #else -static inline int memmap_valid_within(unsigned long pfn, - struct page *page, struct zone *zone) +static inline int memmap_valid_within(unsigned long pfn __maybe_unused, + struct page *page __maybe_unused, + struct zone *zone __maybe_unused) { return 1; }