From 7d8c63cc34d80ec8ba13e4a71e41b780cd8a4954 Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Thu, 10 Feb 2022 09:05:41 -0800 Subject: [PATCH] SWDEV-294375 - Declares fns() functions static Change-Id: Ife0150b8d6b9531522e61a82df6b88af3282f437 --- hipamd/include/hip/amd_detail/amd_device_functions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/include/hip/amd_detail/amd_device_functions.h b/hipamd/include/hip/amd_detail/amd_device_functions.h index e0b5ee0774..eb66b86697 100644 --- a/hipamd/include/hip/amd_detail/amd_device_functions.h +++ b/hipamd/include/hip/amd_detail/amd_device_functions.h @@ -81,7 +81,7 @@ __device__ static inline unsigned int __ffsll(long long int input) { // Given a 32/64-bit value exec mask and an integer value base (between 0 and WAVEFRONT_SIZE), // find the n-th (given by offset) set bit in the exec mask from the base bit, and return the bit position. // If not found, return -1. -__device__ int32_t __fns64(uint64_t mask, uint32_t base, int32_t offset) { +__device__ static int32_t __fns64(uint64_t mask, uint32_t base, int32_t offset) { uint64_t temp_mask = mask; int32_t temp_offset = offset; @@ -117,7 +117,7 @@ __device__ int32_t __fns64(uint64_t mask, uint32_t base, int32_t offset) { return total; } -__device__ int32_t __fns32(uint64_t mask, uint32_t base, int32_t offset) { +__device__ static int32_t __fns32(uint64_t mask, uint32_t base, int32_t offset) { uint64_t temp_mask = mask; int32_t temp_offset = offset; if (offset == 0) {