Commit 8b7ee204 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kill warning in vmscan.c

Make the "duplicate const" warning go away.  Arguably a compiler bug...
parent d89ff79e
...@@ -294,7 +294,7 @@ void free_page_and_swap_cache(struct page *page) ...@@ -294,7 +294,7 @@ void free_page_and_swap_cache(struct page *page)
*/ */
void free_pages_and_swap_cache(struct page **pages, int nr) void free_pages_and_swap_cache(struct page **pages, int nr)
{ {
const int chunk = 16; int chunk = 16;
struct page **pagep = pages; struct page **pagep = pages;
lru_add_drain(); lru_add_drain();
......
...@@ -757,7 +757,7 @@ shrink_zone(struct zone *zone, int max_scan, unsigned int gfp_mask, ...@@ -757,7 +757,7 @@ shrink_zone(struct zone *zone, int max_scan, unsigned int gfp_mask,
*/ */
static int static int
shrink_caches(struct zone *classzone, int priority, int *total_scanned, shrink_caches(struct zone *classzone, int priority, int *total_scanned,
int gfp_mask, const int nr_pages, struct page_state *ps) int gfp_mask, int nr_pages, struct page_state *ps)
{ {
struct zone *first_classzone; struct zone *first_classzone;
struct zone *zone; struct zone *zone;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment