Re: [RFC/PATCH] Prevent wasting time to find out get_parent_ip

From: Steven Rostedt
Date: Tue Apr 24 2012 - 23:33:14 EST


On Wed, 2012-04-25 at 12:21 +0900, Minho Ban wrote:
> >
> > Or, how about declaring get_parent_ip with the GCC "pure" attribute?
> > That would tell GCC that it can safely eliminate calls to the function.
> >
> > - Josh Triplett
> >
>
> Thank you for alternative method, but I'm afraid this could not cover the CALLER_ADDR.

That's fine. I personally prefer the macro with the comment as that is
not as subtle of a fix. It's the most straight forward.

-- 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/