From: Lad, Prabhakar Date: Thu, 5 Feb 2015 14:49:41 +0000 (+0000) Subject: Sony-laptop: Fix sparse warning (make undeclared var static) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=76fe63f58b44c7112fbdab4d490fb6848f12122b;p=linux-beck.git Sony-laptop: Fix sparse warning (make undeclared var static) Fix the following sparse warning: sony-laptop.c:1035:29: warning: symbol 'sony_bl_props' was not declared. Should it be static? Signed-off-by: Lad, Prabhakar Signed-off-by: Darren Hart --- diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 6dd1c0e7dcd9..e51c1e753607 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -1032,7 +1032,7 @@ struct sony_backlight_props { u8 offset; u8 maxlvl; }; -struct sony_backlight_props sony_bl_props; +static struct sony_backlight_props sony_bl_props; static int sony_backlight_update_status(struct backlight_device *bd) {