]> git.baikalelectronics.ru Git - 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)
committerTony Lindgren <tony@atomide.com>
Tue, 18 May 2021 06:44:42 +0000 (09:44 +0300)
commita2c557ab9712fd4144baf5dd802144a1819eb2ec
tree4b24ada8f5066803a67fbd0aa540ad8ac4a2187a
parenteb236fbc3c1842d713809d8380eabc7641a322a2
ARM: OMAP2+: Fix build warning when mmc_omap is not built

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>
arch/arm/mach-omap2/board-n8x0.c