]> xenbits.xensource.com Git - xen.git/commit
tools/libxl: Switch irq to unsigned int
authorJason Andryuk <jason.andryuk@amd.com>
Fri, 18 Apr 2025 21:05:50 +0000 (17:05 -0400)
committerAnthony PERARD <anthony.perard@vates.tech>
Fri, 25 Apr 2025 09:44:48 +0000 (11:44 +0200)
commit4ed6f75805507a431bcf48245f78c51caf3f95b6
tree270cedea55f27e997bd4acc6310d5f43f39d7180
parentec9fda045b517128e2173fa7b87bf6aee9dcc33a
tools/libxl: Switch irq to unsigned int

The PCI device irq is read with fscanf(%u).  Switch the irq variable to
unsigned int to match.

Linux driver/pci/pci-sysfs.c:irq_show() uses %u to print the value.

However, unsigned int irq doesn't compile because of:
error: pointer targets in passing argument 4 of 'xc_physdev_map_pirq' differ in signedness [-Werror=pointer-sign]

Add int pirq to provide the desired type instead of re-using irq.

Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
tools/libs/light/libxl_pci.c