Because "order" will never be negative in should_compact_retry(),
so just make "order" unsigned int.

Signed-off-by: Pengfei Li <lpf.vec...@gmail.com>
---
 mm/page_alloc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 1432cbcd87cd..7d47af09461f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -839,7 +839,7 @@ static inline struct capture_control *task_capc(struct zone 
*zone)
 
 static inline bool
 compaction_capture(struct capture_control *capc, struct page *page,
-                  int order, int migratetype)
+                  unsigned int order, int migratetype)
 {
        if (!capc || order != capc->cc->order)
                return false;
@@ -870,7 +870,7 @@ static inline struct capture_control *task_capc(struct zone 
*zone)
 
 static inline bool
 compaction_capture(struct capture_control *capc, struct page *page,
-                  int order, int migratetype)
+                  unsigned int order, int migratetype)
 {
        return false;
 }
-- 
2.21.0

Reply via email to