shm: fix unused warnings on nommu