net/mlx5: FPGA, Call DMA unmap with the right size
[sfrench/cifs-2.6.git] / drivers / target / target_core_configfs.c
index 72b1cd1bf9d9fdcfc64084f0177df66230e77450..3f4bf126eed066771e72237dd530abf2fe67b45f 100644 (file)
@@ -1197,6 +1197,7 @@ struct configfs_attribute *passthrough_attrib_attrs[] = {
 EXPORT_SYMBOL(passthrough_attrib_attrs);
 
 TB_CIT_SETUP_DRV(dev_attrib, NULL, NULL);
+TB_CIT_SETUP_DRV(dev_action, NULL, NULL);
 
 /* End functions for struct config_item_type tb_dev_attrib_cit */
 
@@ -2940,6 +2941,10 @@ static struct config_group *target_core_make_subdev(
 
        config_group_init_type_name(&dev->dev_group, name, &tb->tb_dev_cit);
 
+       config_group_init_type_name(&dev->dev_action_group, "action",
+                       &tb->tb_dev_action_cit);
+       configfs_add_default_group(&dev->dev_action_group, &dev->dev_group);
+
        config_group_init_type_name(&dev->dev_attrib.da_group, "attrib",
                        &tb->tb_dev_attrib_cit);
        configfs_add_default_group(&dev->dev_attrib.da_group, &dev->dev_group);
@@ -3200,6 +3205,7 @@ static const struct config_item_type target_core_cit = {
 void target_setup_backend_cits(struct target_backend *tb)
 {
        target_core_setup_dev_cit(tb);
+       target_core_setup_dev_action_cit(tb);
        target_core_setup_dev_attrib_cit(tb);
        target_core_setup_dev_pr_cit(tb);
        target_core_setup_dev_wwn_cit(tb);