Fix migrate function attributes to declarations (msba2 related)