testing/radix-tree: fix a macro expansion bug
authorDan Carpenter <[email protected]>
Wed, 20 Jul 2016 22:45:03 +0000 (15:45 -0700)
committerLinus Torvalds <[email protected]>
Sat, 23 Jul 2016 01:25:54 +0000 (10:25 +0900)
commitb301aac5ad67079710a1a7c7b15bf62cddd63295
tree6f1518f628152516fb04aab86c48fbee16e55f43
parent3cb9185c67304b2a7ea9be73e7d13df6fb2793a1
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 <[email protected]>
Acked-by: Ross Zwisler <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/radix-tree/tag_check.c