diff options
author | davem <davem> | 2001-12-21 00:54:31 +0000 |
---|---|---|
committer | davem <davem> | 2001-12-21 00:54:31 +0000 |
commit | 5f907ab4ffb517db83a4e7b0545cb4def868c4df (patch) | |
tree | 1125dadff3637c9cbb1741da412760b4c86e6de4 | |
parent | 58ddbcbce2f323852e451656ffa2fea89e10ed87 (diff) | |
download | netdev-vger-cvs-5f907ab4ffb517db83a4e7b0545cb4def868c4df.tar.gz |
Sparc32 build fixes for mainline.
-rw-r--r-- | arch/sparc/kernel/devices.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/init_task.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/unaligned.c | 6 | ||||
-rw-r--r-- | drivers/net/myri_code.h | 2 | ||||
-rw-r--r-- | drivers/net/sunqe.c | 3 | ||||
-rw-r--r-- | drivers/video/aty/mach64_accel.c | 2 | ||||
-rw-r--r-- | include/asm-sparc/oplib.h | 5 | ||||
-rw-r--r-- | include/asm-sparc/string.h | 4 |
8 files changed, 18 insertions, 11 deletions
diff --git a/arch/sparc/kernel/devices.c b/arch/sparc/kernel/devices.c index f8a9ea63d..ecd4e6d15 100644 --- a/arch/sparc/kernel/devices.c +++ b/arch/sparc/kernel/devices.c @@ -4,9 +4,10 @@ * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) */ +#include <linux/config.h> #include <linux/kernel.h> #include <linux/threads.h> -#include <linux/config.h> +#include <linux/string.h> #include <linux/init.h> #include <asm/page.h> diff --git a/arch/sparc/kernel/init_task.c b/arch/sparc/kernel/init_task.c index 5633c882f..d6d5e35e5 100644 --- a/arch/sparc/kernel/init_task.c +++ b/arch/sparc/kernel/init_task.c @@ -14,6 +14,6 @@ struct mm_struct init_mm = INIT_MM(init_mm); * If this is not aligned on a 8k boundry, then you should change code * in etrap.S which assumes it. */ -union task_union init_task_union - __attribute__((__section__(".text"))) = +__asm__(".section \".text\",#alloc\n"); +union task_union init_task_union = { INIT_TASK(init_task_union.task) }; diff --git a/arch/sparc/kernel/unaligned.c b/arch/sparc/kernel/unaligned.c index cd5410a89..550326482 100644 --- a/arch/sparc/kernel/unaligned.c +++ b/arch/sparc/kernel/unaligned.c @@ -1,4 +1,4 @@ -/* $Id: unaligned.c,v 1.22 2000-04-29 08:05:21 anton Exp $ +/* $Id: unaligned.c,v 1.23 2001-12-21 00:54:31 davem Exp $ * unaligned.c: Unaligned load/store trap handling with special * cases for the kernel to do them more quickly. * @@ -224,7 +224,7 @@ __asm__ __volatile__ ( \ "or %%l1, %%g7, %%g7\n\t" \ "st %%g7, [%0 + 4]\n" \ "0:\n\n\t" \ - ".section __ex_table\n\t" \ + ".section __ex_table,#alloc\n\t" \ ".word 4b, " #errh "\n\t" \ ".word 5b, " #errh "\n\t" \ ".word 6b, " #errh "\n\t" \ @@ -277,7 +277,7 @@ __asm__ __volatile__ ( \ "16:\t" "stb %%l2, [%0]\n" \ "17:\t" "stb %%l1, [%0 + 1]\n" \ "0:\n\n\t" \ - ".section __ex_table\n\t" \ + ".section __ex_table,#alloc\n\t" \ ".word 4b, " #errh "\n\t" \ ".word 5b, " #errh "\n\t" \ ".word 6b, " #errh "\n\t" \ diff --git a/drivers/net/myri_code.h b/drivers/net/myri_code.h index 18e2642af..851eba8a3 100644 --- a/drivers/net/myri_code.h +++ b/drivers/net/myri_code.h @@ -6284,4 +6284,4 @@ static unsigned char lanai4_data[20472] __initdata = { #define MYRI_NetReceiveBadCrcs 0xB8D4 #define MYRI_NetReceiveBytes 0xB8DC -#endif SYMBOL_DEFINES_COMPILED +#endif /* SYMBOL_DEFINES_COMPILED */ diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c index 21953532f..c1c38f145 100644 --- a/drivers/net/sunqe.c +++ b/drivers/net/sunqe.c @@ -1,4 +1,4 @@ -/* $Id: sunqe.c,v 1.52 2001-10-18 08:18:08 davem Exp $ +/* $Id: sunqe.c,v 1.53 2001-12-21 00:54:31 davem Exp $ * sunqe.c: Sparc QuadEthernet 10baseT SBUS card driver. * Once again I am out to prove that every ethernet * controller out there can be most efficiently programmed @@ -494,6 +494,7 @@ static void qec_interrupt(int irq, void *dev_id, struct pt_regs *regs) spin_unlock(&qep->lock); } next: + ; } qec_status >>= 4; channel++; diff --git a/drivers/video/aty/mach64_accel.c b/drivers/video/aty/mach64_accel.c index 37baf66f2..1252d7334 100644 --- a/drivers/video/aty/mach64_accel.c +++ b/drivers/video/aty/mach64_accel.c @@ -326,7 +326,7 @@ static void name(struct vc_data *conp, struct display *p, args) \ fbcon_cfb##width##_clear_margins(conp, p, bottom_only), \ int bottom_only) \ \ -const struct display_switch fbcon_aty##width## = { \ +const struct display_switch fbcon_aty##width = { \ setup: fbcon_cfb##width##_setup, \ bmove: fbcon_aty_bmove, \ clear: fbcon_aty_clear, \ diff --git a/include/asm-sparc/oplib.h b/include/asm-sparc/oplib.h index eed063b8f..cb1bb06a0 100644 --- a/include/asm-sparc/oplib.h +++ b/include/asm-sparc/oplib.h @@ -1,4 +1,4 @@ -/* $Id: oplib.h,v 1.22 2001-12-19 00:29:51 davem Exp $ +/* $Id: oplib.h,v 1.23 2001-12-21 00:54:31 davem Exp $ * oplib.h: Describes the interface and available routines in the * Linux Prom library. * @@ -298,6 +298,9 @@ extern int prom_inst2pkg(int); /* Dorking with Bus ranges... */ +/* Apply promlib probes OBIO ranges to registers. */ +extern void prom_apply_obio_ranges(struct linux_prom_registers *obioregs, int nregs); + /* Apply ranges of any prom node (and optionally parent node as well) to registers. */ extern void prom_apply_generic_ranges(int node, int parent, struct linux_prom_registers *sbusregs, int nregs); diff --git a/include/asm-sparc/string.h b/include/asm-sparc/string.h index 85629b215..28d542143 100644 --- a/include/asm-sparc/string.h +++ b/include/asm-sparc/string.h @@ -1,4 +1,4 @@ -/* $Id: string.h,v 1.35 2000-05-02 01:47:01 davem Exp $ +/* $Id: string.h,v 1.36 2001-12-21 00:54:31 davem Exp $ * string.h: External definitions for optimized assembly string * routines for the Linux Kernel. * @@ -126,9 +126,11 @@ static inline void *__nonconstant_memset(void *s, char c, __kernel_size_t count) }) #define __HAVE_ARCH_MEMCMP +extern int memcmp(const void *,const void *,__kernel_size_t); /* Now the str*() stuff... */ #define __HAVE_ARCH_STRLEN +extern __kernel_size_t strlen(const char *); #define __HAVE_ARCH_STRNCMP |