提交 92ebd0d1 编写于 作者: M Michał Kępień 提交者: Darren Hart

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: NMichał Kępień <kernel@kempniu.pl>
Reviewed-by: NPali Rohár <pali.rohar@gmail.com>
Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
上级 bc2104c2
...@@ -31,8 +31,7 @@ struct calling_interface_structure { ...@@ -31,8 +31,7 @@ struct calling_interface_structure {
struct calling_interface_token tokens[]; struct calling_interface_token tokens[];
} __packed; } __packed;
struct calling_interface_buffer *buffer; static struct calling_interface_buffer *buffer;
EXPORT_SYMBOL_GPL(buffer);
static DEFINE_MUTEX(buffer_mutex); static DEFINE_MUTEX(buffer_mutex);
static int da_command_address; static int da_command_address;
......
...@@ -35,7 +35,6 @@ struct calling_interface_token { ...@@ -35,7 +35,6 @@ struct calling_interface_token {
}; };
}; };
extern struct calling_interface_buffer *buffer;
extern struct calling_interface_token *da_tokens; extern struct calling_interface_token *da_tokens;
struct calling_interface_buffer *dell_smbios_get_buffer(void); struct calling_interface_buffer *dell_smbios_get_buffer(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册