All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Hardware Monitoring <linux-hwmon@vger.kernel.org>
Cc: Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>
Subject: [PATCH 08/24] hwmon: (tmp103) Fix build warning
Date: Thu,  4 Apr 2019 08:58:20 -0700	[thread overview]
Message-ID: <1554393516-30316-8-git-send-email-linux@roeck-us.net> (raw)
In-Reply-To: <1554393516-30316-1-git-send-email-linux@roeck-us.net>

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 <linux@roeck-us.net>
---
 drivers/hwmon/tmp103.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/tmp103.c b/drivers/hwmon/tmp103.c
index bda0fdc1eb53..a91726d33da8 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" },
 	{ },
 };
-- 
2.7.4


  parent reply	other threads:[~2019-04-04 15:58 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-04 15:58 [PATCH 01/24] hwmon: (pmbus/tps53679) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 02/24] hwmon: (pmbus/ucd900) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 03/24] hwmon: (ltc4151) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 04/24] hwmon: (lm90) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 05/24] hwmon: (adc128d818) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 06/24] hwmon: (ad7414) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 07/24] hwmon: (tmp102) " Guenter Roeck
2019-04-04 15:58 ` Guenter Roeck [this message]
2019-04-04 15:58 ` [PATCH 09/24] hwmon: (ads1015) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 10/24] hwmon: (adt7475) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 11/24] hwmon: (hih6130) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 12/24] hwmon: (ads7828) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 13/24] hwmon: (w83773g) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 14/24] hwmon: (lm75) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 15/24] hwmon: (ina209) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 16/24] hwmon: (max6697) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 17/24] hwmon: (max6650) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 18/24] hwmon: (lm85) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 19/24] hwmon: (max6621) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 20/24] hwmon: (stts751) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 21/24] hwmon: (tmp421) " Guenter Roeck
2019-04-04 15:58 ` [PATCH 22/24] hwmon: lm95245: Fix build warnings Guenter Roeck
2019-04-04 15:58 ` [PATCH 23/24] hwmon: (lm63) Fix build warning Guenter Roeck
2019-04-04 15:58 ` [PATCH 24/24] hwmon: (ina2xx) " Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554393516-30316-8-git-send-email-linux@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.