diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-05-27 01:25:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-27 02:12:34 +0200 |
commit | f042e707ee671e4beb5389abeb9a1819a2cf5532 (patch) | |
tree | 53164f281453db20bc2978ed6828f01d919f50db /mm/vmscan.c | |
parent | cgroup: remove the ns_cgroup (diff) | |
download | linux-f042e707ee671e4beb5389abeb9a1819a2cf5532.tar.xz linux-f042e707ee671e4beb5389abeb9a1819a2cf5532.zip |
mm: move enum vm_event_item into a standalone header file
enums are problematic because they cannot be forward-declared:
akpm2:/home/akpm> cat t.c
enum foo;
static inline void bar(enum foo f)
{
}
akpm2:/home/akpm> gcc -c t.c
t.c:4: error: parameter 1 ('f') has incomplete type
So move the enum's definition into a standalone header file which can be used
wherever its definition is needed.
Cc: Ying Han <yinghan@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions