VirtualBox

Changeset 76974 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jan 24, 2019 12:22:48 PM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxvideo: fix mode_valid's return type
bugref:8282: Additions/linux: track kernel changes to vboxvideo in our own tree

The method struct drm_connector_helper_funcs::mode_valid is defined
as returning an 'enum drm_mode_status' but the driver implementation
for this method uses an 'int for it.


Fix this by using 'enum drm_mode_status' in the driver too.


Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@…>
Reviewed-by: Hans de Goede <hdegoede@…>
Signed-off-by: Greg Kroah-Hartman <gregkh@…>

Adjusted by the VirtualBox team.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r76698 r76974  
    573573}
    574574
     575#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) && !defined(RHEL_71)
    575576static int vbox_mode_valid(struct drm_connector *connector,
     577#else
     578static enum drm_mode_status vbox_mode_valid(struct drm_connector *connector,
     579#endif
    576580                           struct drm_display_mode *mode)
    577581{
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