The ifdefs are quite ugly. I would recommend to define standardfunctions (kmemcheck_init_zero or similar and an own __GFP flag) that can be used without ifdef and easily nop'ed out on !KMEMCHECK kernels.-Andi