[LTP] [PATCH v2 0/1] syscalls/madvise: Handle zero page poisoning
    Richard Palethorpe 
    rpalethorpe@suse.com
       
    Mon Apr  3 13:01:19 CEST 2017
    
    
  
Hello Metan,
>This is getting a bit out of hand, can we change this into a function
>instead?
>
>static const char *maptype(int mtype)
>{
>	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(-)
-- 
2.12.0
    
    
More information about the ltp
mailing list