Patch "net: mvmdio: fix compilation warning" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: mvmdio: fix compilation warning

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-mvmdio-fix-compilation-warning.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 152db9be213b4e4d914f5c120104e17c038f6054
Author: Marcin Wojtas <mw@xxxxxxxxxxxx>
Date:   Mon Nov 15 16:30:24 2021 +0100

    net: mvmdio: fix compilation warning
    
    [ Upstream commit 2460386bef0b9b98b71728d3c173e15558b78d82 ]
    
    The kernel test robot reported a following issue:
    
    >> drivers/net/ethernet/marvell/mvmdio.c:426:36: warning:
    unused variable 'orion_mdio_acpi_match' [-Wunused-const-variable]
       static const struct acpi_device_id orion_mdio_acpi_match[] = {
                                          ^
       1 warning generated.
    
    Fix that by surrounding the variable by appropriate ifdef.
    
    Fixes: c54da4c1acb1 ("net: mvmdio: add ACPI support")
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Signed-off-by: Marcin Wojtas <mw@xxxxxxxxxxxx>
    Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
    Link: https://lore.kernel.org/r/20211115153024.209083-1-mw@xxxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/marvell/mvmdio.c b/drivers/net/ethernet/marvell/mvmdio.c
index 62a97c46fba05..ef878973b8597 100644
--- a/drivers/net/ethernet/marvell/mvmdio.c
+++ b/drivers/net/ethernet/marvell/mvmdio.c
@@ -429,12 +429,14 @@ static const struct of_device_id orion_mdio_match[] = {
 };
 MODULE_DEVICE_TABLE(of, orion_mdio_match);
 
+#ifdef CONFIG_ACPI
 static const struct acpi_device_id orion_mdio_acpi_match[] = {
 	{ "MRVL0100", BUS_TYPE_SMI },
 	{ "MRVL0101", BUS_TYPE_XSMI },
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, orion_mdio_acpi_match);
+#endif
 
 static struct platform_driver orion_mdio_driver = {
 	.probe = orion_mdio_probe,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux