diff --git a/scst/include/backport.h b/scst/include/backport.h index ea69927d2..809d22062 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -2267,6 +2267,16 @@ static inline u32 scsi_prot_ref_tag(struct scsi_cmnd *scmd) #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0) +/* + * See also commit 11b68e36b167 ("scsi: core: Call scsi_done directly"; v5.16) + */ +static inline void scsi_done(struct scsi_cmnd *cmd) +{ + return cmd->scsi_done(cmd); +} +#endif + /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)