Skip to contentSkip to conversation

Use min_t() instead of min() in mm/swap_state.c

PATCH New Bob Miller 1 participant 1 message Nov 21, 2002

Subsystems (2)
lore
Share & tools
lore

Bob Miller

author
#0 lore raw

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
diff -Nru a/mm/swap_state.c b/mm/swap_state.c
@@ -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