[Nouveau] [PATCH] drm/nouveau/nvif: use struct_size()

2023-06-20 Thread Su Hui
Use struct_size() instead of hand writing it. This is less verbose and more informative. Signed-off-by: Su Hui --- drivers/gpu/drm/nouveau/nvif/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvif/object.c b/drivers/gpu/drm/nouveau/nvif/objec

Re: [Nouveau] [PATCH] drm/nouveau/nvif: use struct_size()

2023-06-20 Thread Su Hui
On 2023/5/31 16:31, Dan Carpenter wrote: On Wed, May 31, 2023 at 12:38:26PM +0800, Su Hui wrote: Use struct_size() instead of hand writing it. This is less verbose and more informative. Signed-off-by: Su Hui --- drivers/gpu/drm/nouveau/nvif/object.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Nouveau] [PATCH] drm/nouveau/nvif: use struct_size()

2023-06-20 Thread Dan Carpenter
On Wed, May 31, 2023 at 12:38:26PM +0800, Su Hui wrote: > Use struct_size() instead of hand writing it. > This is less verbose and more informative. > > Signed-off-by: Su Hui > --- > drivers/gpu/drm/nouveau/nvif/object.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/d