scsi: target: tcmu: Rename TCM_DEV_BIT_PLUGGED to TCMU_DEV_BIT_PLUGGED
authorBodo Stroesser <bostroesser@gmail.com>
Wed, 12 May 2021 14:06:54 +0000 (16:06 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 15 May 2021 02:58:27 +0000 (22:58 -0400)
The bit definition TCM_DEV_BIT_PLUGGED should correctly be named
TCMU_DEV_BIT_PLUGGED, since all other bits in the same bitfield have prefix
TCMU_.

Link: https://lore.kernel.org/r/20210512140654.31249-1-bostroesser@gmail.com
Signed-off-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c

index 198d25ae482ab6fcd83a675b6b73c1ac4ab956e3..9866d7b49ab863c54bb6e20107e0125ba48bd2d6 100644 (file)
@@ -121,7 +121,7 @@ struct tcmu_dev {
 #define TCMU_DEV_BIT_BROKEN 1
 #define TCMU_DEV_BIT_BLOCKED 2
 #define TCMU_DEV_BIT_TMR_NOTIFY 3
-#define TCM_DEV_BIT_PLUGGED 4
+#define TCMU_DEV_BIT_PLUGGED 4
        unsigned long flags;
 
        struct uio_info uio_info;
@@ -980,7 +980,7 @@ static void tcmu_unplug_device(struct se_dev_plug *se_plug)
        struct se_device *se_dev = se_plug->se_dev;
        struct tcmu_dev *udev = TCMU_DEV(se_dev);
 
-       clear_bit(TCM_DEV_BIT_PLUGGED, &udev->flags);
+       clear_bit(TCMU_DEV_BIT_PLUGGED, &udev->flags);
        uio_event_notify(&udev->uio_info);
 }
 
@@ -988,7 +988,7 @@ static struct se_dev_plug *tcmu_plug_device(struct se_device *se_dev)
 {
        struct tcmu_dev *udev = TCMU_DEV(se_dev);
 
-       if (!test_and_set_bit(TCM_DEV_BIT_PLUGGED, &udev->flags))
+       if (!test_and_set_bit(TCMU_DEV_BIT_PLUGGED, &udev->flags))
                return &udev->se_plug;
 
        return NULL;
@@ -1122,7 +1122,7 @@ static int queue_cmd_ring(struct tcmu_cmd *tcmu_cmd, sense_reason_t *scsi_err)
 
        list_add_tail(&tcmu_cmd->queue_entry, &udev->inflight_queue);
 
-       if (!test_bit(TCM_DEV_BIT_PLUGGED, &udev->flags))
+       if (!test_bit(TCMU_DEV_BIT_PLUGGED, &udev->flags))
                uio_event_notify(&udev->uio_info);
 
        return 0;