nr_pages is not used in pages_correctly_reserved().
So remove it.

Signed-off-by: Tang Chen <tangc...@cn.fujitsu.com>
Reviewed-by: Wang Shilong <wangsl-f...@cn.fujitsu.com>
Reviewed-by: Wen Congyang <we...@cn.fujitsu.com>
---
 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 a51007b..f926b9c 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -217,8 +217,7 @@ int memory_isolate_notify(unsigned long val, void *v)
  * The probe routines leave the pages reserved, just as the bootmem code does.
  * Make sure they're still that way.
  */
-static bool pages_correctly_reserved(unsigned long start_pfn,
-                                       unsigned long nr_pages)
+static bool pages_correctly_reserved(unsigned long start_pfn)
 {
        int i, j;
        struct page *page;
@@ -266,7 +265,7 @@ memory_block_action(unsigned long phys_index, unsigned long 
action, int online_t
 
        switch (action) {
                case MEM_ONLINE:
-                       if (!pages_correctly_reserved(start_pfn, nr_pages))
+                       if (!pages_correctly_reserved(start_pfn))
                                return -EBUSY;
 
                        ret = online_pages(start_pfn, nr_pages, online_type);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to