Commit Graph

1 Commits

Author SHA1 Message Date
9ea235637e Add compiler.h to define some common compiler directives
This is taken from the Cilium project:
 https://github.com/cilium/cilium/blob/master/bpf/include/bpf/compiler.h

The use-case was adding READ_ONCE and WRITE_ONCE, but via re-using
the Cilium version we get a lot more useful compiler annotations.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2020-11-15 15:38:15 +01:00