arch: Mass conversion of smp_mb__*()
[firefly-linux-kernel-4.4.55.git] / drivers / usb / gadget / tcm_usb_gadget.c
index 460c266b8e24bf2bf3c4b8459f2cb5443b9694e2..819875c7e3941719e2d3c6573a60e60e4a0be6d7 100644 (file)
@@ -1471,6 +1471,11 @@ static void usbg_queue_tm_rsp(struct se_cmd *se_cmd)
 {
 }
 
+static void usbg_aborted_task(struct se_cmd *se_cmd)
+{
+       return;
+}
+
 static const char *usbg_check_wwn(const char *name)
 {
        const char *n;
@@ -1726,7 +1731,7 @@ static int tcm_usbg_make_nexus(struct usbg_tpg *tpg, char *name)
                pr_err("Unable to allocate struct tcm_vhost_nexus\n");
                goto err_unlock;
        }
-       tv_nexus->tvn_se_sess = transport_init_session();
+       tv_nexus->tvn_se_sess = transport_init_session(TARGET_PROT_NORMAL);
        if (IS_ERR(tv_nexus->tvn_se_sess))
                goto err_free;
 
@@ -1846,7 +1851,7 @@ static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun)
        struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg);
 
        atomic_inc(&tpg->tpg_port_count);
-       smp_mb__after_atomic_inc();
+       smp_mb__after_atomic();
        return 0;
 }
 
@@ -1856,7 +1861,7 @@ static void usbg_port_unlink(struct se_portal_group *se_tpg,
        struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg);
 
        atomic_dec(&tpg->tpg_port_count);
-       smp_mb__after_atomic_dec();
+       smp_mb__after_atomic();
 }
 
 static int usbg_check_stop_free(struct se_cmd *se_cmd)
@@ -1897,6 +1902,7 @@ static struct target_core_fabric_ops usbg_ops = {
        .queue_data_in                  = usbg_send_read_response,
        .queue_status                   = usbg_send_status_response,
        .queue_tm_rsp                   = usbg_queue_tm_rsp,
+       .aborted_task                   = usbg_aborted_task,
        .check_stop_free                = usbg_check_stop_free,
 
        .fabric_make_wwn                = usbg_make_tport,