syscalls/madvise: Handle zero page poisoning
v2 cover syscalls/madvise: Handle zero page poisoning
Hello Metan,
Quoted 4 lines
This is getting a bit out of hand, can we change this into a function instead?
static const char *maptype(int mtype)
Quoted 9 lines
{
switch (mtype) {
case MAP_SHARED:
return "MAP_SHARED";
...
default:
return "???";
}
}I have done that in this second version, I suppose the conditional expression was a bit weird and probably not as compiler friendly. I also joined a few lines together and added some braces because check-patch.pl now asks me to.
Richard Palethorpe (1):
syscalls/madvise: Handle zero page poisoning
testcases/kernel/syscalls/madvise/madvise07.c | 53 ++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 10 deletions(-)
Signature · 1 line
2.12.0