diff options
author | Michał Kępień <kernel@kempniu.pl> | 2016-01-22 15:27:21 +0100 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-03-23 10:05:41 -0700 |
commit | 92ebd0d1a80930c52eb091d497d4527c4fe556ca (patch) | |
tree | f32f4c06f0c9a7b292cb2ba82f843986c680b805 /drivers/platform | |
parent | bc2104c27aad0c988d23c6abcd46f3313618bdbb (diff) | |
download | linux-92ebd0d1a80930c52eb091d497d4527c4fe556ca.tar.bz2 |
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')
-rw-r--r-- | drivers/platform/x86/dell-smbios.c | 3 | ||||
-rw-r--r-- | drivers/platform/x86/dell-smbios.h | 1 |
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); |