From 05cc6476841f836d1bf4bc6ba204eade7e338dff Mon Sep 17 00:00:00 2001 From: Sameer Sahasrabuddhe Date: Tue, 22 Dec 2020 16:27:42 +0530 Subject: [PATCH] Identifiers with a double underscore "anywhere" are reserved This particular cleanup is limited to just two functions defined in the HIP headers. Change-Id: Ib529685265f2fda90e009b24e7e756e0cf363012 --- include/hip/amd_detail/device_functions.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/hip/amd_detail/device_functions.h b/include/hip/amd_detail/device_functions.h index 66bd6c9699..fa8844d331 100644 --- a/include/hip/amd_detail/device_functions.h +++ b/include/hip/amd_detail/device_functions.h @@ -1112,21 +1112,21 @@ void _wassert(const wchar_t *_msg, const wchar_t *_file, unsigned _line) { } #else /* defined(_WIN32) || defined(_WIN64) */ extern "C" __device__ __attribute__((noinline)) __attribute__((weak)) -void __assert_fail(const char * __assertion, - const char *__file, - unsigned int __line, - const char *__function) +void __assert_fail(const char *assertion, + const char *file, + unsigned int line, + const char *function) { - printf("%s:%u: %s: Device-side assertion `%s' failed.\n", __file, __line, - __function, __assertion); + printf("%s:%u: %s: Device-side assertion `%s' failed.\n", file, line, + function, assertion); __builtin_trap(); } extern "C" __device__ __attribute__((noinline)) __attribute__((weak)) -void __assertfail(const char * __assertion, - const char *__file, - unsigned int __line, - const char *__function, +void __assertfail(const char *assertion, + const char *file, + unsigned int line, + const char *function, size_t charsize) { // ignore all the args for now.