mm: vm: Add code to test and fix compiler warnings

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>