Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vhost-scsi: Fix typos and formatting in comments and logs

This patch corrects several minor typos and formatting issues.
Changes include:

Fixing misspellings like in comments
- "explict" -> "explicit"
- "infight" -> "inflight",
- "with generate" -> "will generate"

formatting in logs
- Correcting log formatting specifier from "%dd" to "%d"
- Adding a missing space in the sysfs emit string to prevent
misinterpreted output like "X86_64on ". changing to "X86_64 on "
- Cleaning up stray semicolons in struct definition endings

These changes improve code readability and consistency.
no functionality changes.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Message-Id: <20250611143932.2443796-1-alok.a.tiwari@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>

authored by

Alok Tiwari and committed by
Michael S. Tsirkin
652abad0 6f0f3d7f

+9 -9
+9 -9
drivers/vhost/scsi.c
··· 152 152 struct vhost_scsi_tpg { 153 153 /* Vhost port target portal group tag for TCM */ 154 154 u16 tport_tpgt; 155 - /* Used to track number of TPG Port/Lun Links wrt to explict I_T Nexus shutdown */ 155 + /* Used to track number of TPG Port/Lun Links wrt to explicit I_T Nexus shutdown */ 156 156 int tv_tpg_port_count; 157 157 /* Used for vhost_scsi device reference to tpg_nexus, protected by tv_tpg_mutex */ 158 158 int tv_tpg_vhost_count; ··· 311 311 312 312 mutex_lock(&vq->mutex); 313 313 314 - /* store old infight */ 314 + /* store old inflight */ 315 315 idx = vs->vqs[i].inflight_idx; 316 316 if (old_inflight) 317 317 old_inflight[i] = &vs->vqs[i].inflights[idx]; 318 318 319 - /* setup new infight */ 319 + /* setup new inflight */ 320 320 vs->vqs[i].inflight_idx = idx ^ 1; 321 321 new_inflight = &vs->vqs[i].inflights[idx ^ 1]; 322 322 kref_init(&new_inflight->kref); ··· 1249 1249 if (!in_iovs_cnt) 1250 1250 return 0; 1251 1251 /* 1252 - * Initiator's normally just put the virtio_scsi_cmd_resp in the first 1252 + * Initiators normally just put the virtio_scsi_cmd_resp in the first 1253 1253 * iov, but just in case they wedged in some data with it we check for 1254 1254 * greater than or equal to the response struct. 1255 1255 */ ··· 1457 1457 cmd = vhost_scsi_get_cmd(vq, tag); 1458 1458 if (IS_ERR(cmd)) { 1459 1459 ret = PTR_ERR(cmd); 1460 - vq_err(vq, "vhost_scsi_get_tag failed %dd\n", ret); 1460 + vq_err(vq, "vhost_scsi_get_tag failed %d\n", ret); 1461 1461 goto err; 1462 1462 } 1463 1463 cmd->tvc_vq = vq; ··· 2609 2609 return -ENOMEM; 2610 2610 } 2611 2611 /* 2612 - * Since we are running in 'demo mode' this call with generate a 2612 + * Since we are running in 'demo mode' this call will generate a 2613 2613 * struct se_node_acl for the vhost_scsi struct se_portal_group with 2614 2614 * the SCSI Initiator port name of the passed configfs group 'name'. 2615 2615 */ ··· 2915 2915 vhost_scsi_wwn_version_show(struct config_item *item, char *page) 2916 2916 { 2917 2917 return sysfs_emit(page, "TCM_VHOST fabric module %s on %s/%s" 2918 - "on "UTS_RELEASE"\n", VHOST_SCSI_VERSION, utsname()->sysname, 2918 + " on "UTS_RELEASE"\n", VHOST_SCSI_VERSION, utsname()->sysname, 2919 2919 utsname()->machine); 2920 2920 } 2921 2921 ··· 2983 2983 vhost_scsi_deregister(); 2984 2984 out: 2985 2985 return ret; 2986 - }; 2986 + } 2987 2987 2988 2988 static void vhost_scsi_exit(void) 2989 2989 { 2990 2990 target_unregister_template(&vhost_scsi_ops); 2991 2991 vhost_scsi_deregister(); 2992 - }; 2992 + } 2993 2993 2994 2994 MODULE_DESCRIPTION("VHOST_SCSI series fabric driver"); 2995 2995 MODULE_ALIAS("tcm_vhost");