linux/include
Xin Hao 70ff0aeea7 UPSTREAM: 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: b9a6ac4e4e ("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>

(cherry picked from commit 234d68732b)

Bug: 228223814
Signed-off-by: Hailong Tu <tuhailong@oppo.com>
Change-Id: Idcc316e6f582959254111fb160d04875d235c306
2022-04-28 23:09:18 +08:00
..
acpi ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions 2022-01-27 10:54:18 +01:00
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux UPSTREAM: mm/damon: modify damon_rand() macro to static inline function 2022-04-28 23:09:18 +08:00
math-emu
media
memory
misc
net This is the 5.10.101 stable release 2022-02-16 15:16:06 +01:00
pcmcia
ras
rdma
scsi
soc
sound
target
trace UPSTREAM: mm/damon: add 'age' of region tracepoint support 2022-04-28 23:09:18 +08:00
uapi This is the 5.10.101 stable release 2022-02-16 15:16:06 +01:00
vdso
video
xen