]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: fix a warning in amdgpu_ras.c (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Sep 2020 14:29:01 +0000 (10:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Sep 2020 21:03:22 +0000 (17:03 -0400)
commita069a9eb73f896b84d8cfda2f2d436c1844c4e92
treea6ae906a2fdfc9f3ceb1fa08aeee8c4b90c50a8e
parentc3d4d45db2fa05462629dbb0857146f5bedfc558
drm/amdgpu: fix a warning in amdgpu_ras.c (v2)

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c: In function ‘amdgpu_ras_fs_init’:
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1284:2: warning: ignoring return value of ‘sysfs_create_group’, declared with attribute warn_unused_result [-Wunused-result]
 1284 |  sysfs_create_group(&adev->dev->kobj, &group);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

v2: just print an error for sysfs group creation failure

Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c