All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	linux-nfc@lists.01.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 09/12] nfc: pn544: mark ACPI and OF device ID tables as maybe unused
Date: Fri, 28 May 2021 08:41:57 -0400	[thread overview]
Message-ID: <20210528124200.79655-9-krzysztof.kozlowski@canonical.com> (raw)
In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com>

The driver can match either via OF or ACPI ID tables.  If one
configuration is disabled, the table will be unused:

    drivers/nfc/pn544/i2c.c:53:36: warning:
        ‘pn544_hci_i2c_acpi_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 drivers/nfc/pn544/i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c
index 4ac8cb262559..aac778c5ddd2 100644
--- a/drivers/nfc/pn544/i2c.c
+++ b/drivers/nfc/pn544/i2c.c
@@ -50,7 +50,7 @@ static const struct i2c_device_id pn544_hci_i2c_id_table[] = {
 
 MODULE_DEVICE_TABLE(i2c, pn544_hci_i2c_id_table);
 
-static const struct acpi_device_id pn544_hci_i2c_acpi_match[] = {
+static const struct acpi_device_id pn544_hci_i2c_acpi_match[] __maybe_unused = {
 	{"NXP5440", 0},
 	{}
 };
@@ -951,7 +951,7 @@ static int pn544_hci_i2c_remove(struct i2c_client *client)
 	return 0;
 }
 
-static const struct of_device_id of_pn544_i2c_match[] = {
+static const struct of_device_id of_pn544_i2c_match[] __maybe_unused = {
 	{ .compatible = "nxp,pn544-i2c", },
 	{},
 };
-- 
2.27.0


WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	linux-nfc@lists.01.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [linux-nfc] [PATCH 09/12] nfc: pn544: mark ACPI and OF device ID tables as maybe unused
Date: Fri, 28 May 2021 08:41:57 -0400	[thread overview]
Message-ID: <20210528124200.79655-9-krzysztof.kozlowski@canonical.com> (raw)
In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com>

The driver can match either via OF or ACPI ID tables.  If one
configuration is disabled, the table will be unused:

    drivers/nfc/pn544/i2c.c:53:36: warning:
        ‘pn544_hci_i2c_acpi_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 drivers/nfc/pn544/i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c
index 4ac8cb262559..aac778c5ddd2 100644
--- a/drivers/nfc/pn544/i2c.c
+++ b/drivers/nfc/pn544/i2c.c
@@ -50,7 +50,7 @@ static const struct i2c_device_id pn544_hci_i2c_id_table[] = {
 
 MODULE_DEVICE_TABLE(i2c, pn544_hci_i2c_id_table);
 
-static const struct acpi_device_id pn544_hci_i2c_acpi_match[] = {
+static const struct acpi_device_id pn544_hci_i2c_acpi_match[] __maybe_unused = {
 	{"NXP5440", 0},
 	{}
 };
@@ -951,7 +951,7 @@ static int pn544_hci_i2c_remove(struct i2c_client *client)
 	return 0;
 }
 
-static const struct of_device_id of_pn544_i2c_match[] = {
+static const struct of_device_id of_pn544_i2c_match[] __maybe_unused = {
 	{ .compatible = "nxp,pn544-i2c", },
 	{},
 };
-- 
2.27.0
_______________________________________________
Linux-nfc mailing list -- linux-nfc@lists.01.org
To unsubscribe send an email to linux-nfc-leave@lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: linux-nfc@lists.01.org
Subject: [PATCH 09/12] nfc: pn544: mark ACPI and OF device ID tables as maybe unused
Date: Fri, 28 May 2021 08:41:57 -0400	[thread overview]
Message-ID: <20210528124200.79655-9-krzysztof.kozlowski@canonical.com> (raw)
In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com>

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

The driver can match either via OF or ACPI ID tables.  If one
configuration is disabled, the table will be unused:

    drivers/nfc/pn544/i2c.c:53:36: warning:
        ‘pn544_hci_i2c_acpi_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 drivers/nfc/pn544/i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c
index 4ac8cb262559..aac778c5ddd2 100644
--- a/drivers/nfc/pn544/i2c.c
+++ b/drivers/nfc/pn544/i2c.c
@@ -50,7 +50,7 @@ static const struct i2c_device_id pn544_hci_i2c_id_table[] = {
 
 MODULE_DEVICE_TABLE(i2c, pn544_hci_i2c_id_table);
 
-static const struct acpi_device_id pn544_hci_i2c_acpi_match[] = {
+static const struct acpi_device_id pn544_hci_i2c_acpi_match[] __maybe_unused = {
 	{"NXP5440", 0},
 	{}
 };
@@ -951,7 +951,7 @@ static int pn544_hci_i2c_remove(struct i2c_client *client)
 	return 0;
 }
 
-static const struct of_device_id of_pn544_i2c_match[] = {
+static const struct of_device_id of_pn544_i2c_match[] __maybe_unused = {
 	{ .compatible = "nxp,pn544-i2c", },
 	{},
 };
-- 
2.27.0

  parent reply	other threads:[~2021-05-28 12:43 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 12:41 [PATCH 01/12] nfc: fdp: correct kerneldoc for structure Krzysztof Kozlowski
2021-05-28 12:41 ` Krzysztof Kozlowski
2021-05-28 12:41 ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 02/12] nfc: fdp: drop ACPI_PTR from device ID table Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 03/12] nfc: port100: correct kerneldoc for structure Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 04/12] nfc: pn533: drop of_match_ptr from device ID table Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 05/12] nfc: mrvl: mark OF device ID tables as maybe unused Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 06/12] nfc: mrvl: skip impossible NCI_MAX_PAYLOAD_SIZE check Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 07/12] nfc: pn533: mark OF device ID tables as maybe unused Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 08/12] nfc: s3fwrn5: " Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` Krzysztof Kozlowski [this message]
2021-05-28 12:41   ` [PATCH 09/12] nfc: pn544: mark ACPI and " Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 10/12] nfc: st-nci: " Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 11/12] nfc: st21nfca: " Krzysztof Kozlowski
2021-05-28 12:41   ` Krzysztof Kozlowski
2021-05-28 12:41   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 12:42 ` [PATCH 12/12] nfc: st95hf: " Krzysztof Kozlowski
2021-05-28 12:42   ` Krzysztof Kozlowski
2021-05-28 12:42   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-28 22:20 ` [PATCH 01/12] nfc: fdp: correct kerneldoc for structure patchwork-bot+netdevbpf

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=20210528124200.79655-9-krzysztof.kozlowski@canonical.com \
    --to=krzysztof.kozlowski@canonical.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfc@lists.01.org \
    --cc=netdev@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.