VirtualBox

Ignore:
Timestamp:
Oct 17, 2018 2:47:16 PM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxvideo: switch to drm_*_get(), drm_*_put() helpers
bugref:8282: Additions/linux: track kernel changes to vboxvideo in our own tree

Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference()
and drm_*_unreference() helpers.


drm_*_reference() and drm_*_unreference() functions are just
compatibility alias for drm_*_get() and drm_*_put() and should not be
used by new code. So convert all users of compatibility functions to
use the new APIs.


Generated by: scripts/coccinelle/api/drm-get-put.cocci


Signed-off-by: Cihangir Akturk <cakturk@…>
Reviewed-by: Hans de Goede <hdegoede@…>
Signed-off-by: Sean Paul <seanpaul@…>
Link: https://patchwork.freedesktop.org/patch/msgid/1502454794-28558-29-git-

send-email-cakturk@…
Adjusted by the VirtualBox team.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r74773 r74882  
    103103#include "product-generated.h"
    104104
     105#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) && !defined(RHEL_75)
     106static inline void drm_gem_object_put_unlocked(struct drm_gem_object *obj)
     107{
     108        drm_gem_object_unreference_unlocked(obj);
     109}
     110#endif
     111
    105112#define DRIVER_AUTHOR       VBOX_VENDOR
    106113
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette