plat: fixes for previous commit, func def missing