Files
kernel-tenderloin-3.0/include/linux
Ralf Baechle 45b35a5ced [PATCH] Fix mempolicy.h build error
From: Ralf Baechle <ralf@linux-mips.org>

<linux/mempolicy.h> uses struct mm_struct and relies on a definition or
declaration somehow magically being dragged in which may result in a
build:

[...]
  CC      mm/mempolicy.o
In file included from mm/mempolicy.c:69:
include/linux/mempolicy.h:150: warning: ‘struct mm_struct’ declared inside parameter list
include/linux/mempolicy.h:150: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/mempolicy.h:175: warning: ‘struct mm_struct’ declared inside parameter list
mm/mempolicy.c:622: error: conflicting types for ‘do_migrate_pages’
include/linux/mempolicy.h:175: error: previous declaration of ‘do_migrate_pages’ was here
mm/mempolicy.c:1661: error: conflicting types for ‘mpol_rebind_mm’
include/linux/mempolicy.h:150: error: previous declaration of ‘mpol_rebind_mm’ was here
make[1]: *** [mm/mempolicy.o] Error 1
make: *** [mm] Error 2
[ralf@denk linux-ip35]$

Including <linux/sched.h> is a step into direction of include hell so
fixed by adding a forward declaration of struct mm_struct instead.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-08 15:12:21 -07:00
..
2006-01-08 20:14:02 -08:00
2006-03-21 08:52:18 -08:00
2006-03-31 12:18:48 -08:00
2005-11-13 18:14:17 -08:00
2006-05-01 06:10:04 -04:00
2006-01-13 09:12:21 -08:00
2005-10-04 13:22:01 -07:00
2005-09-10 10:06:21 -07:00
2006-03-24 07:33:20 -08:00
2006-03-28 09:16:05 -08:00
2006-03-23 07:38:09 -08:00
2005-09-10 10:16:27 -07:00
2006-03-27 08:44:59 -08:00
2006-01-08 20:14:02 -08:00
2006-03-27 08:44:59 -08:00
2006-01-08 20:13:49 -08:00
2005-11-05 21:00:02 -05:00
2006-03-31 12:18:54 -08:00
2006-01-18 19:20:29 -08:00
2006-04-02 00:08:05 -05:00
2005-11-10 02:26:41 +01:00
2006-04-11 06:18:35 -07:00
2006-01-14 18:27:09 -08:00
2006-03-26 08:56:56 -08:00
2006-03-27 08:44:51 -08:00
2005-11-08 17:14:08 +01:00
2005-11-08 09:40:47 -08:00
2005-08-29 16:01:32 -07:00
2005-09-19 15:41:28 -07:00
2006-03-20 17:09:11 -08:00
2005-08-29 16:01:32 -07:00
2006-03-20 22:41:23 -08:00
2006-01-06 13:24:54 -08:00
2006-02-01 08:53:13 -08:00
2006-02-08 01:03:52 -05:00
2006-01-06 13:24:29 -08:00
2006-03-26 08:56:56 -08:00
2006-03-20 22:21:10 -08:00
2005-11-07 14:18:56 +01:00
2005-09-17 11:50:02 -07:00
2005-10-08 15:00:57 -07:00
2006-04-27 13:08:56 -07:00
2006-03-23 07:38:12 -08:00
2005-10-30 17:37:17 -08:00
2006-04-29 18:33:15 -07:00
2006-03-23 07:38:12 -08:00
2006-06-05 12:29:17 -07:00
2005-10-28 08:16:47 -07:00
2005-09-14 08:46:21 -04:00
2006-03-22 07:53:57 -08:00
2006-06-05 12:29:16 -07:00
2006-03-23 07:38:13 -08:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
2006-03-20 13:44:40 -05:00
2006-03-20 13:44:27 -05:00
2006-04-11 06:18:39 -07:00
2006-05-22 13:56:02 -04:00
2006-03-08 14:14:01 -08:00
2006-01-15 02:12:54 +01:00
2006-03-27 08:44:48 -08:00
2006-05-04 06:55:12 +02:00
2006-03-25 08:22:51 -08:00
2006-03-25 08:22:53 -08:00
2005-11-07 07:53:46 -08:00
2006-03-27 08:44:51 -08:00
2005-10-30 11:14:39 +11:00
2006-01-08 20:14:02 -08:00
2006-05-01 06:09:56 -04:00
2005-11-07 07:53:41 -08:00
2006-03-23 07:38:12 -08:00
2005-10-30 17:37:32 -08:00
2006-04-02 00:08:05 -05:00
2005-11-07 07:53:37 -08:00
2006-01-14 18:27:13 -08:00
2006-03-20 22:41:23 -08:00
2006-03-28 09:16:05 -08:00
2005-09-10 10:06:21 -07:00
2005-09-05 00:05:45 -07:00
2005-10-30 17:37:32 -08:00
2005-09-18 00:18:32 -07:00
2006-03-26 08:57:03 -08:00
2006-03-31 12:18:56 -08:00
2006-01-12 14:06:38 -08:00
2006-01-10 08:01:59 -08:00
2006-03-23 07:38:11 -08:00
2006-03-26 08:57:00 -08:00
2006-03-23 07:38:14 -08:00
2006-03-28 09:16:05 -08:00
2005-10-29 21:40:35 -07:00
2005-11-07 07:53:41 -08:00
2006-03-23 07:12:57 -05:00
2006-01-10 08:01:57 -08:00