ksize() gets the actual amount of memory allocated for a given object and is used once in drm-kmod (drivers/dma-buf/reservation.c) to align C99 flexible array size with UMA zone item size.
This patch is borrowed from kern_malloc.c and allows to strip "#ifdef __FreeBSD__" from aforementioned file. Quick test shows no positive effect from better array size alignment at least in my setup.