.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2017, Michael Ellerman, IBM Corporation. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License version |
---|
6 | | - * 2 as published by the Free Software Foundation; |
---|
7 | 4 | */ |
---|
8 | 5 | #ifndef _LINUX_SET_MEMORY_H_ |
---|
9 | 6 | #define _LINUX_SET_MEMORY_H_ |
---|
.. | .. |
---|
17 | 14 | static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } |
---|
18 | 15 | #endif |
---|
19 | 16 | |
---|
| 17 | +#ifndef CONFIG_ARCH_HAS_SET_DIRECT_MAP |
---|
| 18 | +static inline int set_direct_map_invalid_noflush(struct page *page) |
---|
| 19 | +{ |
---|
| 20 | + return 0; |
---|
| 21 | +} |
---|
| 22 | +static inline int set_direct_map_default_noflush(struct page *page) |
---|
| 23 | +{ |
---|
| 24 | + return 0; |
---|
| 25 | +} |
---|
| 26 | +#endif |
---|
| 27 | + |
---|
20 | 28 | #ifndef set_mce_nospec |
---|
21 | 29 | static inline int set_mce_nospec(unsigned long pfn, bool unmap) |
---|
22 | 30 | { |
---|