hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/x86/pci/i386.c
....@@ -32,9 +32,9 @@
3232 #include <linux/init.h>
3333 #include <linux/ioport.h>
3434 #include <linux/errno.h>
35
-#include <linux/bootmem.h>
35
+#include <linux/memblock.h>
3636
37
-#include <asm/pat.h>
37
+#include <asm/memtype.h>
3838 #include <asm/e820/api.h>
3939 #include <asm/pci_x86.h>
4040 #include <asm/io_apic.h>
....@@ -59,7 +59,7 @@
5959 {
6060 struct pcibios_fwaddrmap *map;
6161
62
- WARN_ON_SMP(!spin_is_locked(&pcibios_fwaddrmap_lock));
62
+ lockdep_assert_held(&pcibios_fwaddrmap_lock);
6363
6464 list_for_each_entry(map, &pcibios_fwaddrmappings, list)
6565 if (map->dev == dev)