With coming changes on x86-64, all dynamic debug descriptors in a translation unit must have distinct names. The macro _dynamic_func_call takes care of that. No functional change.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -982,12 +982,8 @@ void __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, const c · 981 unmodified lines | |||
| 982 | #else | 982 | #else |
| 983 | #if defined(CONFIG_DYNAMIC_DEBUG) | 983 | #if defined(CONFIG_DYNAMIC_DEBUG) |
| 984 | #define acpi_handle_debug(handle, fmt, ...) \ | 984 | #define acpi_handle_debug(handle, fmt, ...) \ |
| 985 | do { \ | 985 | _dynamic_func_call(fmt, __acpi_handle_debug, \ |
| 986 | DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ | 986 | handle, pr_fmt(fmt), ##__VA_ARGS__) |
| 987 | if (DYNAMIC_DEBUG_BRANCH(descriptor)) \ | ||
| 988 | __acpi_handle_debug(&descriptor, handle, pr_fmt(fmt), \ | ||
| 989 | ##__VA_ARGS__); \ | ||
| 990 | } while (0) | ||
| 991 | #else | 987 | #else |
| 992 | #define acpi_handle_debug(handle, fmt, ...) \ | 988 | #define acpi_handle_debug(handle, fmt, ...) \ |
| 993 | ({ \ | 989 | ({ \ |