linux-mips
[Top] [All Lists]

Re: [PATCH 1/4] tlbex.c: Cleanup __init usages.

To: fbuihuu@gmail.com
Subject: Re: [PATCH 1/4] tlbex.c: Cleanup __init usages.
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 12 Oct 2007 18:07:42 +0900 (JST)
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <470F170E.1060303@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <470F16B9.7030406@gmail.com> <470F170E.1060303@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Fri, 12 Oct 2007 08:41:18 +0200, Franck Bui-Huu <fbuihuu@gmail.com> wrote:
>  #define I_0(op)                                                      \
> -     static inline void __init i##op(u32 **buf)              \
> +     static inline void i##op(u32 **buf)             \
>       {                                                       \
>               build_insn(buf, insn##op);                      \
>       }

This causes section mismatches, since i_tlbwr and i_tlbwi can not be
inlined (see head of build_tlb_write_entry()).

Maybe __init __maybe_unused is preferred?

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>