enable missing-prototypes in functorch (#103391)
This PR enables missing-prototypes in functorch target and turn some functions into static ones
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103391
Approved by: https://github.com/malfet