]> git.baikalelectronics.ru Git - kernel.git/commit
nds32: Fix get_user/put_user macro expand pointer problem
authorZong Li <zong@andestech.com>
Mon, 13 Aug 2018 06:48:49 +0000 (14:48 +0800)
committerGreentime Hu <greentime@andestech.com>
Tue, 4 Sep 2018 06:45:16 +0000 (14:45 +0800)
commit9f15dcebc3caaf89ba96e2a766350ca13d8099f1
tree0c21be7d20b1f6d1e1368ab43df39a68797c98f0
parent2da4ea49417cd1b85b9c79eda5619e42ce2b1985
nds32: Fix get_user/put_user macro expand pointer problem

The pointer argument of macro need to be taken out once first, and then
use the new pointer in the macro body.

In kernel/trace/trace.c, get_user(ch, ubuf++) causes the unexpected
increment after expand the macro.

Signed-off-by: Zong Li <zong@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/include/asm/uaccess.h