dc9ecf03f8
GCC emits a warning about using static functions like hipCUDAErrorTohipError inside this function, because it has an inline directive, but it's not static. Adding static to this function to silence warnings (and prevent potential problems in the future).