diff options
author | Guenter Roeck <linux@roeck-us.net> | 2018-07-23 17:47:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-24 08:23:00 -0400 |
commit | 1e81c57b598307c5611410fd357554ffacc6290d (patch) | |
tree | 9b5c7d0e5d45fc98955d61c12bf96a5cd2edc07f /drivers/android | |
parent | a1c4d08b6b95a0e296285ee53cc1438b3f168f98 (diff) |
android: binder_alloc: 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_alloc.c:20:
./arch/sparc/include/asm/cacheflush_32.h:40:37: warning:
'struct page' declared inside parameter list
Moving the asm/ include after linux/ includes fixes 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>
Diffstat (limited to 'drivers/android')
-rw-r--r-- | drivers/android/binder_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index 2628806c64a2..2c258dcf9d72 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c | |||
@@ -17,7 +17,6 @@ | |||
17 | 17 | ||
18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
19 | 19 | ||
20 | #include <asm/cacheflush.h> | ||
21 | #include <linux/list.h> | 20 | #include <linux/list.h> |
22 | #include <linux/sched/mm.h> | 21 | #include <linux/sched/mm.h> |
23 | #include <linux/module.h> | 22 | #include <linux/module.h> |
@@ -28,6 +27,7 @@ | |||
28 | #include <linux/slab.h> | 27 | #include <linux/slab.h> |
29 | #include <linux/sched.h> | 28 | #include <linux/sched.h> |
30 | #include <linux/list_lru.h> | 29 | #include <linux/list_lru.h> |
30 | #include <asm/cacheflush.h> | ||
31 | #include "binder_alloc.h" | 31 | #include "binder_alloc.h" |
32 | #include "binder_trace.h" | 32 | #include "binder_trace.h" |
33 | 33 | ||