diff options
| author | Arnd Bergmann <[email protected]> | 2024-02-19 11:16:01 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2024-02-21 09:28:48 +0000 |
| commit | 4578f989ed6b77c14af86bb882cc5ff0a46a69eb (patch) | |
| tree | 47471470f7829ce1117ebc49a3a7363fec22dc14 /net/switchdev/switchdev.c | |
| parent | iommu/vt-d: Set SSADE when attaching to a parent with dirty tracking (diff) | |
| download | kernel-4578f989ed6b77c14af86bb882cc5ff0a46a69eb.tar.gz kernel-4578f989ed6b77c14af86bb882cc5ff0a46a69eb.zip | |
iommu/vt-d: Fix constant-out-of-range warning
On 32-bit builds, the vt-d driver causes a warning with clang:
drivers/iommu/intel/nested.c:112:13: error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
112 | if (npages == U64_MAX)
| ~~~~~~ ^ ~~~~~~~
Make the variable a 64-bit type, which matches both the caller and the
use anyway.
Fixes: f6f3721244a8 ("iommu/vt-d: Add iotlb flush for nested domain")
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lu Baolu <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
