]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
next: sh: Fix compile error
authorGuenter Roeck <linux@roeck-us.net>
Wed, 7 Jan 2015 20:32:28 +0000 (12:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:43 +0000 (14:57 -0800)
commit74df55cf12da35361087869e3e4cb7e9e942d4f6
treec4328a673b0dfafb37b5e309f857f2f3fb58a25c
parente1adf6d7f02e9b25ac8bc618c29cae9f0d25cedb
next: sh: Fix compile error

commit 378af02b1aecabb3756e19c0cbb8cdd9c3b9637f upstream.

Commit 927609d622a3 ("kernel: tighten rules for ACCESS ONCE") results in a
compile failure for sh builds with CONFIG_X2TLB enabled.

arch/sh/mm/gup.c: In function 'gup_get_pte':
arch/sh/mm/gup.c:20:2: error: invalid initializer
make[1]: *** [arch/sh/mm/gup.o] Error 1

Replace ACCESS_ONCE with READ_ONCE to fix the problem.

Fixes: 927609d622a3 ("kernel: tighten rules for ACCESS ONCE")
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sh/mm/gup.c