aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorSiva Mahadevan <siva@FreeBSD.org>2026-10-27 20:51:39 +0000
committerSiva Mahadevan <siva@FreeBSD.org>2026-10-28 13:18:47 +0000
commit25024d96492e51c250789d16de5064d4c00c7a86 (patch)
tree33ab35b0080719d1c6f0d163268fab14e5534621 /sys/kern/kern_sysctl.c
parent9b6b3a36ee295dc6edd0e00aa34adaebaed98c7d (diff)
sbin/nvmecontrol: fix signedness comparison warningHEADmain
sector_size is guaranteed to be non-zero here, so cast to uint32_t to match the comparison. This fixes the [gcc14 build in CI][0]: /workspace/src/sbin/nvmecontrol/format.c: In function 'find_lbaf': /workspace/src/sbin/nvmecontrol/format.c:132:60: error: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare] 132 | if (NVMEV(NVME_NS_DATA_LBAF_LBADS, format) != lbads || | ^~ [0] https://ci.freebsd.org/job/FreeBSD-main-amd64-gcc14_build/5051/ Reviewed by: imp Fixes: b991e2dd824c ("nvmecontrol: support controller-wide sector sizes") MFC after: 3 days Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern/kern_sysctl.c')
0 files changed, 0 insertions, 0 deletions