Re: [patch 02/28] drivers/scsi/aic7xxx/: possible cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 08, 2006 at 12:14:18AM -0800, akpm@xxxxxxxx wrote:
> From: Adrian Bunk <bunk@xxxxxxxxx>
> 
> - make needlessly global code static
> 
> - #if 0 the following unused global functions:
>   - aic79xx_core.c: ahd_print_scb
>   - aic79xx_core.c: ahd_suspend
>   - aic79xx_core.c: ahd_resume
>   - aic79xx_core.c: ahd_dump_scbs
>   - aic79xx_osm.c: ahd_softc_comp
> 
>  
> @@ -155,7 +155,7 @@ typedef enum {
>  	AHDMSG_1B,
>  	AHDMSG_2B,
>  	AHDMSG_EXT
> -} ahd_msgtype;
> +	} ahd_msgtype;
>  static int		ahd_sent_msg(struct ahd_softc *ahd, ahd_msgtype type,
>  				     u_int msgval, int full);
>  static int		ahd_parse_msg(struct ahd_softc *ahd,

 - Introduces  some  wrong  whitespace  changes

> @@ -238,10 +238,33 @@ static int		ahd_handle_target_cmd(struct
>  					      struct target_cmd *cmd);
>  #endif
>  
> +static int		ahd_abort_scbs(struct ahd_softc *ahd, int target,
> +				       char channel, int lun, u_int tag,
> +				       role_t role, uint32_t status);

 - prototypes some functions, while ...

> @@ -295,11 +318,44 @@ ahd_set_active_fifo(struct ahd_softc *ah
>  	}
>  }
>  
> +static __inline void
> +ahd_unbusy_tcl(struct ahd_softc *ahd, u_int tcl)
> +{
> +	ahd_busy_tcl(ahd, tcl, SCB_LIST_NULL);
> +}
> +
> +/*
> + * Determine whether the sequencer reported a residual
> + * for this SCB/transaction.
> + */
> +static __inline void
> +ahd_update_residual(struct ahd_softc *ahd, struct scb *scb)
> +{
> +	uint32_t sgptr;
> +
> +	sgptr = ahd_le32toh(scb->hscb->sgptr);
> +	if ((sgptr & SG_STATUS_VALID) != 0)
> +		ahd_calc_residual(ahd, scb);
> +}
> +
> +static __inline void
> +ahd_complete_scb(struct ahd_softc *ahd, struct scb *scb)
> +{
> +	uint32_t sgptr;
> +
> +	sgptr = ahd_le32toh(scb->hscb->sgptr);
> +	if ((sgptr & SG_STATUS_VALID) != 0)
> +		ahd_handle_scb_status(ahd, scb);
> +	else
> +		ahd_done(ahd, scb);
> +}
> +
> +

 - ... moving others around.  Consistency?

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux