[TF-M] gcc build error with TF-M v1.6.0 and v1.7.0