Re: [PATCH][next] media: venus: hfi_cmds: Replace one-element array with flex-array member and use __counted_by

From: Gustavo A. R. Silva
Date: Tue Jan 09 2024 - 09:00:01 EST




On 1/9/24 07:28, Sergey Senozhatsky wrote:
On (24/01/09 07:17), Gustavo A. R. Silva wrote:

Sorry for shameless plug, a quick question: has any compiler implemented
support for counted_by() at this point?


Not yet. And at least for GCC, it's expected to be released in v15.

I see. Thank you.

I got confused by include/linux/compiler_attributes.h comment, as I'm on
clang-18 currently, seems that we need to bump min compilers version.

Ah yes, compiler devs have been running into some issues, and they had to
postpone the release of the attribute.

Oh, and clang link 404-s on me. I'll send a quick patch, I guess.


You're right, ick!

--
Gustavo