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)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:46 +0000 (21:13 +0000)
commit9d63dd0c5a5ddc29ac2e5b21d07fd0ed85408309
treefb6314fad6bee578df388e9aa1c0ae57645cf262
parenta1b5b3bf64d5994792eb59303be6f2992906a6aa
PCI: Make PCI_ROM_ADDRESS_MASK a 32-bit constant

commit 76dc52684d0f72971d9f6cc7d5ae198061b715bd upstream.

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>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/probe.c
drivers/pci/setup-res.c
include/uapi/linux/pci_regs.h