]> git.baikalelectronics.ru Git - uboot.git/commit
lz4: Fix compile warning comparison of distinct pointer types
authorPali Rohár <pali@kernel.org>
Wed, 27 Jul 2022 15:24:23 +0000 (17:24 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 10 Aug 2022 17:46:55 +0000 (13:46 -0400)
commit046c9e6f2c3dacf2cce5681aef9ea76beaed45b9
treea94bdb482b29912bf18b838bcefa038fc78e17b3
parent69a202f3334fb30e8b2bc59956b67bff838e4764
lz4: Fix compile warning comparison of distinct pointer types

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@kernel.org>
lib/lz4_wrapper.c