From: David Rientjes Date: Mon, 28 Apr 2008 09:12:34 +0000 (-0700) Subject: mempolicy: small header file cleanup X-Git-Tag: v2.6.26-rc1~984 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3842b46de626d1a3c44ad280d67ab0a4dc047d13;p=linux-2.6-omap-h63xx.git mempolicy: small header file cleanup Removes forward definition of vm_area_struct in linux/mempolicy.h. We already get it from the linux/slab.h -> linux/gfp.h include. Removes the unused mpol_set_vma_default() macro from linux/mempolicy.h. Removes the extern definition of default_policy since it is only referenced, as it should be, in mm/mempolicy.c. Cc: Paul Jackson Cc: Christoph Lameter Cc: Lee Schermerhorn Cc: Andi Kleen Signed-off-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 02b11efd706..319fd342b1b 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -52,7 +52,6 @@ enum { #include #include -struct vm_area_struct; struct mm_struct; #ifdef CONFIG_NUMA @@ -131,10 +130,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) return __mpol_equal(a, b); } -/* Could later add inheritance of the process policy here. */ - -#define mpol_set_vma_default(vma) ((vma)->vm_policy = NULL) - /* * Tree of shared policies for a shared memory region. * Maintain the policies in a pseudo mm that contains vmas. The vmas @@ -170,7 +165,6 @@ extern void mpol_rebind_task(struct task_struct *tsk, extern void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new); extern void mpol_fix_fork_child_flag(struct task_struct *p); -extern struct mempolicy default_policy; extern struct zonelist *huge_zonelist(struct vm_area_struct *vma, unsigned long addr, gfp_t gfp_flags, struct mempolicy **mpol, nodemask_t **nodemask); @@ -196,8 +190,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) return 1; } -#define mpol_set_vma_default(vma) do {} while(0) - static inline void mpol_free(struct mempolicy *p) { }