[PATCH][next] drm/nouveau: disp: Use __member_size() helper

Kees Cook kees at kernel.org
Tue Apr 22 15:49:23 UTC 2025


On Tue, Apr 22, 2025 at 09:44:56AM -0600, Gustavo A. R. Silva wrote:
> Use __member_size() to get the size of the flex-array member at compile
> time, instead of the convoluted expression `__struct_size(p) - sizeof(*p)`
> 
> Signed-off-by: Gustavo A. R. Silva <gustavoars at kernel.org>

Reviewed-by: Kees Cook <kees at kernel.org>

-- 
Kees Cook


More information about the dri-devel mailing list