make struct mempolicy.c:default_policy static
Subsystems (2)
PATCH 1/1 make struct mempolicy.c:default_policy static
This patch makes the needlessly global struct default_policy static.
Signed-off-by Adrian Bunk <[email protected]>
---
This patch has been sent on:
- 22 Feb 2008
4a69fc08292ebe8b7d202436a71926950a980c21 diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 59c4865..fd20b03 100644
include/linux/mempolicy.h +0 -1
@@ -149,7 +149,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);extern unsigned slab_node (struct mempolicy *policy);
mm/mempolicy.c +1 -1
@@ -105,7 +105,7 @@ static struct kmem_cache *sn_cache;policied. */ enum zone_type policy_zone =0 ; -struct mempolicy default_policy = { +static struct mempolicy default_policy = { .refcnt =ATOMIC_INIT (1 ),/* never free it */ .policy =MPOL_DEFAULT , };