mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
3ae7fb202d
This patch remove the compatibility aliases drm_property_{reference/unreference}_blob of drm_property_blob_{get/put} since all callers have been converted to the prefered _{get/put}. Remove the helpers from the semantic patch drm-get-put-cocci. Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180320133749.GA11695@haneen-VirtualBox
79 lines
1.5 KiB
Plaintext
79 lines
1.5 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
///
|
|
/// Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and
|
|
/// drm_*_unreference() helpers.
|
|
///
|
|
// Confidence: High
|
|
// Copyright: (C) 2017 NVIDIA Corporation
|
|
// Options: --no-includes --include-headers
|
|
//
|
|
|
|
virtual patch
|
|
virtual report
|
|
|
|
@depends on patch@
|
|
expression object;
|
|
@@
|
|
|
|
(
|
|
- drm_connector_reference(object)
|
|
+ drm_connector_get(object)
|
|
|
|
|
- drm_connector_unreference(object)
|
|
+ drm_connector_put(object)
|
|
|
|
|
- drm_framebuffer_reference(object)
|
|
+ drm_framebuffer_get(object)
|
|
|
|
|
- drm_framebuffer_unreference(object)
|
|
+ drm_framebuffer_put(object)
|
|
|
|
|
- drm_gem_object_reference(object)
|
|
+ drm_gem_object_get(object)
|
|
|
|
|
- drm_gem_object_unreference(object)
|
|
+ drm_gem_object_put(object)
|
|
|
|
|
- __drm_gem_object_unreference(object)
|
|
+ __drm_gem_object_put(object)
|
|
|
|
|
- drm_gem_object_unreference_unlocked(object)
|
|
+ drm_gem_object_put_unlocked(object)
|
|
|
|
|
- drm_dev_unref(object)
|
|
+ drm_dev_put(object)
|
|
)
|
|
|
|
@r depends on report@
|
|
expression object;
|
|
position p;
|
|
@@
|
|
|
|
(
|
|
drm_connector_unreference@p(object)
|
|
|
|
|
drm_connector_reference@p(object)
|
|
|
|
|
drm_framebuffer_unreference@p(object)
|
|
|
|
|
drm_framebuffer_reference@p(object)
|
|
|
|
|
drm_gem_object_unreference@p(object)
|
|
|
|
|
drm_gem_object_reference@p(object)
|
|
|
|
|
__drm_gem_object_unreference(object)
|
|
|
|
|
drm_gem_object_unreference_unlocked(object)
|
|
|
|
|
drm_dev_unref@p(object)
|
|
)
|
|
|
|
@script:python depends on report@
|
|
object << r.object;
|
|
p << r.p;
|
|
@@
|
|
|
|
msg="WARNING: use get/put helpers to reference and dereference %s" % (object)
|
|
coccilib.report.print_report(p[0], msg)
|