/* Send a single uevent (scsi_event) to the associated scsi_device.  */
static void scsi_evt_emit(struct scsi_device *sdev, struct scsi_event *evt)
/* Send a single uevent (scsi_event) to the associated scsi_device.  */
static void scsi_evt_emit(struct scsi_device *sdev, struct scsi_event *evt)
{
	int idx = 0;
	char *envp[3];
	switch (evt->evt_type) {
	case SDEV_EVT_MEDIA_CHANGE:
		envp[idx++] = "SDEV_MEDIA_CHANGE=1";
		break;
	default:
		break;
	}
	envp[idx++] = NULL;
	kobject_uevent_env(&sdev->sdev_gendev.kobj, KOBJ_CHANGE, envp);
}