mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 11:01:38 +00:00
abc596b9a2
The xilinx PCIe driver prints a register value whose type is propagated to
the type returned by the GENMASK() macro. Unfortunately, that type has
recently changed as the result of a bug fix, so now we get a warning about
the type:
drivers/pci/host/pcie-xilinx.c: In function 'xilinx_pcie_clear_err_interrupts':
drivers/pci/host/pcie-xilinx.c:154:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
Change the code so we always print the number as an 'unsigned long' type to
avoid the warning. The original code was fine on 32-bit architectures but
not on 64-bit. Now it works as expected on both.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pci-dra7xx.c | ||
pci-exynos.c | ||
pci-host-generic.c | ||
pci-imx6.c | ||
pci-keystone-dw.c | ||
pci-keystone.c | ||
pci-keystone.h | ||
pci-layerscape.c | ||
pci-mvebu.c | ||
pci-rcar-gen2.c | ||
pci-tegra.c | ||
pci-xgene.c | ||
pcie-designware.c | ||
pcie-designware.h | ||
pcie-rcar.c | ||
pcie-spear13xx.c | ||
pcie-xilinx.c |