]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ARM: OMAP2+: Fix build warning when mmc_omap is not built
authorYongqiang Liu <liuyongqiang13@huawei.com>
Thu, 1 Apr 2021 13:15:33 +0000 (13:15 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:27:28 +0000 (19:27 +0200)
commit49e8b680116f1bb7ab5221ccf980c05dfd655d8b
tree2ec7118c90a9d2a28b2d6ea718583e37ac9dcd43
parent60e054777b906b1053e8a724afc77b87b7d584d2
ARM: OMAP2+: Fix build warning when mmc_omap is not built

BugLink: https://bugs.launchpad.net/bugs/1933851
[ Upstream commit 040ab72ee10ea88e1883ad143b3e2b77596abc31 ]

GCC reports the following warning with W=1:

arch/arm/mach-omap2/board-n8x0.c:325:19: warning:
variable 'index' set but not used [-Wunused-but-set-variable]
325 |  int bit, *openp, index;
    |                   ^~~~~

Fix this by moving CONFIG_MMC_OMAP to cover the rest codes
in the n8x0_mmc_callback().

Signed-off-by: Yongqiang Liu <liuyongqiang13@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/arm/mach-omap2/board-n8x0.c