]> Git Repo - linux.git/commit
drm/amdgpu: fix a warning in amdgpu_ras.c (v2)
authorAlex Deucher <[email protected]>
Fri, 25 Sep 2020 14:29:01 +0000 (10:29 -0400)
committerAlex Deucher <[email protected]>
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 <[email protected]>
Reviewed-by: Luben Tuikov <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
This page took 0.069727 seconds and 4 git commands to generate.