[PATCH 1/2] include: kernel.h: port find_closest() from Linux