On Thu, Jan 03 2008 at 10:50 +0200, Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote: > This patch simply converts direct uses of ->use_sg and ->request_buffer to > use the wrapper macros. This removes the assumption that the sg list is > overloaded on request_buffer, and that there's an explicit use_sg field. > > The ->request_buffer assumption is explicit in scsi_debug.c's paranoid > checking, so that code had to be shuffled a little. > > Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx> > --- > drivers/scsi/NCR5380.c | 6 +++--- > drivers/scsi/NCR53C9x.c | 6 +++--- > drivers/scsi/aha1542.c | 14 +++++++------- > drivers/scsi/atari_NCR5380.c | 2 +- > drivers/scsi/atp870u.c | 22 +++++++++++----------- > drivers/scsi/eata_pio.c | 6 +++--- > drivers/scsi/fd_mcs.c | 6 +++--- > drivers/scsi/imm.c | 5 ++--- > drivers/scsi/in2000.c | 6 +++--- > drivers/scsi/libsrp.c | 12 ++++++------ > drivers/scsi/pcmcia/nsp_cs.c | 8 ++++---- > drivers/scsi/ppa.c | 4 ++-- > drivers/scsi/qlogicpti.c | 12 ++++++------ > drivers/scsi/scsi_debug.c | 14 +++++++------- > drivers/scsi/seagate.c | 4 ++-- > drivers/scsi/sr.c | 6 +++--- > drivers/scsi/sun3_NCR5380.c | 6 +++--- > drivers/scsi/sun3x_esp.c | 4 ++-- > drivers/scsi/wd33c93.c | 6 +++--- > 21 files changed, 77 insertions(+), 76 deletions(-) > All of these drivers are properly converted in current scsi-misc + scsi-pending. If you are really serious about changing scsi-layer you better work ontop of scsi git trees. Also you can inspect -mm tree it has the scsi_data_buffer patches that does 4/5 what you want. Boaz - To unsubscribe from this list: 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