Skip to content

Commit

Permalink
testing/radix-tree: fix a macro expansion bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Jul 23, 2016
1 parent 3cb9185 commit b301aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/radix-tree/tag_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ enum {
NODE_TAGGED = 2,
};

#define THRASH_SIZE 1000 * 1000
#define THRASH_SIZE (1000 * 1000)
#define N 127
#define BATCH 33

Expand Down

0 comments on commit b301aac

Please sign in to comment.