Commit 2b9505e3 authored by xinhui pan's avatar xinhui pan Committed by Alex Deucher

drm/amdgpu: Fix warning when lockdep is enabled

Set ignore bit to satisfy locpdep.
Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 54eb4ed6
......@@ -740,6 +740,9 @@ static int amdgpu_ras_sysfs_create_feature_node(struct amdgpu_device *adev)
.attr = {
.name = "features",
.mode = S_IRUGO,
#ifdef CONFIG_DEBUG_LOCK_ALLOC
.ignore_lockdep = 1,
#endif
},
.show = amdgpu_ras_sysfs_features_read,
};
......@@ -782,6 +785,9 @@ int amdgpu_ras_sysfs_create(struct amdgpu_device *adev,
.attr = {
.name = obj->fs_data.sysfs_name,
.mode = S_IRUGO,
#ifdef CONFIG_DEBUG_LOCK_ALLOC
.ignore_lockdep = 1,
#endif
},
.show = amdgpu_ras_sysfs_read,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment