Skip to content

Commit 5fea167

Browse files
gregkhalexdeucher
authored andcommitted
drm/amdkfd: use default_groups in kobj_type
There are currently 2 ways to create a set of sysfs files for a kobj_type, through the default_attrs field, and the default_groups field. Move the amdkfd sysfs code to use default_groups field which has been the preferred way since aa30f47 ("kobject: Add support for default attribute groups to kobj_type") so that we can soon get rid of the obsolete default_attrs field. Cc: Felix Kuehling <[email protected]> Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Cc: "Pan, Xinhui" <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7ff61cd commit 5fea167

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_process.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,15 @@ static struct attribute *procfs_queue_attrs[] = {
461461
&attr_queue_gpuid,
462462
NULL
463463
};
464+
ATTRIBUTE_GROUPS(procfs_queue);
464465

465466
static const struct sysfs_ops procfs_queue_ops = {
466467
.show = kfd_procfs_queue_show,
467468
};
468469

469470
static struct kobj_type procfs_queue_type = {
470471
.sysfs_ops = &procfs_queue_ops,
471-
.default_attrs = procfs_queue_attrs,
472+
.default_groups = procfs_queue_groups,
472473
};
473474

474475
static const struct sysfs_ops procfs_stats_ops = {

0 commit comments

Comments
 (0)