aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hwmon.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-10-02 23:10:47 +0200
committerGuenter Roeck <linux@roeck-us.net>2018-10-10 20:37:13 -0700
commitead21c77d709cfba593c42f4d71c09e469a19448 (patch)
tree1e9255b490174ee445dc25fb6b23a831c0bc281b /include/linux/hwmon.h
parenthwmon: (ina3221) Read channel input source info from DT (diff)
downloadwireguard-linux-ead21c77d709cfba593c42f4d71c09e469a19448.tar.xz
wireguard-linux-ead21c77d709cfba593c42f4d71c09e469a19448.zip
hwmon: (ina3221) mark PM functions as __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get a warning about unused suspend/resume functions: drivers/hwmon/ina3221.c:451:12: error: 'ina3221_resume' defined but not used [-Werror=unused-function] static int ina3221_resume(struct device *dev) drivers/hwmon/ina3221.c:428:12: error: 'ina3221_suspend' defined but not used [-Werror=unused-function] static int ina3221_suspend(struct device *dev) Picking the correct #ifdef check is hard, so let's remove that check and instead mark the functions as __maybe_unused to let the compiler silently drop them instead. Fixes: 7de1ab9dac8e ("hwmon: (ina3221) Add suspend and resume functions") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/hwmon.h')
0 files changed, 0 insertions, 0 deletions