diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-12-29 15:43:25 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-01-10 01:03:53 +0100 |
| commit | e254b758976f651c47ec902d92306bd49f452ab0 (patch) | |
| tree | 2d2696c2e500515fac2e94dd49acb16a6743a954 /include/linux/trace_recursion.h | |
| parent | d88f27d7f4a1861fe6d548d9a9c203e59489880a (diff) | |
driver core: make bus_find_device_by_acpi_dev() stub prototype aligned
Currently the bus_find_device_by_acpi_dev() stub for !CONFIG_ACPI case
takes a const void * parameter instead of const struct acpi_device *.
As long as it's a pointer, we may named it as we want to with the help
of a forward declaration. Hence move the declaration out of the
ifdeffery and use the same prototype in both cases. This adds a bit of
an additional type checking at a compilation time.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251229144325.1252197-1-andriy.shevchenko@linux.intel.com
[ Fix minor typo in the commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux/trace_recursion.h')
0 files changed, 0 insertions, 0 deletions
