Re: [PATCH 2/5] x86/jump-label: Do not bother updating nops if theyare correct

From: Steven Rostedt
Date: Fri Jan 27 2012 - 15:42:19 EST


On Fri, 2012-01-27 at 12:34 -0800, Andrew Morton wrote:

> > + if (!once) {
> > + unsigned char default_nop[] = { JUMP_LABEL_INIT_NOP };
>
> const. It generates less code. With my compiler version, at least.
> That was a bit dumb of it, given that memcmp() is declared to take
> const args.

OK will update,

Thanks!

-- Steve



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/