Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: apply recent changes to merged code

Signed-off-by: Paul Mackerras <paulus@samba.org>

+6 -12
+2
arch/powerpc/kernel/of_device.c
··· 4 4 #include <linux/init.h> 5 5 #include <linux/module.h> 6 6 #include <linux/mod_devicetable.h> 7 + #include <linux/slab.h> 8 + 7 9 #include <asm/errno.h> 8 10 #include <asm/of_device.h> 9 11
+1 -1
arch/powerpc/kernel/ptrace.c
··· 248 248 clear_single_step(child); 249 249 } 250 250 251 - int sys_ptrace(long request, long pid, long addr, long data) 251 + long sys_ptrace(long request, long pid, long addr, long data) 252 252 { 253 253 struct task_struct *child; 254 254 int ret = -EPERM;
+2 -2
arch/powerpc/kernel/ptrace32.c
··· 40 40 * in exit.c or in signal.c. 41 41 */ 42 42 43 - int compat_sys_ptrace(int request, int pid, unsigned long addr, 44 - unsigned long data) 43 + long compat_sys_ptrace(int request, int pid, unsigned long addr, 44 + unsigned long data) 45 45 { 46 46 struct task_struct *child; 47 47 int ret = -EPERM;
-4
arch/powerpc/kernel/time.c
··· 70 70 #include <asm/iSeries/HvCallXm.h> 71 71 #endif 72 72 73 - u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES; 74 - 75 - EXPORT_SYMBOL(jiffies_64); 76 - 77 73 /* keep track of when we need to update the rtc */ 78 74 time_t last_rtc_update; 79 75 extern int piranha_simulator;
+1
arch/powerpc/lib/locks.c
··· 17 17 #include <linux/spinlock.h> 18 18 #include <linux/module.h> 19 19 #include <linux/stringify.h> 20 + #include <linux/smp.h> 20 21 21 22 /* waiting for a spinlock... */ 22 23 #if defined(CONFIG_PPC_SPLPAR) || defined(CONFIG_PPC_ISERIES)
-5
arch/powerpc/mm/imalloc.c
··· 300 300 for (p = &imlist ; (tmp = *p) ; p = &tmp->next) { 301 301 if (tmp->addr == addr) { 302 302 *p = tmp->next; 303 - 304 - /* XXX: do we need the lock? */ 305 - spin_lock(&init_mm.page_table_lock); 306 303 unmap_vm_area(tmp); 307 - spin_unlock(&init_mm.page_table_lock); 308 - 309 304 kfree(tmp); 310 305 up(&imlist_sem); 311 306 return;