From: H Hartley Sweeten Date: Tue, 29 May 2012 22:07:14 +0000 (-0700) Subject: drivers/video/backlight/apple_bl.c: include header for exported symbol prototypes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1615d210dbc9c67c38b66bcff53233452dbaae22;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git drivers/video/backlight/apple_bl.c: include header for exported symbol prototypes Include the header to pickup the exported symbol prototype. Quiets the sparse warning: warning: symbol 'apple_bl_register' was not declared. Should it be static? warning: symbol 'apple_bl_unregister' was not declared. Should it be static? [akpm@linux-foundation.org: fix resulting build error] Signed-off-by: H Hartley Sweeten Cc: Richard Purdie Signed-off-by: Florian Tobias Schandinat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/apple_bl.c b/drivers/video/backlight/apple_bl.c index a523b255e12..ef5ca0d6cd2 100644 --- a/drivers/video/backlight/apple_bl.c +++ b/drivers/video/backlight/apple_bl.c @@ -25,6 +25,7 @@ #include #include #include +#include static struct backlight_device *apple_backlight_device; diff --git a/include/linux/apple_bl.h b/include/linux/apple_bl.h index 47bedc0eee6..0a95e730fce 100644 --- a/include/linux/apple_bl.h +++ b/include/linux/apple_bl.h @@ -5,7 +5,7 @@ #ifndef _LINUX_APPLE_BL_H #define _LINUX_APPLE_BL_H -#ifdef CONFIG_BACKLIGHT_APPLE +#if defined(CONFIG_BACKLIGHT_APPLE) || defined(CONFIG_BACKLIGHT_APPLE_MODULE) extern int apple_bl_register(void); extern void apple_bl_unregister(void);