mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
s390/mm: implement set_memory_rwnx()
Given that set_memory_rox() is implemented, provide also set_memory_rwnx(). This allows to get rid of all open coded __set_memory() usages in s390 architecture code. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
22e99fa564
commit
f0a2a7c527
|
|
@ -40,6 +40,11 @@ static inline int set_memory_rox(unsigned long addr, int numpages)
|
|||
return __set_memory(addr, numpages, SET_MEMORY_RO | SET_MEMORY_X);
|
||||
}
|
||||
|
||||
static inline int set_memory_rwnx(unsigned long addr, int numpages)
|
||||
{
|
||||
return __set_memory(addr, numpages, SET_MEMORY_RW | SET_MEMORY_NX);
|
||||
}
|
||||
|
||||
static inline int set_memory_4k(unsigned long addr, int numpages)
|
||||
{
|
||||
return __set_memory(addr, numpages, SET_MEMORY_4K);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user