Skip to content

Commit 1615d21

Browse files
H Hartley Sweetentorvalds
authored andcommitted
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>
1 parent d54ad83 commit 1615d21

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/video/backlight/apple_bl.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/pci.h>
2626
#include <linux/acpi.h>
2727
#include <linux/atomic.h>
28+
#include <linux/apple_bl.h>
2829

2930
static struct backlight_device *apple_backlight_device;
3031

‎include/linux/apple_bl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef _LINUX_APPLE_BL_H
66
#define _LINUX_APPLE_BL_H
77

8-
#ifdef CONFIG_BACKLIGHT_APPLE
8+
#if defined(CONFIG_BACKLIGHT_APPLE) || defined(CONFIG_BACKLIGHT_APPLE_MODULE)
99

1010
extern int apple_bl_register(void);
1111
extern void apple_bl_unregister(void);

0 commit comments

Comments
 (0)