Move preprocessor guards to surround the entire functions
Remove functions when the architecture support they need is missing so that invalid use of them results in a build error. Signed-off-by:Jens Elofsson <jens.elofsson@arm.com> Approved-by:
Felix Johnny Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com>