forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/ia64/mm/ioremap.c
....@@ -1,16 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * (c) Copyright 2006, 2007 Hewlett-Packard Development Company, L.P.
34 * Bjorn Helgaas <bjorn.helgaas@hp.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #include <linux/compiler.h>
118 #include <linux/module.h>
129 #include <linux/efi.h>
1310 #include <linux/io.h>
11
+#include <linux/mm.h>
1412 #include <linux/vmalloc.h>
1513 #include <asm/io.h>
1614 #include <asm/meminit.h>
....@@ -45,7 +43,7 @@
4543 /*
4644 * For things in kern_memmap, we must use the same attribute
4745 * as the rest of the kernel. For more details, see
48
- * Documentation/ia64/aliasing.txt.
46
+ * Documentation/ia64/aliasing.rst.
4947 */
5048 attr = kern_mem_attribute(phys_addr, size);
5149 if (attr & EFI_MEMORY_WB)
....@@ -102,14 +100,14 @@
102100 EXPORT_SYMBOL(ioremap);
103101
104102 void __iomem *
105
-ioremap_nocache (unsigned long phys_addr, unsigned long size)
103
+ioremap_uc(unsigned long phys_addr, unsigned long size)
106104 {
107105 if (kern_mem_attribute(phys_addr, size) & EFI_MEMORY_WB)
108106 return NULL;
109107
110108 return __ioremap_uc(phys_addr);
111109 }
112
-EXPORT_SYMBOL(ioremap_nocache);
110
+EXPORT_SYMBOL(ioremap_uc);
113111
114112 void
115113 early_iounmap (volatile void __iomem *addr, unsigned long size)