summaryrefslogtreecommitdiff
path: root/lib/test_vmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_vmalloc.c')
-rw-r--r--lib/test_vmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c
index 5ed369a92c75..876c72c18a0c 100644
--- a/lib/test_vmalloc.c
+++ b/lib/test_vmalloc.c
@@ -396,7 +396,7 @@ vm_map_ram_test(void)
int i;
map_nr_pages = nr_pages > 0 ? nr_pages:1;
- pages = kzalloc_objs(struct page *, map_nr_pages, GFP_KERNEL);
+ pages = kzalloc_objs(struct page *, map_nr_pages);
if (!pages)
return -1;
@@ -542,7 +542,7 @@ init_test_configuration(void)
nr_threads = clamp(nr_threads, 1, (int) USHRT_MAX);
/* Allocate the space for test instances. */
- tdriver = kvzalloc_objs(*tdriver, nr_threads, GFP_KERNEL);
+ tdriver = kvzalloc_objs(*tdriver, nr_threads);
if (tdriver == NULL)
return -1;