treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / csky / include / asm / fixmap.h
blob380ff0a307df02095f1585d021984a7167007b2b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_FIXMAP_H
5 #define __ASM_CSKY_FIXMAP_H
7 #include <asm/page.h>
8 #ifdef CONFIG_HIGHMEM
9 #include <linux/threads.h>
10 #include <asm/kmap_types.h>
11 #endif
13 enum fixed_addresses {
14 #ifdef CONFIG_HIGHMEM
15 FIX_KMAP_BEGIN,
16 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
17 #endif
18 __end_of_fixed_addresses
21 #define FIXADDR_TOP 0xffffc000
22 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
23 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
25 #include <asm-generic/fixmap.h>
27 #endif /* __ASM_CSKY_FIXMAP_H */