Re: [PATCH V2] mlx5: vdpa: fix possible uninitialized var

2021-01-17 Thread Jason Wang
On 2021/1/17 下午6:30, Michael S. Tsirkin wrote: On Thu, Jan 14, 2021 at 03:09:04PM +0800, Jason Wang wrote: When compiling with -Werror=maybe-uninitialized, gcc may complains the possible uninitialized umem. Since the callers won't pass value other than 1 to 3, making 3 as default to fix the co

Re: [PATCH V2] mlx5: vdpa: fix possible uninitialized var

2021-01-17 Thread Michael S. Tsirkin
On Thu, Jan 14, 2021 at 03:09:04PM +0800, Jason Wang wrote: > When compiling with -Werror=maybe-uninitialized, gcc may complains the > possible uninitialized umem. Since the callers won't pass value other > than 1 to 3, making 3 as default to fix the compiler warning. > > Signed-off-by: Jason Wang

Re: [PATCH V2] mlx5: vdpa: fix possible uninitialized var

2021-01-13 Thread Eli Cohen
On Thu, Jan 14, 2021 at 03:09:04PM +0800, Jason Wang wrote: > When compiling with -Werror=maybe-uninitialized, gcc may complains the Maybe you want to fix to: gcc may complain about possible... Other than that: Acked-by: Eli Cohen > possible uninitialized umem. Since the callers won't pass value