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

2023-07-06 Thread Jens Axboe
On 7/6/23 7:58?AM, Alex Deucher wrote: > 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()

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. >

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.