diff --git a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp index 75529863c6aa..3da571f92766 100644 --- a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp +++ b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp @@ -1116,7 +1116,7 @@ pthread_mutex_t SignalPoolT::mutex = PTHREAD_MUTEX_INITIALIZER; // Putting accesses to DeviceInfo global behind a function call prior // to changing to use init_plugin/deinit_plugin calls static RTLDeviceInfoTy DeviceInfoState; -RTLDeviceInfoTy& DeviceInfo() { return DeviceInfoState; } +static RTLDeviceInfoTy& DeviceInfo() { return DeviceInfoState; } namespace {