Use min_t() instead of min() in mm/swap_state.c
Subsystems (2)
PATCH 1/1 Use min_t() instead of min() in mm/swap_state.c
This change removes a "duplicate 'const'" compiler warning.
mm/swap_state.c +1 -1
@@ -296,7 +296,7 @@struct page **pagep = pages;while (nr) { -int todo =min (chunk, nr); + int todo = min_t(const int, chunk, nr);int i;for (i =0 ; i < todo; i++)
Signature · 2 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17