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

From: Jens Axboe
Date: Thu Jul 06 2023 - 10:04:14 EST


On 7/6/23 7:58?AM, Alex Deucher wrote:
> On Thu, Jul 6, 2023 at 3:37?AM Yang Rong <yangrong@xxxxxxxx> 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 split this into 3 patches, one for each component.

Don't bother with the io_uring one, code is far more readable as-is.

--
Jens Axboe