mm: fix warnings regarding enum migrate_mode
authorAndrew Morton <[email protected]>
Fri, 20 Jan 2012 22:33:53 +0000 (14:33 -0800)
committerLinus Torvalds <[email protected]>
Mon, 23 Jan 2012 16:38:47 +0000 (08:38 -0800)
commit6536e3123e5d3371a6f52e32a3d0694bcc987702
tree45212bcb96a33d3a40cd1c631d9670a1bae52c2b
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
mm: fix warnings regarding enum migrate_mode

sparc64 allmodconfig:

In file included from include/linux/compat.h:15,
                 from /usr/src/25/arch/sparc/include/asm/siginfo.h:19,
                 from include/linux/signal.h:5,
                 from include/linux/sched.h:73,
                 from arch/sparc/kernel/asm-offsets.c:13:
include/linux/fs.h:618: warning: parameter has incomplete type

It seems that my sparc64 compiler (gcc-3.4.5) doesn't like the forward
declaration of enums.

Fix this by moving the "enum migrate_mode" definition into its own header
file.

Acked-by: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Andy Isaacson <[email protected]>
Cc: Nai Xia <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/fs.h
include/linux/migrate.h
include/linux/migrate_mode.h [new file with mode: 0644]