diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-12 12:38:30 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-12 12:41:50 +0200 |
commit | eaca62f31c1f9c8b28fd87ef6fd8afb270d7e351 (patch) | |
tree | a75fda6a6f5abd63d083dccffcb33f056e888d3b /package/boot/arm-trusted-firmware-rockchip | |
parent | eac6fe2d70cacbddb736e814674dfa070faac0a8 (diff) | |
download | upstream-eaca62f31c1f9c8b28fd87ef6fd8afb270d7e351.tar.gz upstream-eaca62f31c1f9c8b28fd87ef6fd8afb270d7e351.tar.bz2 upstream-eaca62f31c1f9c8b28fd87ef6fd8afb270d7e351.zip |
lantiq: 5.15: fix compilation warning pciex fixup patch
pcibios_map_irq request a const pci_dev while pci_find_capability
doesn't. Cast dropping the const to fix compilation warning.
Fix compilation warning:
arch/mips/pci/fixup-lantiq.c: In function 'pcibios_map_irq':
arch/mips/pci/fixup-lantiq.c:34:33: error: passing argument 1 of 'pci_find_capability' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
34 | if (pci_find_capability(dev, PCI_CAP_ID_EXP))
| ^~~
In file included from arch/mips/pci/fixup-lantiq.c:9:
./include/linux/pci.h:1129:40: note: expected 'struct pci_dev *' but argument is of type 'const struct pci_dev *'
1129 | u8 pci_find_capability(struct pci_dev *dev, int cap);
| ~~~~~~~~~~~~~~~~^~~
cc1: all warnings being treated as errors
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'package/boot/arm-trusted-firmware-rockchip')
0 files changed, 0 insertions, 0 deletions