[scsi] Generalise iscsi_detached_command() to scsi_detached_command()
[people/sha0/gpxe.git] / src / drivers / block / scsi.c
index fe6dcd8..19f99f8 100644 (file)
@@ -44,6 +44,18 @@ block_to_scsi ( struct block_device *blockdev ) {
        return container_of ( blockdev, struct scsi_device, blockdev );
 }
 
+/**
+ * Handle SCSI command with no backing device
+ *
+ * @v scsi             SCSI device
+ * @v command          SCSI command
+ * @ret rc             Return status code
+ */
+int scsi_detached_command ( struct scsi_device *scsi __unused,
+                           struct scsi_command *command __unused ) {
+       return -ENODEV;
+}
+
 /**
  * Issue SCSI command
  *