aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi/acmacros.h')
-rw-r--r--include/acpi/acmacros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h
index 5b100cef8dfc..fcdef0a4b01b 100644
--- a/include/acpi/acmacros.h
+++ b/include/acpi/acmacros.h
@@ -505,8 +505,10 @@
505 * The Name parameter should be the procedure name as a quoted string. 505 * The Name parameter should be the procedure name as a quoted string.
506 * This is declared as a local string ("my_function_name") so that it can 506 * This is declared as a local string ("my_function_name") so that it can
507 * be also used by the function exit macros below. 507 * be also used by the function exit macros below.
508 * Note: (const char) is used to be compatible with the debug interfaces
509 * and macros such as __FUNCTION__.
508 */ 510 */
509#define ACPI_FUNCTION_NAME(name) char *_acpi_function_name = name; 511#define ACPI_FUNCTION_NAME(name) const char *_acpi_function_name = name;
510 512
511#else 513#else
512/* Compiler supports __FUNCTION__ (or equivalent) -- Ignore this macro */ 514/* Compiler supports __FUNCTION__ (or equivalent) -- Ignore this macro */