diff options
author | 2022-01-14 14:09:56 -0800 | |
---|---|---|
committer | 2022-01-15 16:30:32 +0200 | |
commit | 234d68732b6c135087bdebfa0630a43ae8c27758 (patch) | |
tree | 7e174e17c43fb2e7d2cdd9ca0bd064aa746b6ed1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/damon: move damon_rand() definition into damon.h (diff) | |
download | wireguard-linux-234d68732b6c135087bdebfa0630a43ae8c27758.tar.xz wireguard-linux-234d68732b6c135087bdebfa0630a43ae8c27758.zip |
mm/damon: modify damon_rand() macro to static inline function
damon_rand() cannot be implemented as a macro.
Example:
damon_rand(a++, b);
The value of 'a' will be incremented twice, This is obviously
unreasonable, So there fix it.
Link: https://lkml.kernel.org/r/110ffcd4e420c86c42b41ce2bc9f0fe6a4f32cd3.1638795127.git.xhao@linux.alibaba.com
Fixes: b9a6ac4e4ede ("mm/damon: adaptively adjust regions")
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions