Skip to content

Commit 1e169ca

Browse files
Colin Ian Kingdvhart
authored andcommitted
platform/x86: dell-smbios: make a function and a pointer static
The function dell_smbios_smm_call and pointer platform_device are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: warning: symbol 'platform_device' was not declared. Should it be static? warning: symbol 'dell_smbios_smm_call' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
1 parent 58e73aa commit 1e169ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/dell-smbios-smm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
static int da_command_address;
2525
static int da_command_code;
2626
static struct calling_interface_buffer *buffer;
27-
struct platform_device *platform_device;
27+
static struct platform_device *platform_device;
2828
static DEFINE_MUTEX(smm_mutex);
2929

3030
static const struct dmi_system_id dell_device_table[] __initconst = {
@@ -82,7 +82,7 @@ static void find_cmd_address(const struct dmi_header *dm, void *dummy)
8282
}
8383
}
8484

85-
int dell_smbios_smm_call(struct calling_interface_buffer *input)
85+
static int dell_smbios_smm_call(struct calling_interface_buffer *input)
8686
{
8787
struct smi_cmd command;
8888
size_t size;

0 commit comments

Comments
 (0)