--- zzzz-none-000/linux-2.6.28.10/include/linux/swap.h 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/include/linux/swap.h 2014-02-25 10:38:25.000000000 +0000 @@ -227,7 +227,7 @@ extern int zone_reclaim(struct zone *, gfp_t, unsigned int); #else #define zone_reclaim_mode 0 -static inline int zone_reclaim(struct zone *z, gfp_t mask, unsigned int order) +static inline int zone_reclaim(struct zone *z __attribute__((unused)), gfp_t mask __attribute__((unused)), unsigned int order __attribute__((unused))) { return 0; } @@ -243,22 +243,22 @@ extern int scan_unevictable_register_node(struct node *node); extern void scan_unevictable_unregister_node(struct node *node); #else -static inline int page_evictable(struct page *page, - struct vm_area_struct *vma) +static inline int page_evictable(struct page *page __attribute__ ((unused)), + struct vm_area_struct *vma __attribute__ ((unused))) { return 1; } -static inline void scan_mapping_unevictable_pages(struct address_space *mapping) +static inline void scan_mapping_unevictable_pages(struct address_space *mapping __attribute__ ((unused))) { } -static inline int scan_unevictable_register_node(struct node *node) +static inline int scan_unevictable_register_node(struct node *node __attribute__ ((unused))) { return 0; } -static inline void scan_unevictable_unregister_node(struct node *node) { } +static inline void scan_unevictable_unregister_node(struct node *node __attribute__ ((unused))) { } #endif extern int kswapd_run(int nid);