From: Tom Rini Date: Sat, 29 Sep 2012 13:51:47 -0700 Subject: [U-Boot] [PATCH v1 0/9] block: Fix some inconsistencies in block_{read, write} implementors Message-ID: <1348951916-3495-1-git-send-email-trini@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hey all, I ran into this problem while testing Pavel Herrmann's patch to move externs to . To fix these problems I've taken over the patch. Pavel's patch makes all of the sata drivers include , and this exposed a number of build problems due to type mis-match. Examining these mis-matches leads to this series. Both and set prototypes for block_dev_desc_t->block_{read,write} implementors that did not match the prototype. First we fix these implemenators (and in the case of ata_piix.[ch] fix a large number of checkpatch issues. Then we fix the prototypes in the headers. -- Tom Pavel Herrmann (1): sata.h: Make all sata/ata drivers include Tom Rini (8): ata_piix: Fix checkpatch issues ata_piix: sata_write must take a const void argument. dwc_ahsata: Make sata_write() comply with fsl_sata: Make sata_{read,write}() comply with pata_bfin: Make sata_{read,write}() comply with sata_dwc: Make sata_write() use const void, per sil_sata: Make sata_write() comply with ide.h: Make ide_(read|write) match block_dev_desc_t block_(read|write) drivers/block/ata_piix.c | 455 ++++++++++++++++++++---------------------- drivers/block/ata_piix.h | 46 ++--- drivers/block/dwc_ahsata.c | 9 +- drivers/block/dwc_ahsata.h | 2 - drivers/block/fsl_sata.c | 13 +- drivers/block/pata_bfin.c | 5 +- drivers/block/pata_bfin.h | 2 - drivers/block/sata_dwc.c | 5 +- drivers/block/sata_sil.c | 7 +- drivers/block/sata_sil.h | 2 - drivers/block/sata_sil3114.c | 2 +- include/ide.h | 4 +- include/sata.h | 7 +- 13 files changed, 260 insertions(+), 299 deletions(-) -- 1.7.9.5