diff mbox

acpi/video: Inline acpi_video_set_dmi_backlight_type

Message ID 1435140109-2241-1-git-send-email-bp@alien8.de (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Borislav Petkov June 24, 2015, 10:01 a.m. UTC
From: Borislav Petkov <bp@suse.de>

... and kill this:

  In file included from drivers/gpu/drm/radeon/radeon_acpi.c:29:0:
  include/acpi/video.h:46:13: warning: ‘acpi_video_set_dmi_backlight_type’ defined but not used [-Wunused-function]
   static void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
               ^

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Robert Moore <robert.moore@intel.com>
Cc: Lv Zheng <lv.zheng@intel.com>
Cc: linux-acpi@vger.kernel.org
Cc: devel@acpica.org
Cc: linux-kernel@vger.kernel.org
---
 include/acpi/video.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafael J. Wysocki June 24, 2015, 10:18 p.m. UTC | #1
On Wednesday, June 24, 2015 12:01:49 PM Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
> 
> ... and kill this:
> 
>   In file included from drivers/gpu/drm/radeon/radeon_acpi.c:29:0:
>   include/acpi/video.h:46:13: warning: ‘acpi_video_set_dmi_backlight_type’ defined but not used [-Wunused-function]
>    static void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
>                ^
> 
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <lenb@kernel.org>
> Cc: Robert Moore <robert.moore@intel.com>
> Cc: Lv Zheng <lv.zheng@intel.com>
> Cc: linux-acpi@vger.kernel.org
> Cc: devel@acpica.org
> Cc: linux-kernel@vger.kernel.org

Applied, thanks!

> ---
>  include/acpi/video.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/acpi/video.h b/include/acpi/video.h
> index a7d7f1043e9c..e840b294c6f5 100644
> --- a/include/acpi/video.h
> +++ b/include/acpi/video.h
> @@ -43,7 +43,7 @@ static inline enum acpi_backlight_type acpi_video_get_backlight_type(void)
>  {
>  	return acpi_backlight_vendor;
>  }
> -static void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
> +static inline void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
>  {
>  }
>  #endif
>
diff mbox

Patch

diff --git a/include/acpi/video.h b/include/acpi/video.h
index a7d7f1043e9c..e840b294c6f5 100644
--- a/include/acpi/video.h
+++ b/include/acpi/video.h
@@ -43,7 +43,7 @@  static inline enum acpi_backlight_type acpi_video_get_backlight_type(void)
 {
 	return acpi_backlight_vendor;
 }
-static void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
+static inline void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
 {
 }
 #endif