diff options
Diffstat (limited to 'arch/sparc')
| -rw-r--r-- | arch/sparc/Kconfig | 4 | ||||
| -rw-r--r-- | arch/sparc/Makefile | 2 | ||||
| -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 | ||||
| -rw-r--r-- | arch/sparc/lib/atomic32.c | 1 | ||||
| -rw-r--r-- | arch/sparc/mm/sun4c.c | 2 |
10 files changed, 27 insertions, 34 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 3cfb8be3ff6d..56c34e7fd4ee 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
| @@ -55,6 +55,10 @@ config NR_CPUS | |||
| 55 | depends on SMP | 55 | depends on SMP |
| 56 | default "32" | 56 | default "32" |
| 57 | 57 | ||
| 58 | config SPARC | ||
| 59 | bool | ||
| 60 | default y | ||
| 61 | |||
| 58 | # Identify this as a Sparc32 build | 62 | # Identify this as a Sparc32 build |
| 59 | config SPARC32 | 63 | config SPARC32 |
| 60 | bool | 64 | bool |
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index dea48f6cff38..4cdbb2d59ed0 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile | |||
| @@ -34,7 +34,7 @@ libs-y += arch/sparc/prom/ arch/sparc/lib/ | |||
| 34 | # Renaming is done to avoid confusing pattern matching rules in 2.5.45 (multy-) | 34 | # Renaming is done to avoid confusing pattern matching rules in 2.5.45 (multy-) |
| 35 | INIT_Y := $(patsubst %/, %/built-in.o, $(init-y)) | 35 | INIT_Y := $(patsubst %/, %/built-in.o, $(init-y)) |
| 36 | CORE_Y := $(core-y) | 36 | CORE_Y := $(core-y) |
| 37 | CORE_Y += kernel/ mm/ fs/ ipc/ security/ crypto/ | 37 | CORE_Y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ |
| 38 | CORE_Y := $(patsubst %/, %/built-in.o, $(CORE_Y)) | 38 | CORE_Y := $(patsubst %/, %/built-in.o, $(CORE_Y)) |
| 39 | DRIVERS_Y := $(patsubst %/, %/built-in.o, $(drivers-y)) | 39 | DRIVERS_Y := $(patsubst %/, %/built-in.o, $(drivers-y)) |
| 40 | NET_Y := $(patsubst %/, %/built-in.o, $(net-y)) | 40 | NET_Y := $(patsubst %/, %/built-in.o, $(net-y)) |
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 | } |
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c index cb3cf0f22822..de84f8534bac 100644 --- a/arch/sparc/lib/atomic32.c +++ b/arch/sparc/lib/atomic32.c | |||
| @@ -66,7 +66,6 @@ int atomic_add_unless(atomic_t *v, int a, int u) | |||
| 66 | return ret != u; | 66 | return ret != u; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr) | ||
| 70 | /* Atomic operations are already serializing */ | 69 | /* Atomic operations are already serializing */ |
| 71 | void atomic_set(atomic_t *v, int i) | 70 | void atomic_set(atomic_t *v, int i) |
| 72 | { | 71 | { |
diff --git a/arch/sparc/mm/sun4c.c b/arch/sparc/mm/sun4c.c index 1d560390e282..731f19603cad 100644 --- a/arch/sparc/mm/sun4c.c +++ b/arch/sparc/mm/sun4c.c | |||
| @@ -497,7 +497,7 @@ static void __init sun4c_probe_mmu(void) | |||
| 497 | patch_kernel_fault_handler(); | 497 | patch_kernel_fault_handler(); |
| 498 | } | 498 | } |
| 499 | 499 | ||
| 500 | volatile unsigned long *sun4c_memerr_reg = NULL; | 500 | volatile unsigned long __iomem *sun4c_memerr_reg = NULL; |
| 501 | 501 | ||
| 502 | void __init sun4c_probe_memerr_reg(void) | 502 | void __init sun4c_probe_memerr_reg(void) |
| 503 | { | 503 | { |
