diff options
| author | Steve French <sfrench@us.ibm.com> | 2005-12-31 13:27:22 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2005-12-31 13:27:22 -0500 |
| commit | eea60caef610c7a6c58c0de9c80ae1e438e01301 (patch) | |
| tree | 25e19289bba003fe085e589430d0d981fd6b73a7 /arch/sparc/kernel | |
| parent | da8543ef125afc7bba4da526b61a1ae07dc25109 (diff) | |
| parent | 82c9df820112c6286a8e8fbe482e94b65b49062c (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'arch/sparc/kernel')
| -rw-r--r-- | arch/sparc/kernel/ebus.c | 24 | ||||
| -rw-r--r-- | arch/sparc/kernel/led.c | 2 | ||||
| -rw-r--r-- | arch/sparc/kernel/pcic.c | 2 | ||||
| -rw-r--r-- | arch/sparc/kernel/sys_sunos.c | 2 | ||||
| -rw-r--r-- | arch/sparc/kernel/time.c | 4 | ||||
| -rw-r--r-- | arch/sparc/kernel/vmlinux.lds.S | 18 |
6 files changed, 21 insertions, 31 deletions
diff --git a/arch/sparc/kernel/ebus.c b/arch/sparc/kernel/ebus.c index 1754192c69d0..5c3529ceb5d6 100644 --- a/arch/sparc/kernel/ebus.c +++ b/arch/sparc/kernel/ebus.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #include <asm/oplib.h> | 22 | #include <asm/oplib.h> |
| 23 | #include <asm/bpp.h> | 23 | #include <asm/bpp.h> |
| 24 | 24 | ||
| 25 | struct linux_ebus *ebus_chain = 0; | 25 | struct linux_ebus *ebus_chain = NULL; |
| 26 | 26 | ||
| 27 | /* We are together with pcic.c under CONFIG_PCI. */ | 27 | /* We are together with pcic.c under CONFIG_PCI. */ |
| 28 | extern unsigned int pcic_pin_to_irq(unsigned int, char *name); | 28 | extern unsigned int pcic_pin_to_irq(unsigned int, char *name); |
| @@ -46,7 +46,7 @@ static struct ebus_device_irq je1_1[] = { | |||
| 46 | { "SUNW,CS4231", 0 }, | 46 | { "SUNW,CS4231", 0 }, |
| 47 | { "parallel", 0 }, | 47 | { "parallel", 0 }, |
| 48 | { "se", 2 }, | 48 | { "se", 2 }, |
| 49 | { 0, 0 } | 49 | { NULL, 0 } |
| 50 | }; | 50 | }; |
| 51 | 51 | ||
| 52 | /* | 52 | /* |
| @@ -55,7 +55,7 @@ static struct ebus_device_irq je1_1[] = { | |||
| 55 | */ | 55 | */ |
| 56 | static struct ebus_system_entry ebus_blacklist[] = { | 56 | static struct ebus_system_entry ebus_blacklist[] = { |
| 57 | { "SUNW,JavaEngine1", je1_1 }, | 57 | { "SUNW,JavaEngine1", je1_1 }, |
| 58 | { 0, 0 } | 58 | { NULL, NULL } |
| 59 | }; | 59 | }; |
| 60 | 60 | ||
| 61 | static struct ebus_device_irq *ebus_blackp = NULL; | 61 | static struct ebus_device_irq *ebus_blackp = NULL; |
| @@ -233,7 +233,7 @@ void __init fill_ebus_device(int node, struct linux_ebus_device *dev) | |||
| 233 | ebus_alloc(sizeof(struct linux_ebus_child)); | 233 | ebus_alloc(sizeof(struct linux_ebus_child)); |
| 234 | 234 | ||
| 235 | child = dev->children; | 235 | child = dev->children; |
| 236 | child->next = 0; | 236 | child->next = NULL; |
| 237 | child->parent = dev; | 237 | child->parent = dev; |
| 238 | child->bus = dev->bus; | 238 | child->bus = dev->bus; |
| 239 | fill_ebus_child(node, ®s[0], child); | 239 | fill_ebus_child(node, ®s[0], child); |
| @@ -243,7 +243,7 @@ void __init fill_ebus_device(int node, struct linux_ebus_device *dev) | |||
| 243 | ebus_alloc(sizeof(struct linux_ebus_child)); | 243 | ebus_alloc(sizeof(struct linux_ebus_child)); |
| 244 | 244 | ||
| 245 | child = child->next; | 245 | child = child->next; |
| 246 | child->next = 0; | 246 | child->next = NULL; |
| 247 | child->parent = dev; | 247 | child->parent = dev; |
| 248 | child->bus = dev->bus; | 248 | child->bus = dev->bus; |
| 249 | fill_ebus_child(node, ®s[0], child); | 249 | fill_ebus_child(node, ®s[0], child); |
| @@ -275,7 +275,7 @@ void __init ebus_init(void) | |||
| 275 | } | 275 | } |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | pdev = pci_get_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_EBUS, 0); | 278 | pdev = pci_get_device(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_EBUS, NULL); |
| 279 | if (!pdev) { | 279 | if (!pdev) { |
| 280 | return; | 280 | return; |
| 281 | } | 281 | } |
| @@ -284,7 +284,7 @@ void __init ebus_init(void) | |||
| 284 | 284 | ||
| 285 | ebus_chain = ebus = (struct linux_ebus *) | 285 | ebus_chain = ebus = (struct linux_ebus *) |
| 286 | ebus_alloc(sizeof(struct linux_ebus)); | 286 | ebus_alloc(sizeof(struct linux_ebus)); |
| 287 | ebus->next = 0; | 287 | ebus->next = NULL; |
| 288 | 288 | ||
| 289 | while (ebusnd) { | 289 | while (ebusnd) { |
| 290 | 290 | ||
| @@ -325,8 +325,8 @@ void __init ebus_init(void) | |||
| 325 | ebus_alloc(sizeof(struct linux_ebus_device)); | 325 | ebus_alloc(sizeof(struct linux_ebus_device)); |
| 326 | 326 | ||
| 327 | dev = ebus->devices; | 327 | dev = ebus->devices; |
| 328 | dev->next = 0; | 328 | dev->next = NULL; |
| 329 | dev->children = 0; | 329 | dev->children = NULL; |
| 330 | dev->bus = ebus; | 330 | dev->bus = ebus; |
| 331 | fill_ebus_device(nd, dev); | 331 | fill_ebus_device(nd, dev); |
| 332 | 332 | ||
| @@ -335,8 +335,8 @@ void __init ebus_init(void) | |||
| 335 | ebus_alloc(sizeof(struct linux_ebus_device)); | 335 | ebus_alloc(sizeof(struct linux_ebus_device)); |
| 336 | 336 | ||
| 337 | dev = dev->next; | 337 | dev = dev->next; |
| 338 | dev->next = 0; | 338 | dev->next = NULL; |
| 339 | dev->children = 0; | 339 | dev->children = NULL; |
| 340 | dev->bus = ebus; | 340 | dev->bus = ebus; |
| 341 | fill_ebus_device(nd, dev); | 341 | fill_ebus_device(nd, dev); |
| 342 | } | 342 | } |
| @@ -353,7 +353,7 @@ void __init ebus_init(void) | |||
| 353 | ebus->next = (struct linux_ebus *) | 353 | ebus->next = (struct linux_ebus *) |
| 354 | ebus_alloc(sizeof(struct linux_ebus)); | 354 | ebus_alloc(sizeof(struct linux_ebus)); |
| 355 | ebus = ebus->next; | 355 | ebus = ebus->next; |
| 356 | ebus->next = 0; | 356 | ebus->next = NULL; |
| 357 | ++num_ebus; | 357 | ++num_ebus; |
| 358 | } | 358 | } |
| 359 | if (pdev) | 359 | if (pdev) |
diff --git a/arch/sparc/kernel/led.c b/arch/sparc/kernel/led.c index 2a3afca453c9..313d1620ae8e 100644 --- a/arch/sparc/kernel/led.c +++ b/arch/sparc/kernel/led.c | |||
| @@ -55,7 +55,7 @@ static int led_read_proc(char *buf, char **start, off_t offset, int count, | |||
| 55 | return len; | 55 | return len; |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | static int led_write_proc(struct file *file, const char *buffer, | 58 | static int led_write_proc(struct file *file, const char __user *buffer, |
| 59 | unsigned long count, void *data) | 59 | unsigned long count, void *data) |
| 60 | { | 60 | { |
| 61 | char *buf = NULL; | 61 | char *buf = NULL; |
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c index cccfc12802ed..42002b742deb 100644 --- a/arch/sparc/kernel/pcic.c +++ b/arch/sparc/kernel/pcic.c | |||
| @@ -161,7 +161,7 @@ static struct pcic_sn2list pcic_known_sysnames[] = { | |||
| 161 | static int pcic0_up; | 161 | static int pcic0_up; |
| 162 | static struct linux_pcic pcic0; | 162 | static struct linux_pcic pcic0; |
| 163 | 163 | ||
| 164 | void * __iomem pcic_regs; | 164 | void __iomem *pcic_regs; |
| 165 | volatile int pcic_speculative; | 165 | volatile int pcic_speculative; |
| 166 | volatile int pcic_trapped; | 166 | volatile int pcic_trapped; |
| 167 | 167 | ||
diff --git a/arch/sparc/kernel/sys_sunos.c b/arch/sparc/kernel/sys_sunos.c index 81c894acd0db..d07ae02101ad 100644 --- a/arch/sparc/kernel/sys_sunos.c +++ b/arch/sparc/kernel/sys_sunos.c | |||
| @@ -894,7 +894,7 @@ asmlinkage long sunos_sysconf (int name) | |||
| 894 | ret = ARG_MAX; | 894 | ret = ARG_MAX; |
| 895 | break; | 895 | break; |
| 896 | case _SC_CHILD_MAX: | 896 | case _SC_CHILD_MAX: |
| 897 | ret = CHILD_MAX; | 897 | ret = -1; /* no limit */ |
| 898 | break; | 898 | break; |
| 899 | case _SC_CLK_TCK: | 899 | case _SC_CLK_TCK: |
| 900 | ret = HZ; | 900 | ret = HZ; |
diff --git a/arch/sparc/kernel/time.c b/arch/sparc/kernel/time.c index 24814d58f9e1..7dadcdb4ca42 100644 --- a/arch/sparc/kernel/time.c +++ b/arch/sparc/kernel/time.c | |||
| @@ -49,7 +49,7 @@ DEFINE_SPINLOCK(rtc_lock); | |||
| 49 | enum sparc_clock_type sp_clock_typ; | 49 | enum sparc_clock_type sp_clock_typ; |
| 50 | DEFINE_SPINLOCK(mostek_lock); | 50 | DEFINE_SPINLOCK(mostek_lock); |
| 51 | void __iomem *mstk48t02_regs = NULL; | 51 | void __iomem *mstk48t02_regs = NULL; |
| 52 | static struct mostek48t08 *mstk48t08_regs = NULL; | 52 | static struct mostek48t08 __iomem *mstk48t08_regs = NULL; |
| 53 | static int set_rtc_mmss(unsigned long); | 53 | static int set_rtc_mmss(unsigned long); |
| 54 | static int sbus_do_settimeofday(struct timespec *tv); | 54 | static int sbus_do_settimeofday(struct timespec *tv); |
| 55 | 55 | ||
| @@ -342,7 +342,7 @@ static __inline__ void clock_probe(void) | |||
| 342 | /* XXX r/o attribute is somewhere in r.flags */ | 342 | /* XXX r/o attribute is somewhere in r.flags */ |
| 343 | r.flags = clk_reg[0].which_io; | 343 | r.flags = clk_reg[0].which_io; |
| 344 | r.start = clk_reg[0].phys_addr; | 344 | r.start = clk_reg[0].phys_addr; |
| 345 | mstk48t08_regs = (struct mostek48t08 *) sbus_ioremap(&r, 0, | 345 | mstk48t08_regs = sbus_ioremap(&r, 0, |
| 346 | sizeof(struct mostek48t08), "mk48t08"); | 346 | sizeof(struct mostek48t08), "mk48t08"); |
| 347 | 347 | ||
| 348 | mstk48t02_regs = &mstk48t08_regs->regs; | 348 | mstk48t02_regs = &mstk48t08_regs->regs; |
diff --git a/arch/sparc/kernel/vmlinux.lds.S b/arch/sparc/kernel/vmlinux.lds.S index 38938d2e63aa..346c19a949fd 100644 --- a/arch/sparc/kernel/vmlinux.lds.S +++ b/arch/sparc/kernel/vmlinux.lds.S | |||
| @@ -85,19 +85,9 @@ SECTIONS | |||
| 85 | } | 85 | } |
| 86 | _end = . ; | 86 | _end = . ; |
| 87 | PROVIDE (end = .); | 87 | PROVIDE (end = .); |
| 88 | /* Stabs debugging sections. */ | ||
| 89 | .stab 0 : { *(.stab) } | ||
| 90 | .stabstr 0 : { *(.stabstr) } | ||
| 91 | .stab.excl 0 : { *(.stab.excl) } | ||
| 92 | .stab.exclstr 0 : { *(.stab.exclstr) } | ||
| 93 | .stab.index 0 : { *(.stab.index) } | ||
| 94 | .stab.indexstr 0 : { *(.stab.indexstr) } | ||
| 95 | .comment 0 : { *(.comment) } | ||
| 96 | .debug 0 : { *(.debug) } | ||
| 97 | .debug_srcinfo 0 : { *(.debug_srcinfo) } | ||
| 98 | .debug_aranges 0 : { *(.debug_aranges) } | ||
| 99 | .debug_pubnames 0 : { *(.debug_pubnames) } | ||
| 100 | .debug_sfnames 0 : { *(.debug_sfnames) } | ||
| 101 | .line 0 : { *(.line) } | ||
| 102 | /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) } | 88 | /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) } |
| 89 | |||
| 90 | STABS_DEBUG | ||
| 91 | |||
| 92 | DWARF_DEBUG | ||
| 103 | } | 93 | } |
