[PATCH v5 4/7] arm64: introduce aarch64_insn_gen_{nop|branch_imm}() helper functions

Steven Rostedt rostedt at goodmis.org
Wed Nov 6 11:45:30 EST 2013


On Wed, 30 Oct 2013 00:48:40 +0000
Will Deacon <will.deacon at arm.com> wrote:


> > +}
> > +
> > +static __always_inline u32 aarch64_insn_gen_nop(void)
> > +{
> > +	return aarch64_insn_gen_hint(AARCH64_INSN_HINT_NOP);
> > +}
> 
> Either use plain old `inline' or write these as preprocessor macros.
> 

I'm curious to why you say that? Preprocessor macros are rather ugly,
and in x86 we use "__always_inline" quite liberally.

-- Steve



More information about the linux-arm-kernel mailing list