X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/277b4f4f307b33f0d51359a82e868a1783f4e62f..7a2322730e12e446d203a30cd92f7138d8043e68:/target/linux/generic-2.6/patches-2.6.33/980-vm_exports.patch diff --git a/target/linux/generic-2.6/patches-2.6.33/980-vm_exports.patch b/target/linux/generic-2.6/patches-2.6.33/980-vm_exports.patch index 6eee31d2d..2c3a55201 100644 --- a/target/linux/generic-2.6/patches-2.6.33/980-vm_exports.patch +++ b/target/linux/generic-2.6/patches-2.6.33/980-vm_exports.patch @@ -1,6 +1,14 @@ --- a/mm/shmem.c +++ b/mm/shmem.c -@@ -2620,6 +2620,16 @@ int shmem_lock(struct file *file, int lo +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + static struct vfsmount *shm_mnt; + +@@ -2620,6 +2621,16 @@ int shmem_lock(struct file *file, int lo /* common code */ @@ -17,7 +25,7 @@ /** * shmem_file_setup - get an unlinked file living in tmpfs * @name: name for dentry (to be seen in /proc//maps -@@ -2697,9 +2707,6 @@ int shmem_zero_setup(struct vm_area_stru +@@ -2697,9 +2708,6 @@ int shmem_zero_setup(struct vm_area_stru if (IS_ERR(file)) return PTR_ERR(file); @@ -68,7 +76,7 @@ * 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 +@@ -6171,6 +6171,7 @@ int can_nice(const struct task_struct *p return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur || capable(CAP_SYS_NICE)); }