Re: [PATCH libibverbs V3 3/3] Add ibv_query_port_ex support

Jason Gunthorpe
2014-05-08T19:47:48Z

On Thu, May 08, 2014 at 02:40:44PM -0500, Christoph Lameter wrote:
> On Thu, 8 May 2014, Jason Gunthorpe wrote:
>
> > Anonymous struct/union is a C11 feature and GNU extension. I don't
> > think is appropriate for a user library to rely on. We cannot assume
> > the user is has a compiler in C11 mode.
>
> Anonymous structs/union are used in the kernel already. See
> include/linux/mm_types.h f.e.

Re-read: This is a userspace header.

mm_types.h is never included by a userspace program, so it doesn't
matter.

Find something in include/uapi and we'll talk :)

Jason