--- zzzz-none-000/linux-2.6.39.4/include/linux/mmzone.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/mmzone.h 2021-11-10 13:38:17.000000000 +0000 @@ -672,7 +672,7 @@ #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 __attribute__((unused)), unsigned long start __attribute__((unused)), unsigned long end __attribute__((unused))) {} #endif #ifdef CONFIG_HAVE_MEMORYLESS_NODES @@ -706,7 +706,7 @@ #endif } -static inline int is_highmem_idx(enum zone_type idx) +static inline int is_highmem_idx(enum zone_type idx __attribute__((unused))) { #ifdef CONFIG_HIGHMEM return (idx == ZONE_HIGHMEM || @@ -727,7 +727,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 __attribute__((unused))) { #ifdef CONFIG_HIGHMEM int zone_off = (char *)zone - (char *)zone->zone_pgdat->node_zones; @@ -744,7 +744,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 __attribute__((unused))) { #ifdef CONFIG_ZONE_DMA32 return zone == zone->zone_pgdat->node_zones + ZONE_DMA32; @@ -753,7 +753,7 @@ #endif } -static inline int is_dma(struct zone *zone) +static inline int is_dma(struct zone *zone __attribute__((unused))) { #ifdef CONFIG_ZONE_DMA return zone == zone->zone_pgdat->node_zones + ZONE_DMA; @@ -835,7 +835,7 @@ return zoneref->zone_idx; } -static inline int zonelist_node_idx(struct zoneref *zoneref) +static inline int zonelist_node_idx(struct zoneref *zoneref __attribute__((unused))) { #ifdef CONFIG_NUMA /* zone_to_nid not available in this context */ @@ -918,7 +918,7 @@ #if !defined(CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID) && \ !defined(CONFIG_ARCH_POPULATES_NODE_MAP) -static inline unsigned long early_pfn_to_nid(unsigned long pfn) +static inline unsigned long early_pfn_to_nid(unsigned long pfn __attribute__((unused))) { return 0; } @@ -1130,11 +1130,11 @@ * the zone and PFN linkages are still valid. This is expensive, but walkers * of the full memmap are extremely rare. */ -int memmap_valid_within(unsigned long pfn, - struct page *page, struct zone *zone); +int memmap_valid_within(unsigned long pfn __attribute__((unused)), + struct page *page __attribute__((unused)), struct zone *zone __attribute__((unused))); #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 __attribute__((unused)), + struct page *page __attribute__((unused)), struct zone *zone __attribute__((unused))) { return 1; }