--- a/include/asm-generic/mman.h 2010-01-21 17:27:09.000000000 +0200 +++ a/include/asm-generic/mman.h 2010-01-21 17:31:14.000000000 +0200 @@ -34,6 +34,8 @@ #define MADV_REMOVE 9 /* remove these pages & resources */ #define MADV_DONTFORK 10 /* don't inherit across fork */ #define MADV_DOFORK 11 /* do inherit across fork */ +#define MADV_MERGEABLE 12 /* KSM may merge identical pages */ +#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */ /* compatibility flags */ #define MAP_FILE 0