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

Lei Wen adrian.wenl at gmail.com
Mon Oct 3 13:45:53 CEST 2011


Marek,

On Mon, Oct 3, 2011 at 6:45 PM, Marek Vasut <marek.vasut at gmail.com> wrote:
> 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!
>
Got it,

Thanks,
Lei


More information about the U-Boot mailing list