From 718c97d525391475313cdcb3b6b7a68d345a19a7 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 12 Apr 2021 14:27:25 +0300 Subject: [PATCH] intel/devinfo: use compatible type for ARRAY_SIZE Signed-off-by: Lionel Landwerlin Reviewed-by: Francisco Jerez Part-of: --- src/intel/dev/intel_device_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h index 499bf2a9ad4..d5fc452e616 100644 --- a/src/intel/dev/intel_device_info.h +++ b/src/intel/dev/intel_device_info.h @@ -392,7 +392,7 @@ intel_device_info_eu_total(const struct intel_device_info *devinfo) { uint32_t total = 0; - for (uint32_t i = 0; i < ARRAY_SIZE(devinfo->eu_masks); i++) + for (size_t i = 0; i < ARRAY_SIZE(devinfo->eu_masks); i++) total += __builtin_popcount(devinfo->eu_masks[i]); return total;