hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/x86/kernel/pci-swiotlb.c
....@@ -1,11 +1,10 @@
11 // SPDX-License-Identifier: GPL-2.0
2
-/* Glue code to lib/swiotlb.c */
32
43 #include <linux/pci.h>
54 #include <linux/cache.h>
65 #include <linux/init.h>
76 #include <linux/swiotlb.h>
8
-#include <linux/bootmem.h>
7
+#include <linux/memblock.h>
98 #include <linux/dma-direct.h>
109 #include <linux/mem_encrypt.h>
1110
....@@ -62,10 +61,8 @@
6261
6362 void __init pci_swiotlb_init(void)
6463 {
65
- if (swiotlb) {
64
+ if (swiotlb)
6665 swiotlb_init(0);
67
- dma_ops = &swiotlb_dma_ops;
68
- }
6966 }
7067
7168 void __init pci_swiotlb_late_init(void)