diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-07-20 18:45:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-22 21:25:54 -0400 |
commit | b301aac5ad67079710a1a7c7b15bf62cddd63295 (patch) | |
tree | 6f1518f628152516fb04aab86c48fbee16e55f43 | |
parent | 3cb9185c67304b2a7ea9be73e7d13df6fb2793a1 (diff) |
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 <dan.carpenter@oracle.com>
Acked-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | tools/testing/radix-tree/tag_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
122 | NODE_TAGGED = 2, | 122 | NODE_TAGGED = 2, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | #define THRASH_SIZE 1000 * 1000 | 125 | #define THRASH_SIZE (1000 * 1000) |
126 | #define N 127 | 126 | #define N 127 |
127 | #define BATCH 33 | 127 | #define BATCH 33 |
128 | 128 | ||