Re: [PATCH v2] include/linux/byteorder/generic.h: fix signed/unsigned warnings

From: Andy Shevchenko
Date: Mon Oct 21 2019 - 05:38:45 EST


On Mon, Oct 21, 2019 at 09:27:37AM +0000, Anatol Belski wrote:
> From: Anatol Belski <anbelski@xxxxxxxxxxxxx>
>
> This fixes the warnings like below, thrown by GCC
>
> warning: comparison of integer expressions of different signedness: \
> âintâ and âsize_tâ {aka âlong unsigned intâ} [-Wsign-compare]
> 195 | for (i = 0; i < len; i++)
> | ^

We have explicitly disabled this warnings in the kernel Makefile.
How did you achieve this? (yes, I know the possible answer, perhaps
this has to be mentioned as well)

Now I see some inconsistency with this warning between GCC and Clang. Add
related people to the discussion.

> Signed-off-by: Anatol Belski <anbelski@xxxxxxxxxxxxx>
> ---

Changelog is missing.
(No need to resend just for this, it's for your future contributions)

--
With Best Regards,
Andy Shevchenko