OSDN Git Service

dell-smbios: make the SMBIOS buffer static
authorMichał Kępień <kernel@kempniu.pl>
Fri, 22 Jan 2016 14:27:21 +0000 (15:27 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 23 Mar 2016 17:05:41 +0000 (10:05 -0700)
As dell-laptop has been changed to always retrieve a pointer to the
SMBIOS buffer using dell_smbios_get_buffer(), the SMBIOS buffer can be
marked static.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-smbios.c
drivers/platform/x86/dell-smbios.h

index 1427899..2577cf6 100644 (file)
@@ -31,8 +31,7 @@ struct calling_interface_structure {
        struct calling_interface_token tokens[];
 } __packed;
 
-struct calling_interface_buffer *buffer;
-EXPORT_SYMBOL_GPL(buffer);
+static struct calling_interface_buffer *buffer;
 static DEFINE_MUTEX(buffer_mutex);
 
 static int da_command_address;
index f7a51f5..af653ff 100644 (file)
@@ -35,7 +35,6 @@ struct calling_interface_token {
        };
 };
 
-extern struct calling_interface_buffer *buffer;
 extern struct calling_interface_token *da_tokens;
 
 struct calling_interface_buffer *dell_smbios_get_buffer(void);