> +int scsi_dma_map(struct device *dev, struct scsi_cmnd *cmd)
> +{
> + int nseg = 0;
> +
> + if (cmd->use_sg) {
> + struct scatterlist *sg =
> + (struct scatterlist *) cmd->request_buffer;
> +
> + nseg = dma_map_sg(dev, sg, cmd->use_sg, cmd->sc_data_direction);
> + if (unlikely(!nseg))
> + return -ENOMEM;
> + }
> + return nseg;
> +}
> +EXPORT_SYMBOL(scsi_dma_map);
As James already said the device argument should not be needed at all.
Also please add kerneldoc comment describing exported functions.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html