Skip to content

Commit f103b2e

Browse files
amezingroeck
authored andcommitted
hwmon: (nzxt-smart2) Fix "unused function" warning
Fix warning when building with CONFIG_PM=n (and CONFIG_WERROR=y): drivers/hwmon/nzxt-smart2.c:707:12: error: ‘nzxt_smart2_hid_reset_resume’ defined but not used [-Werror=unused-function] 707 | static int nzxt_smart2_hid_reset_resume(struct hid_device *hdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com> Link: https://lore.kernel.org/r/20211228014813.832491-1-mezin.alexander@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 565210c commit f103b2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/nzxt-smart2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int nzxt_smart2_hid_raw_event(struct hid_device *hdev,
704704
return 0;
705705
}
706706

707-
static int nzxt_smart2_hid_reset_resume(struct hid_device *hdev)
707+
static int __maybe_unused nzxt_smart2_hid_reset_resume(struct hid_device *hdev)
708708
{
709709
struct drvdata *drvdata = hid_get_drvdata(hdev);
710710

0 commit comments

Comments
 (0)