aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_overflow.c')
-rw-r--r--lib/test_overflow.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/test_overflow.c b/lib/test_overflow.c
index fc680562d8b6..7a4b6f6c5473 100644
--- a/lib/test_overflow.c
+++ b/lib/test_overflow.c
@@ -486,16 +486,17 @@ static int __init test_overflow_shift(void)
486 * Deal with the various forms of allocator arguments. See comments above 486 * Deal with the various forms of allocator arguments. See comments above
487 * the DEFINE_TEST_ALLOC() instances for mapping of the "bits". 487 * the DEFINE_TEST_ALLOC() instances for mapping of the "bits".
488 */ 488 */
489#define alloc010(alloc, arg, sz) alloc(sz, GFP_KERNEL) 489#define alloc_GFP (GFP_KERNEL | __GFP_NOWARN)
490#define alloc011(alloc, arg, sz) alloc(sz, GFP_KERNEL, NUMA_NO_NODE) 490#define alloc010(alloc, arg, sz) alloc(sz, alloc_GFP)
491#define alloc011(alloc, arg, sz) alloc(sz, alloc_GFP, NUMA_NO_NODE)
491#define alloc000(alloc, arg, sz) alloc(sz) 492#define alloc000(alloc, arg, sz) alloc(sz)
492#define alloc001(alloc, arg, sz) alloc(sz, NUMA_NO_NODE) 493#define alloc001(alloc, arg, sz) alloc(sz, NUMA_NO_NODE)
493#define alloc110(alloc, arg, sz) alloc(arg, sz, GFP_KERNEL) 494#define alloc110(alloc, arg, sz) alloc(arg, sz, alloc_GFP)
494#define free0(free, arg, ptr) free(ptr) 495#define free0(free, arg, ptr) free(ptr)
495#define free1(free, arg, ptr) free(arg, ptr) 496#define free1(free, arg, ptr) free(arg, ptr)
496 497
497/* Wrap around to 8K */ 498/* Wrap around to 16K */
498#define TEST_SIZE (9 << PAGE_SHIFT) 499#define TEST_SIZE (5 * 4096)
499 500
500#define DEFINE_TEST_ALLOC(func, free_func, want_arg, want_gfp, want_node)\ 501#define DEFINE_TEST_ALLOC(func, free_func, want_arg, want_gfp, want_node)\
501static int __init test_ ## func (void *arg) \ 502static int __init test_ ## func (void *arg) \