From: jsg Date: Fri, 13 Jan 2023 01:50:53 +0000 (+0000) Subject: drm/amdkfd: Fix kernel warning during topology setup X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9e9d74e1ee9d3d811699df4b92f6b3e517685ea1;p=openbsd drm/amdkfd: Fix kernel warning during topology setup From Mukul Joshi 306888b1246bf44e703b6f1ccc746c2746c1a981 in linux-6.1.y/6.1.5 cf97eb7e47d4671084c7e114c5d88a3d0540ecbd in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_topology.c b/sys/dev/pci/drm/amd/amdkfd/kfd_topology.c index 3f0a4a41590..35a9b702508 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_topology.c +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_topology.c @@ -801,7 +801,7 @@ static int kfd_build_sysfs_node_entry(struct kfd_topology_device *dev, p2plink->attr.name = "properties"; p2plink->attr.mode = KFD_SYSFS_FILE_MODE; - sysfs_attr_init(&iolink->attr); + sysfs_attr_init(&p2plink->attr); ret = sysfs_create_file(p2plink->kobj, &p2plink->attr); if (ret < 0) return ret;