summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-11-03 11:39:10 -0500
committerJason Gunthorpe <jgg@nvidia.com>2026-11-10 11:54:57 -0400
commite6c489f40f10cc80b9baee3e6b59682bd26f3c60 (patch)
tree573865fab36584329dcd8fb48ddbf76f30368970 /scripts/Makefile.thinlto
parentf0ff459312183fe1e5ad133db0feeb9faccf908c (diff)
downloadlinux-next-e6c489f40f10cc80b9baee3e6b59682bd26f3c60.tar.gz
linux-next-e6c489f40f10cc80b9baee3e6b59682bd26f3c60.zip
iommufd/selftest: fix the unmap-all length on 32-bit architectures
_test_ioctl_ioas_unmap() takes the length as a size_t, so on 32-bit architectures test_ioctl_ioas_unmap(0, UINT64_MAX), which asks to unmap everything, passes SIZE_MAX instead and doesn't test the unmap-all case: iommufd.c:861:9: warning: conversion from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295' [-Woverflow] Take the length as uint64_t, like the length field of struct iommu_ioas_unmap. While at it, cast the pointers that go into 64-bit UAPI fields through uintptr_t, as casting them straight to uint64_t warns on 32-bit. Signed-off-by: Sasha Levin <sashal@kernel.org> Link: https://patch.msgid.link/20261103163910.640756-1-sashal@kernel.org Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions