diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-15 12:09:58 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2017-09-27 23:03:45 +0200 |
commit | b72fce52a14bbe0a94259a95032cf9dd1b3dd143 (patch) | |
tree | 8927767ccc0f961a0b2eab28b3a109fb320db3d2 /drivers/char | |
parent | ipmi: fix unsigned long underflow (diff) | |
download | linux-b72fce52a14bbe0a94259a95032cf9dd1b3dd143.tar.xz linux-b72fce52a14bbe0a94259a95032cf9dd1b3dd143.zip |
char: ipmi: make function ipmi_get_info_from_resources static
The function ipmi_get_info_from_resources is local to the source and
does not need to be in global scope, so make it static. Add in
newline to function declaration to make it checkpatch warning clean.
Cleans up sparse warnings:
symbol 'ipmi_get_info_from_resources' was not declared. Should it
be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index ecd3844917a5..39c55f4052b8 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -2275,8 +2275,9 @@ static void spmi_find_bmc(void) #endif #if defined(CONFIG_DMI) || defined(CONFIG_ACPI) -struct resource *ipmi_get_info_from_resources(struct platform_device *pdev, - struct smi_info *info) +static struct resource * +ipmi_get_info_from_resources(struct platform_device *pdev, + struct smi_info *info) { struct resource *res, *res_second; |