Re: [PATCH] bug: Use xchg() to update WARN_ON_ONCE() static variable

From: Frederic Weisbecker
Date: Tue Oct 15 2013 - 16:41:41 EST


On Tue, Oct 15, 2013 at 04:36:22PM -0400, Steven Rostedt wrote:
> On Tue, 15 Oct 2013 22:21:36 +0200
> Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:
>
> > Oh, I have a pending patchset that I worked on a few weeks ago which does that.
> > I did not post it because it made WARN_ONCE using the unlikely text section, but
> > the diffstat was nice.
> >
> > I'm going to post that as RFC just in case.
>
> Oh well, I guess I don't need to work on that anymore ;-)

Well, the idea of setting __warned before the warning is still something we want
to fix seperately I think :)
--
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/