Hi guanjing, Em 20/11/2024 07:51, guanjing escreveu:
The return value from the call to utf8_parse_version() is not of the unsigned type. However, the return value is being assigned to an unsigned int variable 'version'. This will result in the inability to handle errors that occur when parsing a UTF-8 version number from a string. Additionally, this patch can help eliminate the following Coccicheck warning: mm/shmem.c:4378:6-13: WARNING: Unsigned expression compared with zero: version < 0 Fixes: 58e55efd6c72 ("tmpfs: Add casefold lookup support") Signed-off-by: guanjing <guanjing@xxxxxxxxxxxxxxxxxxxx>
Another fix was already sent: https://lore.kernel.org/lkml/20241111-unsignedcompare1601569-v1-1-c4a9c3c75a52@xxxxxxxxx/