Skip to content

Commit e7cf3a3

Browse files
Yang Limartinkpetersen
authored andcommitted
scsi: fnic: Remove unused functions fnic_scsi_host_start/end_tag()
The functions fnic_scsi_host_start_tag() and fnic_scsi_host_end_tag() are not used anywhere, so remove them. silence the warnings: drivers/scsi/fnic/fnic_scsi.c:2175:1: warning: unused function 'fnic_scsi_host_start_tag' drivers/scsi/fnic/fnic_scsi.c:2196:1: warning: unused function 'fnic_scsi_host_end_tag' Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Link: https://lore.kernel.org/r/20230829010222.33393-1-yang.lee@linux.alibaba.com Acked-by: Karan Tilak Kumar <kartilak@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 7a5dee9 commit e7cf3a3

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

drivers/scsi/fnic/fnic_scsi.c

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,39 +2167,6 @@ static int fnic_clean_pending_aborts(struct fnic *fnic,
21672167
return ret;
21682168
}
21692169

2170-
/*
2171-
* fnic_scsi_host_start_tag
2172-
* Allocates tagid from host's tag list
2173-
**/
2174-
static inline int
2175-
fnic_scsi_host_start_tag(struct fnic *fnic, struct scsi_cmnd *sc)
2176-
{
2177-
struct request *rq = scsi_cmd_to_rq(sc);
2178-
struct request_queue *q = rq->q;
2179-
struct request *dummy;
2180-
2181-
dummy = blk_mq_alloc_request(q, REQ_OP_WRITE, BLK_MQ_REQ_NOWAIT);
2182-
if (IS_ERR(dummy))
2183-
return SCSI_NO_TAG;
2184-
2185-
rq->tag = dummy->tag;
2186-
sc->host_scribble = (unsigned char *)dummy;
2187-
2188-
return dummy->tag;
2189-
}
2190-
2191-
/*
2192-
* fnic_scsi_host_end_tag
2193-
* frees tag allocated by fnic_scsi_host_start_tag.
2194-
**/
2195-
static inline void
2196-
fnic_scsi_host_end_tag(struct fnic *fnic, struct scsi_cmnd *sc)
2197-
{
2198-
struct request *dummy = (struct request *)sc->host_scribble;
2199-
2200-
blk_mq_free_request(dummy);
2201-
}
2202-
22032170
/*
22042171
* SCSI Eh thread issues a Lun Reset when one or more commands on a LUN
22052172
* fail to get aborted. It calls driver's eh_device_reset with a SCSI command

0 commit comments

Comments
 (0)