Re: [PATCH for-next 2/2] RDMA/hns: Fix alignment problem of the doorbell

Jason Gunthorpe
2017-12-28T16:00:54Z

On Thu, Dec 28, 2017 at 02:48:10PM +0800, Liuyixian (Eason) wrote:

> And I also find a discussion on the usage of union. It also mentions that
> we can only get the "active" member from an union.
> https://stackoverflow.com/questions/2310483/purpose-of-unions-in-c-and-c

linux requires a compiler that supports the C99 model of allowing type
punning with unions.

Jason