aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2007-07-22 04:01:39 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-07-24 11:02:47 -0400
commitf5dbeaf5ed3938beea8e58ee473982a4bcadc172 (patch)
tree1e9b799a4b89ee5499885cd633ecb3a9e7e565d6 /arch/mips/kernel
parentfce2303166a8f214a890bd405e0088febdce765f (diff)
[MIPS] Replace __attribute_used__ with __used
Replaces the deprecated __attribute_used__ with __used. Also makes some style adjustments to abide by the kernel coding conventions. Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/gdb-stub.c4
-rw-r--r--arch/mips/kernel/linux32.c2
-rw-r--r--arch/mips/kernel/rtlx.c2
-rw-r--r--arch/mips/kernel/syscall.c4
-rw-r--r--arch/mips/kernel/vpe.c3
5 files changed, 7 insertions, 8 deletions
diff --git a/arch/mips/kernel/gdb-stub.c b/arch/mips/kernel/gdb-stub.c
index 7bc882049269..cb5623aad552 100644
--- a/arch/mips/kernel/gdb-stub.c
+++ b/arch/mips/kernel/gdb-stub.c
@@ -1099,12 +1099,12 @@ void adel(void)
1099 * malloc is needed by gdb client in "call func()", even a private one 1099 * malloc is needed by gdb client in "call func()", even a private one
1100 * will make gdb happy 1100 * will make gdb happy
1101 */ 1101 */
1102static void * __attribute_used__ malloc(size_t size) 1102static void __used *malloc(size_t size)
1103{ 1103{
1104 return kmalloc(size, GFP_ATOMIC); 1104 return kmalloc(size, GFP_ATOMIC);
1105} 1105}
1106 1106
1107static void __attribute_used__ free (void *where) 1107static void __used free(void *where)
1108{ 1108{
1109 kfree(where); 1109 kfree(where);
1110} 1110}
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c
index 06e04da211d5..c37568d6fb55 100644
--- a/arch/mips/kernel/linux32.c
+++ b/arch/mips/kernel/linux32.c
@@ -567,7 +567,7 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad,
567} 567}
568 568
569save_static_function(sys32_clone); 569save_static_function(sys32_clone);
570__attribute_used__ noinline static int 570static int noinline __used
571_sys32_clone(nabi_no_regargs struct pt_regs regs) 571_sys32_clone(nabi_no_regargs struct pt_regs regs)
572{ 572{
573 unsigned long clone_flags; 573 unsigned long clone_flags;
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c
index bfc8ca168f83..8cf24d716d41 100644
--- a/arch/mips/kernel/rtlx.c
+++ b/arch/mips/kernel/rtlx.c
@@ -85,7 +85,7 @@ static irqreturn_t rtlx_interrupt(int irq, void *dev_id)
85 return IRQ_HANDLED; 85 return IRQ_HANDLED;
86} 86}
87 87
88static __attribute_used__ void dump_rtlx(void) 88static void __used dump_rtlx(void)
89{ 89{
90 int i; 90 int i;
91 91
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c
index b947c61c0cc8..b53f7edbc159 100644
--- a/arch/mips/kernel/syscall.c
+++ b/arch/mips/kernel/syscall.c
@@ -167,14 +167,14 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
167} 167}
168 168
169save_static_function(sys_fork); 169save_static_function(sys_fork);
170__attribute_used__ noinline static int 170static int __used noinline
171_sys_fork(nabi_no_regargs struct pt_regs regs) 171_sys_fork(nabi_no_regargs struct pt_regs regs)
172{ 172{
173 return do_fork(SIGCHLD, regs.regs[29], &regs, 0, NULL, NULL); 173 return do_fork(SIGCHLD, regs.regs[29], &regs, 0, NULL, NULL);
174} 174}
175 175
176save_static_function(sys_clone); 176save_static_function(sys_clone);
177__attribute_used__ noinline static int 177static int __used noinline
178_sys_clone(nabi_no_regargs struct pt_regs regs) 178_sys_clone(nabi_no_regargs struct pt_regs regs)
179{ 179{
180 unsigned long clone_flags; 180 unsigned long clone_flags;
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index 9e66354dee8b..a2bee10f04cf 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -154,7 +154,6 @@ struct {
154}; 154};
155 155
156static void release_progmem(void *ptr); 156static void release_progmem(void *ptr);
157/* static __attribute_used__ void dump_vpe(struct vpe * v); */
158extern void save_gp_address(unsigned int secbase, unsigned int rel); 157extern void save_gp_address(unsigned int secbase, unsigned int rel);
159 158
160/* get the vpe associated with this minor */ 159/* get the vpe associated with this minor */
@@ -1024,7 +1023,7 @@ static int vpe_elfload(struct vpe * v)
1024 return 0; 1023 return 0;
1025} 1024}
1026 1025
1027__attribute_used__ void dump_vpe(struct vpe * v) 1026void __used dump_vpe(struct vpe * v)
1028{ 1027{
1029 struct tc *t; 1028 struct tc *t;
1030 1029