File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,8 @@ static struct attribute_group *gvt_vgpu_type_groups[] = {
120
120
[0 ... NR_MAX_INTEL_VGPU_TYPES - 1 ] = NULL ,
121
121
};
122
122
123
- static bool intel_get_gvt_attrs (struct attribute * * * type_attrs ,
124
- struct attribute_group * * * intel_vgpu_type_groups )
123
+ static bool intel_get_gvt_attrs (struct attribute_group * * * intel_vgpu_type_groups )
125
124
{
126
- * type_attrs = gvt_type_attrs ;
127
125
* intel_vgpu_type_groups = gvt_vgpu_type_groups ;
128
126
return true;
129
127
}
Original file line number Diff line number Diff line change @@ -570,8 +570,7 @@ struct intel_gvt_ops {
570
570
void (* vgpu_deactivate )(struct intel_vgpu * );
571
571
struct intel_vgpu_type * (* gvt_find_vgpu_type )(struct intel_gvt * gvt ,
572
572
const char * name );
573
- bool (* get_gvt_attrs )(struct attribute * * * type_attrs ,
574
- struct attribute_group * * * intel_vgpu_type_groups );
573
+ bool (* get_gvt_attrs )(struct attribute_group * * * intel_vgpu_type_groups );
575
574
int (* vgpu_query_plane )(struct intel_vgpu * vgpu , void * );
576
575
int (* vgpu_get_dmabuf )(struct intel_vgpu * vgpu , unsigned int );
577
576
int (* write_protect_handler )(struct intel_vgpu * , u64 , void * ,
Original file line number Diff line number Diff line change @@ -1597,12 +1597,10 @@ static struct mdev_parent_ops intel_vgpu_ops = {
1597
1597
1598
1598
static int kvmgt_host_init (struct device * dev , void * gvt , const void * ops )
1599
1599
{
1600
- struct attribute * * kvm_type_attrs ;
1601
1600
struct attribute_group * * kvm_vgpu_type_groups ;
1602
1601
1603
1602
intel_gvt_ops = ops ;
1604
- if (!intel_gvt_ops -> get_gvt_attrs (& kvm_type_attrs ,
1605
- & kvm_vgpu_type_groups ))
1603
+ if (!intel_gvt_ops -> get_gvt_attrs (& kvm_vgpu_type_groups ))
1606
1604
return - EFAULT ;
1607
1605
intel_vgpu_ops .supported_type_groups = kvm_vgpu_type_groups ;
1608
1606
You can’t perform that action at this time.
0 commit comments