Skip to content

Commit 6056d61

Browse files
tang-chentorvalds
authored andcommitted
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>
1 parent 7a6f93b commit 6056d61

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/base/memory.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ int memory_isolate_notify(unsigned long val, void *v)
207207
* The probe routines leave the pages reserved, just as the bootmem code does.
208208
* Make sure they're still that way.
209209
*/
210-
static bool pages_correctly_reserved(unsigned long start_pfn,
211-
unsigned long nr_pages)
210+
static bool pages_correctly_reserved(unsigned long start_pfn)
212211
{
213212
int i, j;
214213
struct page *page;
@@ -256,7 +255,7 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t
256255

257256
switch (action) {
258257
case MEM_ONLINE:
259-
if (!pages_correctly_reserved(start_pfn, nr_pages))
258+
if (!pages_correctly_reserved(start_pfn))
260259
return -EBUSY;
261260

262261
ret = online_pages(start_pfn, nr_pages, online_type);

0 commit comments

Comments
 (0)