[Intel-gfx] [PATCH 6/6] drm/i915: expose rcs topology through query uAPI
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Fri Jan 12 08:55:16 UTC 2018
On 11/01/2018 18:38, Lionel Landwerlin wrote:
> On 11/01/18 12:45, Tvrtko Ursulin wrote:
>>
[snip]
>>
>>> + __u32 n_slices;
>>> +
>>> + __u8 data[];
>>
>> Is a zero size array a GCC extension or something? I somehow seem to
>> remember someone was complaining about this.
>
> [0] is a GNU C extension
> [] is a flexible array in C99
Right.. hm.. I was pretty sure both were not acceptable, but, when I
look into include/uapi I see that there are both actually in at least
some use. So I don't know.. fine I guess, but don't be surprised if
someone complains.
Regards,
Tvrtko
More information about the Intel-gfx
mailing list