Merge git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6:
parisc: struct device - replace bus_id with dev_name(), dev_set_name()
parisc: fix kernel crash when unwinding a userspace process
parisc: __kernel_time_t is always long

+27 -27
+2 -2
arch/parisc/include/asm/parisc-device.h
··· 42 42 #define to_parisc_driver(d) container_of(d, struct parisc_driver, drv) 43 43 #define parisc_parent(d) to_parisc_device(d->dev.parent) 44 44 45 - static inline char *parisc_pathname(struct parisc_device *d) 45 + static inline const char *parisc_pathname(struct parisc_device *d) 46 46 { 47 - return d->dev.bus_id; 47 + return dev_name(&d->dev); 48 48 } 49 49 50 50 static inline void
+1 -2
arch/parisc/include/asm/posix_types.h
··· 24 24 typedef unsigned long __kernel_size_t; 25 25 typedef long __kernel_ssize_t; 26 26 typedef long __kernel_ptrdiff_t; 27 - typedef long __kernel_time_t; 28 27 #else 29 28 typedef unsigned int __kernel_size_t; 30 29 typedef int __kernel_ssize_t; 31 30 typedef int __kernel_ptrdiff_t; 32 - typedef long __kernel_time_t; 33 31 #endif 32 + typedef long __kernel_time_t; 34 33 typedef char * __kernel_caddr_t; 35 34 36 35 typedef unsigned short __kernel_uid16_t;
+4 -2
arch/parisc/kernel/drivers.c
··· 43 43 EXPORT_SYMBOL(hppa_dma_ops); 44 44 45 45 static struct device root = { 46 - .bus_id = "parisc", 46 + .init_name = "parisc", 47 47 }; 48 48 49 49 static inline int check_dev(struct device *dev) ··· 393 393 static void setup_bus_id(struct parisc_device *padev) 394 394 { 395 395 struct hardware_path path; 396 - char *output = padev->dev.bus_id; 396 + char name[20]; 397 + char *output = name; 397 398 int i; 398 399 399 400 get_node_path(padev->dev.parent, &path); ··· 405 404 output += sprintf(output, "%u:", (unsigned char) path.bc[i]); 406 405 } 407 406 sprintf(output, "%u", (unsigned char) padev->hw_path); 407 + dev_set_name(&padev->dev, name); 408 408 } 409 409 410 410 struct parisc_device * create_tree_node(char id, struct device *parent)
+20 -21
arch/parisc/kernel/traps.c
··· 24 24 #include <linux/init.h> 25 25 #include <linux/interrupt.h> 26 26 #include <linux/console.h> 27 - #include <linux/kallsyms.h> 28 27 #include <linux/bug.h> 29 28 30 29 #include <asm/assembly.h> ··· 50 51 DEFINE_SPINLOCK(pa_dbit_lock); 51 52 #endif 52 53 53 - void parisc_show_stack(struct task_struct *t, unsigned long *sp, 54 + static void parisc_show_stack(struct task_struct *task, unsigned long *sp, 54 55 struct pt_regs *regs); 55 56 56 57 static int printbinary(char *buf, unsigned long x, int nbits) ··· 120 121 121 122 void show_regs(struct pt_regs *regs) 122 123 { 123 - int i; 124 + int i, user; 124 125 char *level; 125 126 unsigned long cr30, cr31; 126 127 127 - level = user_mode(regs) ? KERN_DEBUG : KERN_CRIT; 128 + user = user_mode(regs); 129 + level = user ? KERN_DEBUG : KERN_CRIT; 128 130 129 131 print_gr(level, regs); 130 132 131 133 for (i = 0; i < 8; i += 4) 132 134 PRINTREGS(level, regs->sr, "sr", RFMT, i); 133 135 134 - if (user_mode(regs)) 136 + if (user) 135 137 print_fr(level, regs); 136 138 137 139 cr30 = mfctl(30); ··· 145 145 printk("%s CPU: %8d CR30: " RFMT " CR31: " RFMT "\n", 146 146 level, current_thread_info()->cpu, cr30, cr31); 147 147 printk("%s ORIG_R28: " RFMT "\n", level, regs->orig_r28); 148 - printk(level); 149 - print_symbol(" IAOQ[0]: %s\n", regs->iaoq[0]); 150 - printk(level); 151 - print_symbol(" IAOQ[1]: %s\n", regs->iaoq[1]); 152 - printk(level); 153 - print_symbol(" RP(r2): %s\n", regs->gr[2]); 154 148 155 - parisc_show_stack(current, NULL, regs); 149 + if (user) { 150 + printk("%s IAOQ[0]: " RFMT "\n", level, regs->iaoq[0]); 151 + printk("%s IAOQ[1]: " RFMT "\n", level, regs->iaoq[1]); 152 + printk("%s RP(r2): " RFMT "\n", level, regs->gr[2]); 153 + } else { 154 + printk("%s IAOQ[0]: %pS\n", level, (void *) regs->iaoq[0]); 155 + printk("%s IAOQ[1]: %pS\n", level, (void *) regs->iaoq[1]); 156 + printk("%s RP(r2): %pS\n", level, (void *) regs->gr[2]); 157 + 158 + parisc_show_stack(current, NULL, regs); 159 + } 156 160 } 157 161 158 162 ··· 177 173 break; 178 174 179 175 if (__kernel_text_address(info->ip)) { 180 - printk("%s [<" RFMT ">] ", (i&0x3)==1 ? KERN_CRIT : "", info->ip); 181 - #ifdef CONFIG_KALLSYMS 182 - print_symbol("%s\n", info->ip); 183 - #else 184 - if ((i & 0x03) == 0) 185 - printk("\n"); 186 - #endif 176 + printk(KERN_CRIT " [<" RFMT ">] %pS\n", 177 + info->ip, (void *) info->ip); 187 178 i++; 188 179 } 189 180 } 190 - printk("\n"); 181 + printk(KERN_CRIT "\n"); 191 182 } 192 183 193 - void parisc_show_stack(struct task_struct *task, unsigned long *sp, 184 + static void parisc_show_stack(struct task_struct *task, unsigned long *sp, 194 185 struct pt_regs *regs) 195 186 { 196 187 struct unwind_frame_info info;