--- zzzz-none-000/linux-2.6.28.10/include/linux/mmzone.h 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/include/linux/mmzone.h 2010-06-04 14:42:58.000000000 +0000 @@ -157,7 +157,7 @@ return (l == LRU_ACTIVE_ANON || l == LRU_ACTIVE_FILE); } -static inline int is_unevictable_lru(enum lru_list l) +static inline int is_unevictable_lru(enum lru_list l __attribute__ ((unused))) { #ifdef CONFIG_UNEVICTABLE_LRU return (l == LRU_UNEVICTABLE); @@ -656,7 +656,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_NEED_NODE_MEMMAP_SIZE @@ -684,7 +684,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 || @@ -705,7 +705,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; @@ -722,7 +722,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; @@ -731,7 +731,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; @@ -812,7 +812,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 */ @@ -895,7 +895,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; }