- fix-mempolicyh-build-error.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Fix mempolicy.h build error

has been removed from the -mm tree.  Its filename is

     fix-mempolicyh-build-error.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Fix mempolicy.h build error
From: Ralf Baechle <ralf@xxxxxxxxxxxxxx>


<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@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/mempolicy.h |    1 +
 1 file changed, 1 insertion(+)

diff -puN include/linux/mempolicy.h~fix-mempolicyh-build-error include/linux/mempolicy.h
--- devel/include/linux/mempolicy.h~fix-mempolicyh-build-error	2006-06-08 00:31:49.000000000 -0700
+++ devel-akpm/include/linux/mempolicy.h	2006-06-08 00:31:49.000000000 -0700
@@ -36,6 +36,7 @@
 #include <linux/nodemask.h>
 
 struct vm_area_struct;
+struct mm_struct;
 
 #ifdef CONFIG_NUMA
 
_

Patches currently in -mm which might be from ralf@xxxxxxxxxxxxxx are

origin.patch
git-mips.patch
gregkh-pci-pci-64-bit-resources-core-changes-mips-fix.patch
au1550-1200-add-missing-psc-defines-make-oss-driver-use.patch
n32-sigset-and-__compat_endian_swap__.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux