]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mqueue: fix 5 warnings about signed/unsigned mismatches
authorJohn Hubbard <jhubbard@nvidia.com>
Mon, 27 May 2024 20:08:35 +0000 (13:08 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 25 Jun 2024 05:25:03 +0000 (22:25 -0700)
commit727759d748ed34cc8d3e1d215fbc1766010dee3d
tree45e0d0033941dec81fd2a8083c57d584cf73ebf5
parent54ce43da25816e6134ffc777b02f9a720d07a8db
selftests/mqueue: fix 5 warnings about signed/unsigned mismatches

When building with clang, via:

    make LLVM=1 -C tools/testing/selftest

...clang warns about several cases of using a signed integer for the
priority argument to mq_receive(3), which expects an unsigned int.

Fix this by declaring the type as unsigned int in all cases.

Link: https://lkml.kernel.org/r/20240527200835.143682-1-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Valentin Obst <kernel@valentinobst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mqueue/mq_perf_tests.c