Re: [PATCH 10/10] perf tools: Move ACCESS_ONCE from perf.h header

Borislav Petkov
2014-05-05T12:59:26Z

On Mon, May 05, 2014 at 02:45:36PM +0200, Peter Zijlstra wrote:
> One could argue its part of the barrier muck, but sure.

Yeah, it might be prudent to put stuff like that in the most fitting
headers from the get-go as it causes trouble otherwise. And for
ACCESS_ONCE, in particular, we have tools/include/linux/compiler.h which
is a subset of include/linux/compiler.h so maybe it should go there.

Btw, why aren't we simply including include/linux/compiler.h
in tools/include/linux/compiler.h and be done with the whole
compiler-related stuff?

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--