blob: e5140648f63808e9d754a3b1145d6180cf32b6ec [file] [log] [blame]
Michael Ellerman938f8462017-07-06 15:35:52 -07001/*
2 * 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 */
8#ifndef _LINUX_SET_MEMORY_H_
9#define _LINUX_SET_MEMORY_H_
10
11#ifdef CONFIG_ARCH_HAS_SET_MEMORY
12#include <asm/set_memory.h>
13#else
14static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; }
15static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; }
16static inline int set_memory_x(unsigned long addr, int numpages) { return 0; }
17static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; }
18#endif
19
20#endif /* _LINUX_SET_MEMORY_H_ */