Skip to content

block: Fix some inconsistencies in block_{read, write} implementors

Tom Rini u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ata_piix: Fix checkpatch issuesdrivers/block/ata_piix.c drivers/block/ata_piix.h+232 -2670 replies
2/9ata_piix: sata_write must take a const void argument.drivers/block/ata_piix.c drivers/block/ata_piix.h+2 -20 replies
3/9dwc_ahsata: Make sata_write() comply with <part.h>drivers/block/dwc_ahsata.c+4 -41 reply
4/9fsl_sata: Make sata_{read, write}() comply with <part.h>drivers/block/fsl_sata.c+6 -40 replies
5/9pata_bfin: Make sata_{read, write}() comply with <part.h>drivers/block/pata_bfin.c+2 -20 replies
6/9sata_dwc: Make sata_write() use const void, per <part.h>drivers/block/sata_dwc.c+1 -10 replies
7/9sil_sata: Make sata_write() comply with <part.h>drivers/block/sata_sil.c+3 -30 replies
8/9ide.h: Make ide_(read|write) match block_dev_desc_t block_(read|write)include/ide.h+2 -20 replies
9/9sata.h: Make all sata/ata drivers include <sata.h>drivers/block/ata_piix.c drivers/block/ata_piix.h drivers/block/dwc_ahsata.c +9 more+12 -180 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchStefano Babic
1/9
2/9
3/9A-b
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH v1 0/9] block: Fix some inconsistencies in block_{read, write} implementors

Hey all,

I ran into this problem while testing Pavel Herrmann's patch to move externs to <sata.h>. To fix these problems I've taken over the patch. Pavel's patch makes all of the sata drivers include <sata.h>, and this exposed a number of build problems due to type mis-match. Examining these mis-matches leads to this series. Both <ide.h> and <sata.h> 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 <sata.h>

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 <part.h>
fsl_sata: Make sata_{read,write}() comply with <part.h>
pata_bfin: Make sata_{read,write}() comply with <part.h>
sata_dwc: Make sata_write() use const void, per <part.h>
sil_sata: Make sata_write() comply with <part.h> 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(-)
Signature · 1 line
1.7.9.5