Commit 26797d8b authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (bt1-pvt) Mark is_visible functions static

0-day reports:

drivers/hwmon/bt1-pvt.c:303:16: warning:
	no previous declaration for 'pvt_limit_is_visible'
drivers/hwmon/bt1-pvt.c:308:16: warning:
	no previous declaration for 'pvt_alarm_is_visible'

Declare both functions static.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 87976ce2("hwmon: Add Baikal-T1 PVT sensor driver")
Cc: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 33251694
...@@ -300,12 +300,12 @@ static irqreturn_t pvt_soft_isr(int irq, void *data) ...@@ -300,12 +300,12 @@ static irqreturn_t pvt_soft_isr(int irq, void *data)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
inline umode_t pvt_limit_is_visible(enum pvt_sensor_type type) static inline umode_t pvt_limit_is_visible(enum pvt_sensor_type type)
{ {
return 0644; return 0644;
} }
inline umode_t pvt_alarm_is_visible(enum pvt_sensor_type type) static inline umode_t pvt_alarm_is_visible(enum pvt_sensor_type type)
{ {
return 0444; return 0444;
} }
...@@ -462,12 +462,12 @@ static irqreturn_t pvt_hard_isr(int irq, void *data) ...@@ -462,12 +462,12 @@ static irqreturn_t pvt_hard_isr(int irq, void *data)
#define pvt_soft_isr NULL #define pvt_soft_isr NULL
inline umode_t pvt_limit_is_visible(enum pvt_sensor_type type) static inline umode_t pvt_limit_is_visible(enum pvt_sensor_type type)
{ {
return 0; return 0;
} }
inline umode_t pvt_alarm_is_visible(enum pvt_sensor_type type) static inline umode_t pvt_alarm_is_visible(enum pvt_sensor_type type)
{ {
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment