Re: [PATCH] Fix max/min warnings in virtio_net, amd/display, and io_uring

2023-07-06 Thread Michael S. Tsirkin
On Thu, Jul 06, 2023 at 10:06:16AM +0800, Yang Rong wrote: > The files drivers/net/virtio_net.c, > drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c, and io_uring/io_uring.c were > modified to fix warnings. what warnings? the point of the warning is to analyze it not "fix" it blindly. > Specifically

Re: [PATCH] Fix max/min warnings in virtio_net, amd/display, and io_uring

2023-07-06 Thread Alex Deucher
On Thu, Jul 6, 2023 at 3:37 AM Yang Rong wrote: > > The files drivers/net/virtio_net.c, > drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c, and io_uring/io_uring.c were > modified to fix warnings. > Specifically, the opportunities for max() and min() were utilized to address > the warnings. Please

[PATCH] Fix max/min warnings in virtio_net, amd/display, and io_uring

2023-07-06 Thread Yang Rong
The files drivers/net/virtio_net.c, drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c, and io_uring/io_uring.c were modified to fix warnings. Specifically, the opportunities for max() and min() were utilized to address the warnings. Signed-off-by: Yang Rong --- drivers/gpu/drm/amd/display/dc/dc_dm