[Openmp-commits] [openmp] 29f1a71 - [OpenMP] Remove internal linkage from __kmp_wait template (NFC) (#207983)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 7 08:41:39 PDT 2026
Author: Aditya Medhane
Date: 2026-07-07T18:41:34+03:00
New Revision: 29f1a71a8d3f12232ccd53bca2442e35396a11a3
URL: https://github.com/llvm/llvm-project/commit/29f1a71a8d3f12232ccd53bca2442e35396a11a3
DIFF: https://github.com/llvm/llvm-project/commit/29f1a71a8d3f12232ccd53bca2442e35396a11a3.diff
LOG: [OpenMP] Remove internal linkage from __kmp_wait template (NFC) (#207983)
__kmp_wait in kmp_dispatch.h is a static function template in a header,
so any TU that includes it without instantiating it trips
-Wunused-template (kmp_runtime.cpp, kmp_affinity.cpp, kmp_global.cpp,
kmp_settings.cpp). It is used by kmp_dispatch.cpp and
kmp_dispatch_hier.h. Drop static, which the comment above it already
suggests.
Part of #202945
Added:
Modified:
openmp/runtime/src/kmp_dispatch.h
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_dispatch.h b/openmp/runtime/src/kmp_dispatch.h
index f161a801700f4..1f45bf02c4bcb 100644
--- a/openmp/runtime/src/kmp_dispatch.h
+++ b/openmp/runtime/src/kmp_dispatch.h
@@ -291,8 +291,8 @@ template <typename T> kmp_uint32 __kmp_eq(T value, T checker) {
TODO: make inline function (move to header file for icl)
*/
template <typename UT>
-static UT __kmp_wait(volatile UT *spinner, UT checker,
- kmp_uint32 (*pred)(UT, UT) USE_ITT_BUILD_ARG(void *obj)) {
+UT __kmp_wait(volatile UT *spinner, UT checker,
+ kmp_uint32 (*pred)(UT, UT) USE_ITT_BUILD_ARG(void *obj)) {
// note: we may not belong to a team at this point
volatile UT *spin = spinner;
UT check = checker;
More information about the Openmp-commits
mailing list