]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: Fix warning if debug() is not used
authorMarek Vasut <marex@denx.de>
Thu, 1 Dec 2016 01:06:32 +0000 (02:06 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 1 Dec 2016 04:51:08 +0000 (13:51 +0900)
commita1e95721525f02b261a8815692fd8c407c968e70
tree96813db2cd9ec1d78b644c24d766b7ceba24b419
parentd193190d750d76d3eeceba567885d3819457dd81
mmc: Fix warning if debug() is not used

If debug() is not used, then the whole content of debug(...) will
be removed by the preprocessor, which will result in the following
warning. This patch adds __maybe_unused annotation to fix this.

drivers/mmc/mmc.c: In function ‘mmc_init’:
drivers/mmc/mmc.c:1685:11: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
  unsigned start;

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c