[PATCH] lz4: Fix compile warning comparison of distinct pointer types

Tom Rini trini at konsulko.com
Wed Aug 10 23:50:31 CEST 2022


On Wed, Jul 27, 2022 at 05:24:23PM +0200, Pali Rohár wrote:

> In file included from include/linux/bitops.h:22,
>                  from include/log.h:15,
>                  from include/linux/printk.h:4,
>                  from include/common.h:20,
>                  from lib/lz4_wrapper.c:6:
> lib/lz4_wrapper.c: In function ‘ulz4fn’:
> include/linux/kernel.h:184:17: warning: comparison of distinct pointer types lacks a cast
>   (void) (&_min1 == &_min2);  \
>                  ^~
> lib/lz4_wrapper.c:104:18: note: in expansion of macro ‘min’
>     size_t size = min((ptrdiff_t)block_size, end - out);
>                   ^~~
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220810/86bcc051/attachment.sig>


More information about the U-Boot mailing list