Backport request to fix a WARNING in input_mt_init_slots