aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2022-12-05 12:12:04 +0000
committerGreg Kroah-Hartman <[email protected]>2022-12-06 15:55:25 +0000
commit6149f83b3165955e9519de483b30b26d1518ad0f (patch)
tree08a6718c5c71627408336a607d08cf62dc920422 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentcontainer_of: add container_of_const() that preserves const-ness of the pointer (diff)
downloadkernel-6149f83b3165955e9519de483b30b26d1518ad0f.tar.gz
kernel-6149f83b3165955e9519de483b30b26d1518ad0f.zip
device.h: move kobj_to_dev() to use container_of_const()
Instead of rolling our own const-checking logic, use the newly introduced container_of_const() to handle it all for us automatically. Cc: Thomas Gleixner <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions