]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/sparse: Constify the address pointer in __get_user_nosleep()
authorDaniel Axtens <dja@axtens.net>
Mon, 30 Jan 2017 06:41:55 +0000 (17:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Feb 2017 05:35:21 +0000 (16:35 +1100)
commit7161b0ba76939599218582254bf50e578621aaa6
tree897d49144e62ec2a01b5f648af629f7f7fe621f6
parentbb97cf63c349a918b282ae725dac45d0b145295d
powerpc/sparse: Constify the address pointer in __get_user_nosleep()

In __get_user_nosleep, we create an intermediate pointer for the
user address we're about to fetch. We currently don't tag this
pointer as const. Make it const, as we are simply dereferencing
it, and it's scope is limited to the __get_user_nosleep macro.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/uaccess.h