From: Guenter Roeck Date: Thu, 4 Apr 2019 13:28:34 +0000 (-0700) Subject: hwmon: (tmp103) Fix build warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=20894216d8b2217b4367bfe169b620b24cbad22f;p=linux.git hwmon: (tmp103) Fix build warning If CONFIG_OF is not enabled, the following build warning is observed. drivers/hwmon/tmp103.c:173:34: warning: ‘tmp103_of_match’ defined but not used Marking tmp103_of_match as __maybe_unused fixes the problem. Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/tmp103.c b/drivers/hwmon/tmp103.c index bda0fdc1eb532..a91726d33da8c 100644 --- a/drivers/hwmon/tmp103.c +++ b/drivers/hwmon/tmp103.c @@ -170,7 +170,7 @@ static const struct i2c_device_id tmp103_id[] = { }; MODULE_DEVICE_TABLE(i2c, tmp103_id); -static const struct of_device_id tmp103_of_match[] = { +static const struct of_device_id __maybe_unused tmp103_of_match[] = { { .compatible = "ti,tmp103" }, { }, };