aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2023-01-23 07:48:31 -0800
committerSteven Price <[email protected]>2023-01-30 14:35:01 +0000
commitd023d6f741c85bb00d2ca43d338327fbc150c113 (patch)
tree3c2c98118b9e7f12c2944a0df382f14cf21b268d /scripts/gcc-plugins/gcc-common.h
parent17ab1ea679be48d905559d968a7622f5f212de6e (diff)
drm/shmem: Cleanup drm_gem_shmem_create_with_handle()
Once we create the handle, the handle owns the reference. Currently nothing was doing anything with the shmem ptr after the handle was created, but let's change drm_gem_shmem_create_with_handle() to not return the pointer, so-as to not encourage problematic use of this function in the future. As a bonus, it makes the code a bit cleaner. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Steven Price <[email protected]> Signed-off-by: Steven Price <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions