eal: replace unsigned -1 with unsigned maximums
authorTyler Retzlaff <roretzla@linux.microsoft.com>
Tue, 16 Mar 2021 00:13:31 +0000 (17:13 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 09:29:45 +0000 (11:29 +0200)
commit5535bbadcbc035923044de8822d5d47928ac94a7
tree6da323b708834cab3ea88d3c3570fe330f575b83
parente8eb80e8bfe7e0eef2c3a55cb9a4ee7c9ba12b4c
eal: replace unsigned -1 with unsigned maximums

Use UINT64_MAX and UINT32_MAX instead of -1 or ~0 literal variations
of different explicit widths when creating masks and sentinel values.

Some compilers generate a warning when applying a '-' to an unsigned
literal so avoid this by initializing with unsigned preprocessor
definitions where appropriate.

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_fbarray.c
lib/librte_eal/common/eal_common_log.c