]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / video: mark acpi_video_get_levels() inline
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 May 2016 21:00:12 +0000 (23:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 May 2016 21:57:02 +0000 (23:57 +0200)
commitbec2ef7aa8293e1fb70381d074616e9f6e90ab7b
tree12efac63f188d986d8cf5531efb9b0ff9548df57
parent3230f02b8ef2de53324ddb224a6a7fa3b7c2297d
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 <arnd@arndb.de>
Fixes: afbe6102f906 (ACPI/video: export acpi_video_get_levels)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/video.h