lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 23 Dec 2016 20:33:55 +0800
From:   Jisheng Zhang <jszhang@...vell.com>
To:     <gregkh@...uxfoundation.org>, <jslaby@...e.com>
CC:     <linux-serial@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        Jisheng Zhang <jszhang@...vell.com>
Subject: [PATCH] serial: 8250_dw: #ifdef out dw8250_acpi_match if ACPI isn't set

dw8250_acpi_match is used only when ACPI is enabled. Fix the following
gcc warning when W=1 is set:

drivers/tty/serial/8250/8250_dw.c:640:36: warning: 'dw8250_acpi_match'
defined but not used [-Wunused-const-variable=]

Signed-off-by: Jisheng Zhang <jszhang@...vell.com>
---
 drivers/tty/serial/8250/8250_dw.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index c89fafc972b6..bd43cbfd0783 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -637,6 +637,7 @@ static const struct of_device_id dw8250_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, dw8250_of_match);
 
+#ifdef CONFIG_ACPI
 static const struct acpi_device_id dw8250_acpi_match[] = {
 	{ "INT33C4", 0 },
 	{ "INT33C5", 0 },
@@ -651,6 +652,7 @@ static const struct acpi_device_id dw8250_acpi_match[] = {
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, dw8250_acpi_match);
+#endif
 
 static struct platform_driver dw8250_platform_driver = {
 	.driver = {
-- 
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ