[MIPS] Scatter a bunch of __init over tlbex.c.

Found by make buildcheck.
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle 2006-03-08 15:37:26 +00:00
parent 3367fd5075
commit 1443e483e3
1 changed files with 17 additions and 17 deletions

View File

@ -280,69 +280,69 @@ static void __init build_insn(u32 **buf, enum opcode opc, ...)
} }
#define I_u1u2u3(op) \ #define I_u1u2u3(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
unsigned int b, unsigned int c) \ unsigned int b, unsigned int c) \
{ \ { \
build_insn(buf, insn##op, a, b, c); \ build_insn(buf, insn##op, a, b, c); \
} }
#define I_u2u1u3(op) \ #define I_u2u1u3(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
unsigned int b, unsigned int c) \ unsigned int b, unsigned int c) \
{ \ { \
build_insn(buf, insn##op, b, a, c); \ build_insn(buf, insn##op, b, a, c); \
} }
#define I_u3u1u2(op) \ #define I_u3u1u2(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
unsigned int b, unsigned int c) \ unsigned int b, unsigned int c) \
{ \ { \
build_insn(buf, insn##op, b, c, a); \ build_insn(buf, insn##op, b, c, a); \
} }
#define I_u1u2s3(op) \ #define I_u1u2s3(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
unsigned int b, signed int c) \ unsigned int b, signed int c) \
{ \ { \
build_insn(buf, insn##op, a, b, c); \ build_insn(buf, insn##op, a, b, c); \
} }
#define I_u2s3u1(op) \ #define I_u2s3u1(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
signed int b, unsigned int c) \ signed int b, unsigned int c) \
{ \ { \
build_insn(buf, insn##op, c, a, b); \ build_insn(buf, insn##op, c, a, b); \
} }
#define I_u2u1s3(op) \ #define I_u2u1s3(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
unsigned int b, signed int c) \ unsigned int b, signed int c) \
{ \ { \
build_insn(buf, insn##op, b, a, c); \ build_insn(buf, insn##op, b, a, c); \
} }
#define I_u1u2(op) \ #define I_u1u2(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
unsigned int b) \ unsigned int b) \
{ \ { \
build_insn(buf, insn##op, a, b); \ build_insn(buf, insn##op, a, b); \
} }
#define I_u1s2(op) \ #define I_u1s2(op) \
static inline void i##op(u32 **buf, unsigned int a, \ static inline void __init i##op(u32 **buf, unsigned int a, \
signed int b) \ signed int b) \
{ \ { \
build_insn(buf, insn##op, a, b); \ build_insn(buf, insn##op, a, b); \
} }
#define I_u1(op) \ #define I_u1(op) \
static inline void i##op(u32 **buf, unsigned int a) \ static inline void __init i##op(u32 **buf, unsigned int a) \
{ \ { \
build_insn(buf, insn##op, a); \ build_insn(buf, insn##op, a); \
} }
#define I_0(op) \ #define I_0(op) \
static inline void i##op(u32 **buf) \ static inline void __init i##op(u32 **buf) \
{ \ { \
build_insn(buf, insn##op); \ build_insn(buf, insn##op); \
} }
@ -623,42 +623,42 @@ static __init int __attribute__((unused)) insn_has_bdelay(struct reloc *rel,
} }
/* convenience functions for labeled branches */ /* convenience functions for labeled branches */
static void __attribute__((unused)) il_bltz(u32 **p, struct reloc **r, static void __init __attribute__((unused))
unsigned int reg, enum label_id l) il_bltz(u32 **p, struct reloc **r, unsigned int reg, enum label_id l)
{ {
r_mips_pc16(r, *p, l); r_mips_pc16(r, *p, l);
i_bltz(p, reg, 0); i_bltz(p, reg, 0);
} }
static void __attribute__((unused)) il_b(u32 **p, struct reloc **r, static void __init __attribute__((unused)) il_b(u32 **p, struct reloc **r,
enum label_id l) enum label_id l)
{ {
r_mips_pc16(r, *p, l); r_mips_pc16(r, *p, l);
i_b(p, 0); i_b(p, 0);
} }
static void il_beqz(u32 **p, struct reloc **r, unsigned int reg, static void __init il_beqz(u32 **p, struct reloc **r, unsigned int reg,
enum label_id l) enum label_id l)
{ {
r_mips_pc16(r, *p, l); r_mips_pc16(r, *p, l);
i_beqz(p, reg, 0); i_beqz(p, reg, 0);
} }
static void __attribute__((unused)) static void __init __attribute__((unused))
il_beqzl(u32 **p, struct reloc **r, unsigned int reg, enum label_id l) il_beqzl(u32 **p, struct reloc **r, unsigned int reg, enum label_id l)
{ {
r_mips_pc16(r, *p, l); r_mips_pc16(r, *p, l);
i_beqzl(p, reg, 0); i_beqzl(p, reg, 0);
} }
static void il_bnez(u32 **p, struct reloc **r, unsigned int reg, static void __init il_bnez(u32 **p, struct reloc **r, unsigned int reg,
enum label_id l) enum label_id l)
{ {
r_mips_pc16(r, *p, l); r_mips_pc16(r, *p, l);
i_bnez(p, reg, 0); i_bnez(p, reg, 0);
} }
static void il_bgezl(u32 **p, struct reloc **r, unsigned int reg, static void __init il_bgezl(u32 **p, struct reloc **r, unsigned int reg,
enum label_id l) enum label_id l)
{ {
r_mips_pc16(r, *p, l); r_mips_pc16(r, *p, l);