Skip to content

Commit

Permalink
hwmon: (k10temp) Make function get_raw_temp static
Browse files Browse the repository at this point in the history
The function get_raw_temp is local to the source and does not need to
be in global scope, so make it static.

Cleans up sparse warning:
drivers/hwmon/k10temp.c:149:14: warning: symbol 'get_raw_temp' was not
declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Colin Ian King authored and Guenter Roeck committed Jun 1, 2018
1 parent 853d5e4 commit fb8eefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/k10temp.c
Original file line number Diff line number Diff line change
@@ -146,7 +146,7 @@ static void read_tempreg_nb_f17(struct pci_dev *pdev, u32 *regval)
F17H_M01H_REPORTED_TEMP_CTRL_OFFSET, regval);
}

unsigned int get_raw_temp(struct k10temp_data *data)
static unsigned int get_raw_temp(struct k10temp_data *data)
{
unsigned int temp;
u32 regval;

0 comments on commit fb8eefd

Please sign in to comment.