diff options
| author | Marek Vasut <[email protected]> | 2016-12-01 02:06:32 +0100 |
|---|---|---|
| committer | Jaehoon Chung <[email protected]> | 2016-12-01 13:51:08 +0900 |
| commit | ce9eca9438d69306441060e7ac90e45d47882f34 (patch) | |
| tree | 96813db2cd9ec1d78b644c24d766b7ceba24b419 /drivers | |
| parent | cd3d48807dfb64f521fcbc30034d4e921d842a5b (diff) | |
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 <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mmc/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 434eb28dc16..6a19bbf5041 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1708,7 +1708,7 @@ static int mmc_complete_init(struct mmc *mmc) int mmc_init(struct mmc *mmc) { int err = 0; - unsigned start; + __maybe_unused unsigned start; #ifdef CONFIG_DM_MMC struct mmc_uclass_priv *upriv = dev_get_uclass_priv(mmc->dev); |
