Skip to content
Snippets Groups Projects
Commit 0d2f15f9 authored by Lei Wen's avatar Lei Wen Committed by Andy Fleming
Browse files

mmc: sdhci: fix build warning


If CONFIG_MMC_SDHCI_IO_ACCESSORS is defined, the following warning would
shows up:

include/sdhci.h:224: warning: 'struct sdhci_host' declared inside
parameter list
include/sdhci.h:224: warning: its scope is only this definition or
declaration, which is probably not what you want
include/sdhci.h:225: warning: 'struct sdhci_host' declared inside
parameter list
include/sdhci.h:226: warning: 'struct sdhci_host' declared inside
parameter list
include/sdhci.h:227: warning: 'struct sdhci_host' declared inside
parameter list
include/sdhci.h:228: warning: 'struct sdhci_host' declared inside
parameter list
include/sdhci.h:229: warning: 'struct sdhci_host' declared inside
parameter list

Signed-off-by: default avatarLei Wen <leiwen@marvell.com>
parent 2c2ec4c9
No related branches found
No related tags found
No related merge requests found
...@@ -214,6 +214,9 @@ ...@@ -214,6 +214,9 @@
*/ */
#define SDHCI_QUIRK_32BIT_DMA_ADDR (1 << 0) #define SDHCI_QUIRK_32BIT_DMA_ADDR (1 << 0)
/* to make gcc happy */
struct sdhci_host;
/* /*
* Host SDMA buffer boundary. Valid values from 4K to 512K in powers of 2. * Host SDMA buffer boundary. Valid values from 4K to 512K in powers of 2.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment