Skip to content

Commit e4f35c1

Browse files
arndbrafaeljw
authored andcommitted
ACPI / video: mark acpi_video_get_levels() inline
A recent patch added a stub function for acpi_video_get_levels when CONFIG_ACPI_VIDEO is disabled. However, this is marked as 'static' and causes a warning about an unused function whereever the header gets included: In file included from ../drivers/gpu/drm/radeon/radeon_acpi.c:28:0: include/acpi/video.h:74:12: error: 'acpi_video_get_levels' defined but not used [-Werror=unused-function] This makes the declaration 'static inline', which gets rid of the warning. Signed-off-by: Arnd Bergmann <[email protected]> Fixes: 0595009 (ACPI/video: export acpi_video_get_levels) Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a3c8933 commit e4f35c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/acpi/video.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static inline bool acpi_video_handles_brightness_key_presses(void)
7171
{
7272
return false;
7373
}
74-
static int acpi_video_get_levels(struct acpi_device *device,
74+
static inline int acpi_video_get_levels(struct acpi_device *device,
7575
struct acpi_video_device_brightness **dev_br)
7676
{
7777
return -ENODEV;

0 commit comments

Comments
 (0)