[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210602101722.2276638-18-lee.jones@linaro.org>
Date: Wed, 2 Jun 2021 11:17:18 +0100
From: Lee Jones <lee.jones@...aro.org>
To: lee.jones@...aro.org
Cc: linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>, linux-ide@...r.kernel.org
Subject: [PATCH 17/21] ide: ide-acpi: Mark debugging variable 'bus' as __maybe_unused
Fixes the following W=1 kernel build warning(s):
drivers/ide/ide-acpi.c: In function ‘ide_get_dev_handle’:
drivers/ide/ide-acpi.c:126:15: warning: variable ‘bus’ set but not used [-Wunused-but-set-variable]
Cc: "David S. Miller" <davem@...emloft.net>
Cc: linux-ide@...r.kernel.org
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/ide/ide-acpi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c
index 9a4ec281b9854..816ebbbf699b5 100644
--- a/drivers/ide/ide-acpi.c
+++ b/drivers/ide/ide-acpi.c
@@ -123,7 +123,8 @@ static int ide_get_dev_handle(struct device *dev, acpi_handle *handle,
u64 *pcidevfn)
{
struct pci_dev *pdev = to_pci_dev(dev);
- unsigned int bus, devnum, func;
+ unsigned int __maybe_unused bus;
+ unsigned int devnum, func;
u64 addr;
acpi_handle dev_handle;
acpi_status status;
--
2.31.1
Powered by blists - more mailing lists