Hi Stewart, On 3 May 2023, at 8:18 pm, Stewart Hildebrand <stewart.hildebr...@amd.com> wrote:
When building with EXTRA_CFLAGS_XEN_CORE="-Wtype-limits", we observe the following warning: arch/arm/pci/pci-host-common.c: In function ‘pci_host_common_probe’: arch/arm/pci/pci-host-common.c:238:26: warning: comparison is always false due to limited range of data type [-Wtype-limits] 238 | if ( bridge->segment < 0 ) | ^ This is due to bridge->segment being an unsigned type. Fix it by introducing a new variable of signed type to use in the condition. Signed-off-by: Stewart Hildebrand <stewart.hildebr...@amd.com> Reviewed-by: Rahul Singh <rahul.si...@arm.com<mailto:rahul.si...@arm.com>> Regards, Rahul