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

In __get_user_nocheck, 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_nocheck macro.

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