OSDN Git Service

android: binder: Include asm/cacheflush.h after linux/ include files
authorGuenter Roeck <linux@roeck-us.net>
Mon, 23 Jul 2018 21:41:38 +0000 (14:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 12:23:00 +0000 (14:23 +0200)
commitf371a7c17aaa47dd7aedc89ef3cd1d5638c03f5e
tree72199ebd1c7fb5ed22a74b1e82fa7daef103736e
parent1e81c57b598307c5611410fd357554ffacc6290d
android: binder: Include asm/cacheflush.h after linux/ include files

If asm/cacheflush.h is included first, the following build warnings are
seen with sparc32 builds.

In file included from arch/sparc/include/asm/cacheflush.h:11:0,
        from drivers/android/binder.c:54:
arch/sparc/include/asm/cacheflush_32.h:40:37: warning:
'struct page' declared inside parameter list will not be visible
outside of this definition or declaration

Moving the asm/ include after linux/ includes solves the problem.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c