.. | .. |
---|
32 | 32 | #include <linux/init.h> |
---|
33 | 33 | #include <linux/ioport.h> |
---|
34 | 34 | #include <linux/errno.h> |
---|
35 | | -#include <linux/bootmem.h> |
---|
| 35 | +#include <linux/memblock.h> |
---|
36 | 36 | |
---|
37 | | -#include <asm/pat.h> |
---|
| 37 | +#include <asm/memtype.h> |
---|
38 | 38 | #include <asm/e820/api.h> |
---|
39 | 39 | #include <asm/pci_x86.h> |
---|
40 | 40 | #include <asm/io_apic.h> |
---|
.. | .. |
---|
59 | 59 | { |
---|
60 | 60 | struct pcibios_fwaddrmap *map; |
---|
61 | 61 | |
---|
62 | | - WARN_ON_SMP(!spin_is_locked(&pcibios_fwaddrmap_lock)); |
---|
| 62 | + lockdep_assert_held(&pcibios_fwaddrmap_lock); |
---|
63 | 63 | |
---|
64 | 64 | list_for_each_entry(map, &pcibios_fwaddrmappings, list) |
---|
65 | 65 | if (map->dev == dev) |
---|