summaryrefslogtreecommitdiff
path: root/drivers/acpi/osi.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-02-02 14:06:50 +0100
committerJakub Kicinski <kuba@kernel.org>2021-02-02 19:02:26 -0800
commit32d1bbb1d609f5a78b0c95e2189f398a52a3fbf7 (patch)
tree5989fd1e0837b84cc58f400573eb9ed32029ef22 /drivers/acpi/osi.c
parentfca23f37f3a7f6296d1ae98606871fd7ed565a0b (diff)
net: fec: Silence M5272 build warnings
If CONFIG_M5272=y: drivers/net/ethernet/freescale/fec_main.c: In function ‘fec_restart’: drivers/net/ethernet/freescale/fec_main.c:948:6: warning: unused variable ‘val’ [-Wunused-variable] 948 | u32 val; | ^~~ drivers/net/ethernet/freescale/fec_main.c: In function ‘fec_get_mac’: drivers/net/ethernet/freescale/fec_main.c:1667:28: warning: unused variable ‘pdata’ [-Wunused-variable] 1667 | struct fec_platform_data *pdata = dev_get_platdata(&fep->pdev->dev); | ^~~~~ Fix this by moving the variable declarations inside the existing #ifdef blocks. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20210202130650.865023-1-geert@linux-m68k.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/acpi/osi.c')
0 files changed, 0 insertions, 0 deletions