X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fiscsi%2Fscsi-lowlevel.c;h=7090401c0bffee9bc06e94042e5b4692a8a6f0b3;hp=7199bf824653cec9ea2bbd659f1edd5da34bbc2a;hb=63e80faf9b42fbe73e25c804dd734b6179e42c24;hpb=cb522f25cada0d3429c69d0fbaa5bd337a422cdd diff --git a/ccan/iscsi/scsi-lowlevel.c b/ccan/iscsi/scsi-lowlevel.c index 7199bf82..7090401c 100644 --- a/ccan/iscsi/scsi-lowlevel.c +++ b/ccan/iscsi/scsi-lowlevel.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 2010 by Ronnie Sahlberg This program is free software; you can redistribute it and/or modify @@ -15,7 +15,7 @@ along with this program; if not, see . */ /* - * would be nice if this could grow into a full blown library for scsi to + * would be nice if this could grow into a full blown library for scsi to * 1, build a CDB * 2, check how big a complete data-in structure needs to be * 3, unmarshall data-in into a real structure @@ -29,6 +29,7 @@ #include #include #include +#include #include "scsi-lowlevel.h" #include "dlinklist.h" @@ -44,7 +45,7 @@ void scsi_free_scsi_task(struct scsi_task *task) free(task); } -void *scsi_malloc(struct scsi_task *task, size_t size) +static void *scsi_malloc(struct scsi_task *task, size_t size) { struct scsi_allocated_memory *mem; @@ -161,7 +162,7 @@ static struct scsi_reportluns_list *scsi_reportluns_datain_unmarshall(struct scs } return list; -} +} /* @@ -199,7 +200,8 @@ struct scsi_task *scsi_cdb_readcapacity10(int lba, int pmi) /* * parse the data in blob and calcualte the size of a full readcapacity10 datain structure */ -static int scsi_readcapacity10_datain_getfullsize(struct scsi_task *task _U_) +static int scsi_readcapacity10_datain_getfullsize(struct scsi_task *task + UNUSED) { return 8; } @@ -282,7 +284,7 @@ static int scsi_inquiry_datain_getfullsize(struct scsi_task *task) /* * unmarshall the data in blob for inquiry into a structure */ -void *scsi_inquiry_datain_unmarshall(struct scsi_task *task) +static void *scsi_inquiry_datain_unmarshall(struct scsi_task *task) { struct scsi_inquiry_standard *inq;