hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arc/include/asm/highmem.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2015 Synopsys, Inc. (www.synopsys.com)
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
84 */
95
106 #ifndef _ASM_HIGHMEM_H
....@@ -29,16 +25,7 @@
2925 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
3026 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT)
3127
32
-#define kmap_prot PAGE_KERNEL
33
-
34
-
3528 #include <asm/cacheflush.h>
36
-
37
-extern void *kmap(struct page *page);
38
-extern void *kmap_high(struct page *page);
39
-extern void *kmap_atomic(struct page *page);
40
-extern void __kunmap_atomic(void *kvaddr);
41
-extern void kunmap_high(struct page *page);
4229
4330 extern void kmap_init(void);
4431
....@@ -46,15 +33,6 @@
4633 {
4734 flush_cache_all();
4835 }
49
-
50
-static inline void kunmap(struct page *page)
51
-{
52
- BUG_ON(in_interrupt());
53
- if (!PageHighMem(page))
54
- return;
55
- kunmap_high(page);
56
-}
57
-
5836
5937 #endif
6038