From 8a602184bb66ebc1dd9d41b6d32fc3b11d5499a7 Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Wed, 29 Aug 2018 14:30:22 -0400 Subject: [PATCH] __forceinline__ needs inline and always_inline Related to SWDEV-163084 [ROCm/hip commit: e7352a1f4aed1be98bcde4efe9201c66704ac621] --- projects/hip/include/hip/hcc_detail/host_defines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/host_defines.h b/projects/hip/include/hip/hcc_detail/host_defines.h index af51e9d3fe..5d1c3d8f68 100644 --- a/projects/hip/include/hip/hcc_detail/host_defines.h +++ b/projects/hip/include/hip/hcc_detail/host_defines.h @@ -52,7 +52,7 @@ THE SOFTWARE. #endif // GENERIC_GRID_LAUNCH #define __noinline__ __attribute__((noinline)) -#define __forceinline__ __attribute__((always_inline)) +#define __forceinline__ inline __attribute__((always_inline)) /* @@ -71,7 +71,7 @@ THE SOFTWARE. #define __constant__ __attribute__((constant)) #define __noinline__ __attribute__((noinline)) -#define __forceinline__ __attribute__((always_inline)) +#define __forceinline__ inline __attribute__((always_inline)) #else