undo_isolate_page_range() never fails, so no need to return value.
Unified · Split
| @@ -50,7 +50,7 @@ start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, · 49 unmodified lines | ||
| 50 | 50 | * Changes MIGRATE_ISOLATE to MIGRATE_MOVABLE. |
| 51 | 51 | * target range is [start_pfn, end_pfn) |
| 52 | 52 | */ |
| 53 | −int | |
| 53 | +void | |
| 54 | 54 | undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, |
| 55 | 55 | unsigned migratetype); |
| 56 | 56 | |
| @@ -230,7 +230,7 @@ undo: · 229 unmodified lines | ||
| 230 | 230 | /* |
| 231 | 231 | * Make isolated pages available again. |
| 232 | 232 | */ |
| 233 | −int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, | |
| 233 | +void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, | |
| 234 | 234 | unsigned migratetype) |
| 235 | 235 | { |
| 236 | 236 | unsigned long pfn; |
| @@ -247,7 +247,6 @@ int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, · 10 unmodified lines | ||
| 247 | 247 | continue; |
| 248 | 248 | unset_migratetype_isolate(page, migratetype); |
| 249 | 249 | } |
| 250 | − return 0; | |
| 251 | 250 | } |
| 252 | 251 | /* |
| 253 | 252 | * Test all pages in the range is free(means isolated) or not. |