Skip to content

Commit

Permalink
hwmon: (nzxt-smart2) Fix "unused function" warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aleksandr Mezin authored and Guenter Roeck committed Dec 28, 2021
1 parent 565210c commit f103b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/nzxt-smart2.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ static int nzxt_smart2_hid_raw_event(struct hid_device *hdev,
return 0;
}

static int nzxt_smart2_hid_reset_resume(struct hid_device *hdev)
static int __maybe_unused nzxt_smart2_hid_reset_resume(struct hid_device *hdev)
{
struct drvdata *drvdata = hid_get_drvdata(hdev);

Expand Down

0 comments on commit f103b2e

Please sign in to comment.