Re: [PATCH bpf 2/2] bpf: enforce usage of __aligned_u64 in the UAPI header

From: Eugene Syromiatnikov
Date: Wed May 30 2018 - 06:02:40 EST


On Tue, May 29, 2018 at 10:35:09AM -0700, Song Liu wrote:
> I think these changes are not necessary. Is it a general guidance to
> only use 64-bit aligned
> variables in UAPI headers?

Not really, but it allows avoiding most alignment issues like the one
mentioned in the previous patch and in the referenced RDMA patch.