Re: [PATCH] drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'

2023-07-24 Thread Alex Deucher
On Sun, Jul 23, 2023 at 3:06 AM Srinivasan Shanmugam wrote: > > Fixes the following: > > WARNING: min() should probably be min_t(size_t, size, sizeof(ip)) > + ret = copy_to_user(out, , min((size_t)size, sizeof(ip))); > > And other style fixes: > > WARNING: Prefer 'unsigned int' to

[PATCH] drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'

2023-07-23 Thread Srinivasan Shanmugam
Fixes the following: WARNING: min() should probably be min_t(size_t, size, sizeof(ip)) + ret = copy_to_user(out, , min((size_t)size, sizeof(ip))); And other style fixes: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' WARNING: Missing a blank line after declarations Cc: