[PATCH v3] Bluetooth: btnxpuart: Fix compiler warnings

Neeraj Sanjay Kale posted 1 patch 2 years, 8 months ago
drivers/bluetooth/btnxpuart.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH v3] Bluetooth: btnxpuart: Fix compiler warnings
Posted by Neeraj Sanjay Kale 2 years, 8 months ago
This fixes a compiler warning reported by kernel test robot.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202305161345.eClvTYQ9-lkp@intel.com/
---
v3: Use __maybe_unused instead of CONFIG_OF. (Luiz Augusto von Dentz)
---
 drivers/bluetooth/btnxpuart.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 3a34d7c1475b..52ef44688d38 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -1319,17 +1319,17 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
 	hci_free_dev(hdev);
 }
 
-static struct btnxpuart_data w8987_data = {
+static struct btnxpuart_data w8987_data __maybe_unused = {
 	.helper_fw_name = NULL,
 	.fw_name = FIRMWARE_W8987,
 };
 
-static struct btnxpuart_data w8997_data = {
+static struct btnxpuart_data w8997_data __maybe_unused = {
 	.helper_fw_name = FIRMWARE_HELPER,
 	.fw_name = FIRMWARE_W8997,
 };
 
-static const struct of_device_id nxpuart_of_match_table[] = {
+static const struct of_device_id nxpuart_of_match_table[] __maybe_unused = {
 	{ .compatible = "nxp,88w8987-bt", .data = &w8987_data },
 	{ .compatible = "nxp,88w8997-bt", .data = &w8997_data },
 	{ }
-- 
2.34.1
Re: [PATCH v3] Bluetooth: btnxpuart: Fix compiler warnings
Posted by patchwork-bot+bluetooth@kernel.org 2 years, 8 months ago
Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Thu, 18 May 2023 22:13:47 +0530 you wrote:
> This fixes a compiler warning reported by kernel test robot.
> 
> Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Link: https://lore.kernel.org/oe-kbuild-all/202305161345.eClvTYQ9-lkp@intel.com/
> ---
> v3: Use __maybe_unused instead of CONFIG_OF. (Luiz Augusto von Dentz)
> 
> [...]

Here is the summary with links:
  - [v3] Bluetooth: btnxpuart: Fix compiler warnings
    https://git.kernel.org/bluetooth/bluetooth-next/c/78c8f6e2d7d7

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html