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>
  * 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;
 
        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);