]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: Make PCI_ROM_ADDRESS_MASK a 32-bit constant
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 14 Apr 2017 20:38:02 +0000 (13:38 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Apr 2017 19:46:57 +0000 (14:46 -0500)
commit76dc52684d0f72971d9f6cc7d5ae198061b715bd
tree5c0259e6fe70b1ff1bd48e2ec9044c23ac68e772
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
PCI: Make PCI_ROM_ADDRESS_MASK a 32-bit constant

A 64-bit value is not needed since a PCI ROM address consists in 32 bits.
This fixes a clang warning about "implicit conversion from 'unsigned long'
to 'u32'".

Also remove now unnecessary casts to u32 from __pci_read_base() and
pci_std_update_resource().

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
drivers/pci/setup-res.c
include/uapi/linux/pci_regs.h