aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/fixdep.c
diff options
context:
space:
mode:
authorMarek Szyprowski <[email protected]>2020-02-27 11:51:46 +0000
committerBjorn Helgaas <[email protected]>2020-02-27 14:06:20 +0000
commit73a7a271b3eee7b83f29b13866163776f1cbef89 (patch)
tree1ce72a0ec1afce3dbb5d805f28ab657a08889398 /scripts/basic/fixdep.c
parentLinux 5.6-rc1 (diff)
downloadkernel-73a7a271b3eee7b83f29b13866163776f1cbef89.tar.gz
kernel-73a7a271b3eee7b83f29b13866163776f1cbef89.zip
PCI: brcmstb: Fix build on 32bit ARM platforms with older compilers
Some older compilers have no implementation for the helper for 64-bit unsigned division/modulo, so linking pcie-brcmstb driver causes the "undefined reference to `__aeabi_uldivmod'" error. *rc_bar2_size is always a power of two, because it is calculated as: "1ULL << fls64(entry->res->end - entry->res->start)", so the modulo operation in the subsequent check can be replaced by a simple logical AND with a proper mask. Link: https://lore.kernel.org/r/[email protected] Fixes: c0452137034b ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver") Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Nicolas Saenz Julienne <[email protected]> Acked-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'scripts/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions