diff options
author | Milos Nikic <nikic.milos@google.com> | 2025-06-24 00:58:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-06-24 15:10:03 +0200 |
commit | 4687a5fffa8bf611294dac3854a882c37b21f9ab (patch) | |
tree | f6e8644dfaeaea5533a49346e31eb34e206e7685 /device/intr.c | |
parent | 0bb929fab7a2689ec9ec1e55fe4765a54a39c46c (diff) |
i386 kern: fix overflow in vm_object_print_part call
The call to vm_object_print_part was passing 0ULL and ~0ULL
for offset and size, respectively. These values are 64-bit
(unsigned long long), which causes compiler warnings when
building for 32-bit platforms where vm_offset_t and vm_size_t
are typedefs of uintptr_t (i.e., unsigned int).
This patch replaces those constants with 0 and UINTPTR_MAX,
which match the expected types and avoid implicit conversion
or overflow warnings.
No functional change.
Message-ID: <20250623235844.763-1-nikic.milos@gmail.com>
Diffstat (limited to 'device/intr.c')
0 files changed, 0 insertions, 0 deletions