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

2025-04-23 Thread Danilo Krummrich
On Tue, Apr 22, 2025 at 09:45:39AM -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 Applied to drm-misc-next, thanks!

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

2025-04-22 Thread Kees Cook
On Tue, Apr 22, 2025 at 09:45:39AM -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 Reviewed-by: Kees Cook -- Kees Coo

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

2025-04-22 Thread Gustavo A. R. Silva
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 --- drivers/gpu/drm/nouveau/nvif/outp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver