提交 b301aac5 编写于 作者: D Dan Carpenter 提交者: Linus Torvalds

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@mwandaSigned-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NRoss Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3cb9185c
......@@ -122,7 +122,7 @@ enum {
NODE_TAGGED = 2,
};
#define THRASH_SIZE 1000 * 1000
#define THRASH_SIZE (1000 * 1000)
#define N 127
#define BATCH 33
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册