summaryrefslogtreecommitdiff
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2016-01-22 17:27:21 +0300
committerDarren Hart <dvhart@linux.intel.com>2016-03-23 20:05:41 +0300
commit92ebd0d1a80930c52eb091d497d4527c4fe556ca (patch)
treef32f4c06f0c9a7b292cb2ba82f843986c680b805 /drivers/platform/x86
parentbc2104c27aad0c988d23c6abcd46f3313618bdbb (diff)
downloadlinux-92ebd0d1a80930c52eb091d497d4527c4fe556ca.tar.xz
dell-smbios: make the SMBIOS buffer static
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>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/dell-smbios.c3
-rw-r--r--drivers/platform/x86/dell-smbios.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c
index 1427899c4f8f..2577cf6aff0f 100644
--- a/drivers/platform/x86/dell-smbios.c
+++ b/drivers/platform/x86/dell-smbios.c
@@ -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;
diff --git a/drivers/platform/x86/dell-smbios.h b/drivers/platform/x86/dell-smbios.h
index f7a51f5ddeed..af653ff29b68 100644
--- a/drivers/platform/x86/dell-smbios.h
+++ b/drivers/platform/x86/dell-smbios.h
@@ -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);