diff options
author | Tang Chen <tangchen@cn.fujitsu.com> | 2013-04-29 18:08:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:38 -0400 |
commit | 6056d619a8ac9eb7ad655a8571323c728ecc0a9b (patch) | |
tree | dce048e8c489c99b1cb5f4ec04e7f8ae29be6072 /drivers/base/memory.c | |
parent | 7a6f93b0a873ad24631088c349e9d1ca3d4cf852 (diff) |
mm: Remove unused parameter of pages_correctly_reserved()
nr_pages is not used in pages_correctly_reserved().
So remove it.
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Reviewed-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Reviewed-by: Wen Congyang <wency@cn.fujitsu.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base/memory.c')
-rw-r--r-- | drivers/base/memory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 65d9799cbb61..14f8a6954da0 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c | |||
@@ -207,8 +207,7 @@ int memory_isolate_notify(unsigned long val, void *v) | |||
207 | * The probe routines leave the pages reserved, just as the bootmem code does. | 207 | * The probe routines leave the pages reserved, just as the bootmem code does. |
208 | * Make sure they're still that way. | 208 | * Make sure they're still that way. |
209 | */ | 209 | */ |
210 | static bool pages_correctly_reserved(unsigned long start_pfn, | 210 | static bool pages_correctly_reserved(unsigned long start_pfn) |
211 | unsigned long nr_pages) | ||
212 | { | 211 | { |
213 | int i, j; | 212 | int i, j; |
214 | struct page *page; | 213 | struct page *page; |
@@ -256,7 +255,7 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t | |||
256 | 255 | ||
257 | switch (action) { | 256 | switch (action) { |
258 | case MEM_ONLINE: | 257 | case MEM_ONLINE: |
259 | if (!pages_correctly_reserved(start_pfn, nr_pages)) | 258 | if (!pages_correctly_reserved(start_pfn)) |
260 | return -EBUSY; | 259 | return -EBUSY; |
261 | 260 | ||
262 | ret = online_pages(start_pfn, nr_pages, online_type); | 261 | ret = online_pages(start_pfn, nr_pages, online_type); |