--- zzzz-none-000/linux-2.6.39.4/include/linux/compaction.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/compaction.h 2021-11-10 13:23:10.000000000 +0000 @@ -57,29 +57,36 @@ } #else -static inline unsigned long try_to_compact_pages(struct zonelist *zonelist, - int order, gfp_t gfp_mask, nodemask_t *nodemask, - bool sync) +static inline unsigned long try_to_compact_pages( + struct zonelist *zonelist __maybe_unused, + int order __maybe_unused, + gfp_t gfp_mask __maybe_unused, + nodemask_t * nodemask __maybe_unused, + bool sync __maybe_unused) { return COMPACT_CONTINUE; } -static inline unsigned long compaction_suitable(struct zone *zone, int order) +static inline unsigned long compaction_suitable( + struct zone *zone __maybe_unused, + int order __maybe_unused) { return COMPACT_SKIPPED; } -static inline unsigned long compact_zone_order(struct zone *zone, int order, - gfp_t gfp_mask, bool sync) +static inline unsigned long compact_zone_order(struct zone *zone __maybe_unused, + int order __maybe_unused, + gfp_t gfp_mask __maybe_unused, + bool sync __maybe_unused) { return COMPACT_CONTINUE; } -static inline void defer_compaction(struct zone *zone) +static inline void defer_compaction(struct zone *zone __maybe_unused) { } -static inline bool compaction_deferred(struct zone *zone) +static inline bool compaction_deferred(struct zone *zone __maybe_unused) { return 1; } @@ -92,12 +99,12 @@ #else -static inline int compaction_register_node(struct node *node) +static inline int compaction_register_node(struct node *node __maybe_unused) { return 0; } -static inline void compaction_unregister_node(struct node *node) +static inline void compaction_unregister_node(struct node *node __maybe_unused) { } #endif /* CONFIG_COMPACTION && CONFIG_SYSFS && CONFIG_NUMA */