[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z5E7hcmnkXUhyy9t@google.com>
Date: Wed, 22 Jan 2025 10:40:05 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Yu-Chun Lin <eleanor15x@...il.com>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
jserv@...s.ncku.edu.tw, visitorckw@...il.com,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] Input: wdt87xx_i2c - fix compiler warning
On Sun, Jan 19, 2025 at 04:43:12PM +0800, Yu-Chun Lin wrote:
> As reported by the kernel test robot, the following warning occur:
>
> >> drivers/input/touchscreen/wdt87xx_i2c.c:1166:36: warning: 'wdt87xx_acpi_id' defined but not used [-Wunused-const-variable=]
> 1166 | static const struct acpi_device_id wdt87xx_acpi_id[] = {
> | ^~~~~~~~~~~~~~~
>
> The 'wdt87xx_acpi_id' array is only used when CONFIG_ACPI is enabled.
> Wrapping its definition and 'MODULE_DEVICE_TABLE' in '#ifdef CONFIG_ACPI'
> prevents a compiler warning when ACPI is disabled.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501181549.uzdlBwuN-lkp@intel.com/
> Signed-off-by: Yu-Chun Lin <eleanor15x@...il.com>
Applied, thank you.
--
Dmitry
Powered by blists - more mailing lists