[U-Boot] [PATCH 09/44] dm: scsi: Remove the forward declarations
Stephen Warren
swarren at wwwdotorg.org
Tue Apr 12 22:04:17 CEST 2016
On 04/09/2016 08:45 PM, Simon Glass wrote:
> Reorder the code to avoid needing forward declarations.
> diff --git a/cmd/scsi.c b/cmd/scsi.c
> @@ -50,6 +50,7 @@ static int scsi_curr_dev; /* current device */
>
> static struct blk_desc scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE];
>
> +#if 0
> /********************************************************************************
> * forward declerations of some Setup Routines
> */
> @@ -70,110 +71,232 @@ static ulong scsi_read(struct blk_desc *block_dev, lbaint_t blknr,
> lbaint_t blkcnt, void *buffer);
> static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr,
> lbaint_t blkcnt, const void *buffer);
> +#endif
I assume that should all be deleted; it was just #if 0 for testing this
change?
More information about the U-Boot
mailing list