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 16/24] hwmon: (max6697) Fix build warning
Date: Thu,  4 Apr 2019 08:58:28 -0700	[thread overview]
Message-ID: <1554393516-30316-16-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/max6697.c:653:34: warning:
	‘max6697_of_match’ defined but not used

Mark max6697_of_match as __maybe_unused to fix the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/hwmon/max6697.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c
index da43f7ae3de1..328793eaee3c 100644
--- a/drivers/hwmon/max6697.c
+++ b/drivers/hwmon/max6697.c
@@ -650,7 +650,7 @@ static const struct i2c_device_id max6697_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, max6697_id);
 
-static const struct of_device_id max6697_of_match[] = {
+static const struct of_device_id __maybe_unused max6697_of_match[] = {
 	{
 		.compatible = "maxim,max6581",
 		.data = (void *)max6581
-- 
2.7.4


  parent reply	other threads:[~2019-04-04 15:59 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) " 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 ` [PATCH 08/24] hwmon: (tmp103) " Guenter Roeck
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 ` Guenter Roeck [this message]
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-16-git-send-email-linux@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --subject='Re: [PATCH 16/24] hwmon: (max6697) Fix build warning' \
    /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

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.