Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5dbeaf5 authored by David Rientjes's avatar David Rientjes Committed by Ralf Baechle
Browse files

[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: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent fce23031
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1099,12 +1099,12 @@ void adel(void)
 * malloc is needed by gdb client in "call func()", even a private one
 * will make gdb happy
 */
static void * __attribute_used__ malloc(size_t size)
static void __used *malloc(size_t size)
{
	return kmalloc(size, GFP_ATOMIC);
}

static void __attribute_used__ free (void *where)
static void __used free(void *where)
{
	kfree(where);
}
+1 −1
Original line number Diff line number Diff line
@@ -567,7 +567,7 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad,
}

save_static_function(sys32_clone);
__attribute_used__ noinline static int
static int noinline __used
_sys32_clone(nabi_no_regargs struct pt_regs regs)
{
	unsigned long clone_flags;
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ static irqreturn_t rtlx_interrupt(int irq, void *dev_id)
	return IRQ_HANDLED;
}

static __attribute_used__ void dump_rtlx(void)
static void __used dump_rtlx(void)
{
	int i;

+2 −2
Original line number Diff line number Diff line
@@ -167,14 +167,14 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
}

save_static_function(sys_fork);
__attribute_used__ noinline static int
static int __used noinline
_sys_fork(nabi_no_regargs struct pt_regs regs)
{
	return do_fork(SIGCHLD, regs.regs[29], &regs, 0, NULL, NULL);
}

save_static_function(sys_clone);
__attribute_used__ noinline static int
static int __used noinline
_sys_clone(nabi_no_regargs struct pt_regs regs)
{
	unsigned long clone_flags;
+1 −2
Original line number Diff line number Diff line
@@ -154,7 +154,6 @@ struct {
};

static void release_progmem(void *ptr);
/* static __attribute_used__ void dump_vpe(struct vpe * v); */
extern void save_gp_address(unsigned int secbase, unsigned int rel);

/* get the vpe associated with this minor */
@@ -1024,7 +1023,7 @@ static int vpe_elfload(struct vpe * v)
	return 0;
}

__attribute_used__ void dump_vpe(struct vpe * v)
void __used dump_vpe(struct vpe * v)
{
	struct tc *t;

Loading