History

ACPI: implement acpi_handle_debug in terms of _dynamic_func_call

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.

Rasmus Villemoes committed 7 years ago

Commit f1ebe041 parent 902f99a1 file · +2 −6Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/acpi.h+2−6
@@ -982,12 +982,8 @@ void __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, const c · 981 unmodified lines
982#else982#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, ...) \
985do { \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#else987#else
992#define acpi_handle_debug(handle, fmt, ...) \988#define acpi_handle_debug(handle, fmt, ...) \
993({ \989({ \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t