hwmon: (k10temp) Make function get_raw_temp static
authorColin Ian King <colin.king@canonical.com>
Fri, 1 Jun 2018 13:37:13 +0000 (14:37 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 1 Jun 2018 15:56:35 +0000 (08:56 -0700)
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>
drivers/hwmon/k10temp.c

index d3fae5a8e508951e3da826e8b509c486b92a5be2..17c6460ae35129de67bbb51be5a5e8ecff3efb28 100644 (file)
@@ -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;