From: Dan Carpenter Date: Wed, 20 Jul 2016 22:45:03 +0000 (-0700) Subject: testing/radix-tree: fix a macro expansion bug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b301aac5ad67079710a1a7c7b15bf62cddd63295;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git testing/radix-tree: fix a macro expansion bug There are no parentheses around this macro and it causes a problem when we do: index = rand() % THRASH_SIZE; Link: http://lkml.kernel.org/r/20160715210953.GC19522@mwanda Signed-off-by: Dan Carpenter Acked-by: Ross Zwisler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/tools/testing/radix-tree/tag_check.c b/tools/testing/radix-tree/tag_check.c index b7447ceb75e9..b0ac05741750 100644 --- a/tools/testing/radix-tree/tag_check.c +++ b/tools/testing/radix-tree/tag_check.c @@ -122,7 +122,7 @@ enum { NODE_TAGGED = 2, }; -#define THRASH_SIZE 1000 * 1000 +#define THRASH_SIZE (1000 * 1000) #define N 127 #define BATCH 33