aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorVaibhav Jain <[email protected]>2015-09-23 03:07:59 +0000
committerMichael Ellerman <[email protected]>2015-09-23 10:57:13 +0000
commitd6eb71a6d2eda21c8cd7a4dcd6207a0d94eb6ae7 (patch)
treed62d1b7e66ee629b5ba8ec51cec3b17f68c37482 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentpowerpc: Wire up sys_membarrier() (diff)
downloadkernel-d6eb71a6d2eda21c8cd7a4dcd6207a0d94eb6ae7.tar.gz
kernel-d6eb71a6d2eda21c8cd7a4dcd6207a0d94eb6ae7.zip
cxl: Fix lockdep warning while creating afu_err_buff attribute
Presently a lockdep warning is reported during creation of afu_err_buff bin_attribute for the afu. This is caused due to the variable attr.key not pointing to a static class key, hence the function lockdep_init_map reports this warning: BUG: key <some-address> not in .data! The patch fixes this issue by calling sysfs_attr_init on the attr_eb.attr structure before populating it with the afu_err_buff file details. This will populate the attr.key variable with a static class key so that lockdep_init_map stops complaining about the lockdep key not being static. Reported-by: Daniel Axtens <[email protected]> Signed-off-by: Vaibhav Jain <[email protected]> Acked-by: Ian Munsie <[email protected]> Reviewed-by: Daniel Axtens <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions