Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hsweeten@visionengravers.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

H Hartley Sweeten and committed by
Linus Torvalds
1615d210 d54ad83f

+2 -1
+1
drivers/video/backlight/apple_bl.c
··· 25 25 #include <linux/pci.h> 26 26 #include <linux/acpi.h> 27 27 #include <linux/atomic.h> 28 + #include <linux/apple_bl.h> 28 29 29 30 static struct backlight_device *apple_backlight_device; 30 31
+1 -1
include/linux/apple_bl.h
··· 5 5 #ifndef _LINUX_APPLE_BL_H 6 6 #define _LINUX_APPLE_BL_H 7 7 8 - #ifdef CONFIG_BACKLIGHT_APPLE 8 + #if defined(CONFIG_BACKLIGHT_APPLE) || defined(CONFIG_BACKLIGHT_APPLE_MODULE) 9 9 10 10 extern int apple_bl_register(void); 11 11 extern void apple_bl_unregister(void);