Thanks Casper. Used macro 'PATH_KSM' and removed braces. And tested the same. mmap10_2: Before patch: ... mmap10 0 TINFO : add to KSM regions. mmap10 0 TINFO : use /dev/zero. mmap10 0 TINFO : start tests. mmap10 1 TBROK : madvise: errno=EINVAL(22): Invalid argument mmap10 2 TBROK : Remaining cases broken ... After patch: ... mmap10 1 TCONF : KSM configuration is not enabled mmap10 2 TCONF : Remaining cases not appropriate for configuration ... mmap10_3, mmap10_4, mmap10_5: Before patch: ... mmap10 0 TINFO : add to KSM regions. mmap10 0 TINFO : use anonymous pages. mmap10 0 TINFO : start tests. mmap10 1 TBROK : madvise: errno=EINVAL(22): Invalid argument mmap10 2 TBROK : Remaining cases broken ... After patch: ... mmap10 1 TCONF : KSM configuration is not enabled mmap10 2 TCONF : Remaining cases not appropriate for configuration ... Signed-off-by: Nageswara R Sastry -- Regards R.Nageswara Sastry