[kernel] Add missing symbols to generic 2.6.34 config
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.34 / 980-vm_exports.patch
index 39b2215..6bb4105 100644 (file)
@@ -48,7 +48,7 @@
  {
 --- a/kernel/exit.c
 +++ b/kernel/exit.c
-@@ -508,6 +508,7 @@ struct files_struct *get_files_struct(st
+@@ -514,6 +514,7 @@ struct files_struct *get_files_struct(st
  
        return files;
  }
@@ -56,8 +56,8 @@
  
  void put_files_struct(struct files_struct *files)
  {
-@@ -527,6 +528,7 @@ void put_files_struct(struct files_struc
-               free_fdtable(fdt);
+@@ -535,6 +536,7 @@ void put_files_struct(struct files_struc
+               rcu_read_unlock();
        }
  }
 +EXPORT_SYMBOL_GPL(put_files_struct);
@@ -66,7 +66,7 @@
  {
 --- a/kernel/fork.c
 +++ b/kernel/fork.c
-@@ -169,6 +169,7 @@ void __put_task_struct(struct task_struc
+@@ -177,6 +177,7 @@ void __put_task_struct(struct task_struc
        if (!profile_handoff_task(tsk))
                free_task(tsk);
  }
@@ -76,8 +76,8 @@
   * macro override instead of weak attribute alias, to workaround
 --- a/kernel/sched.c
 +++ b/kernel/sched.c
-@@ -6149,6 +6149,7 @@ int can_nice(const struct task_struct *p
-       return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur ||
+@@ -4357,6 +4357,7 @@ int can_nice(const struct task_struct *p
+       return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) ||
                capable(CAP_SYS_NICE));
  }
 +EXPORT_SYMBOL_GPL(can_nice);
@@ -86,7 +86,7 @@
  
 --- a/mm/memory.c
 +++ b/mm/memory.c
-@@ -1115,6 +1115,7 @@ unsigned long zap_page_range(struct vm_a
+@@ -1203,6 +1203,7 @@ unsigned long zap_page_range(struct vm_a
                tlb_finish_mmu(tlb, address, end);
        return end;
  }
@@ -94,7 +94,7 @@
  
  /**
   * zap_vma_ptes - remove ptes mapping the vma
-@@ -2501,6 +2502,7 @@ int vmtruncate_range(struct inode *inode
+@@ -2596,6 +2597,7 @@ int vmtruncate_range(struct inode *inode
  
        return 0;
  }
                                void *caller)
 --- a/include/linux/mm.h
 +++ b/include/linux/mm.h
-@@ -725,6 +725,7 @@ extern void show_free_areas(void);
+@@ -728,6 +728,7 @@ extern void show_free_areas(void);
  
  int shmem_lock(struct file *file, int lock, struct user_struct *user);
  struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags);
  #ifndef CONFIG_MMU
 --- a/kernel/signal.c
 +++ b/kernel/signal.c
-@@ -1104,6 +1104,7 @@ struct sighand_struct *lock_task_sighand
+@@ -1121,6 +1121,7 @@ struct sighand_struct *lock_task_sighand
  
        return sighand;
  }
This page took 0.030002 seconds and 4 git commands to generate.