[U-Boot] [PATCH 2/4] mmc: sdhci: fix build warning

Marek Vasut marek.vasut at gmail.com
Mon Oct 3 12:45:41 CEST 2011


On Monday, October 03, 2011 11:01:39 AM Lei Wen wrote:
> If CONFIG_MMC_SDHCI_IO_ACCESSORS is defined, the following warning would
> shows up:

[...]

> 
> diff --git a/include/sdhci.h b/include/sdhci.h
> index 6d52ce9..6c6a8ea 100644
> --- a/include/sdhci.h
> +++ b/include/sdhci.h
> @@ -219,6 +219,7 @@
>   */
>  #define SDHCI_DEFAULT_BOUNDARY_SIZE	(512 * 1024)
>  #define SDHCI_DEFAULT_BOUNDARY_ARG	(7)
> +struct sdhci_host;
>  struct sdhci_ops {
>  #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
>  	u32             (*read_l)(struct sdhci_host *host, int reg);

Dear Lei Wen,

Please keep the newlines so it's not such an uniform blob of code. Thanks!

Cheers


More information about the U-Boot mailing list