| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | 2 | // Copyright (C) 2017 Arm Ltd. |
|---|
| 3 | 3 | #ifndef __ASM_VMAP_STACK_H |
|---|
| 4 | 4 | #define __ASM_VMAP_STACK_H |
|---|
| .. | .. |
|---|
| 7 | 7 | #include <linux/gfp.h> |
|---|
| 8 | 8 | #include <linux/kconfig.h> |
|---|
| 9 | 9 | #include <linux/vmalloc.h> |
|---|
| 10 | +#include <linux/pgtable.h> |
|---|
| 10 | 11 | #include <asm/memory.h> |
|---|
| 11 | | -#include <asm/pgtable.h> |
|---|
| 12 | 12 | #include <asm/thread_info.h> |
|---|
| 13 | 13 | |
|---|
| 14 | 14 | /* |
|---|
| .. | .. |
|---|
| 19 | 19 | { |
|---|
| 20 | 20 | BUILD_BUG_ON(!IS_ENABLED(CONFIG_VMAP_STACK)); |
|---|
| 21 | 21 | |
|---|
| 22 | | - return __vmalloc_node_range(stack_size, THREAD_ALIGN, |
|---|
| 23 | | - VMALLOC_START, VMALLOC_END, |
|---|
| 24 | | - THREADINFO_GFP, PAGE_KERNEL, 0, node, |
|---|
| 25 | | - __builtin_return_address(0)); |
|---|
| 22 | + return __vmalloc_node(stack_size, THREAD_ALIGN, THREADINFO_GFP, node, |
|---|
| 23 | + __builtin_return_address(0)); |
|---|
| 26 | 24 | } |
|---|
| 27 | 25 | |
|---|
| 28 | 26 | #endif /* __ASM_VMAP_STACK_H */ |
|---|