powerpc/sparse: Constify the address pointer in __get_user_check()
authorDaniel Axtens <dja@axtens.net>
Mon, 30 Jan 2017 06:41:53 +0000 (17:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Feb 2017 05:35:11 +0000 (16:35 +1100)
commitf84ed59a612d866cde0bd17ad2a52acb524d44c9
treebb4263e4b42cb6b9aa127688bacf1f7c66ae1efe
parent0b1c764339ef35dccaa49d8466ec2bb08362c233
powerpc/sparse: Constify the address pointer in __get_user_check()

In __get_user_check, 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_check macro.

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