diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2020-09-05 02:36:19 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-05 22:14:30 +0300 |
commit | 428fc0aff4e59399ec719ffcc1f7a5d29a4ee476 (patch) | |
tree | 60d6f7ad31d5b56e9c403a5822074098ec3c9fe3 /mm/memory.c | |
parent | e5a59d308f52bb0052af5790c22173651b187465 (diff) | |
download | linux-428fc0aff4e59399ec719ffcc1f7a5d29a4ee476.tar.xz |
include/linux/log2.h: add missing () around n in roundup_pow_of_two()
Otherwise gcc generates warnings if the expression is complicated.
Fixes: 312a0c170945 ("[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/0-v1-8a2697e3c003+41165-log_brackets_jgg@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions