VirtualBox

Changeset 39830 in vbox


Ignore:
Timestamp:
Jan 22, 2012 1:05:07 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75834
Message:

additions/linux: compilation with linux-3.3.0-rc1 (untested, please review).

File:
1 edited

Legend:

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

    r39762 r39830  
    8686#endif
    8787}
     88#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
     89/* since linux-3.3.0-rc1 drm_driver::fops is pointer */
     90static struct file_operations driver_fops =
     91{
     92        .owner = THIS_MODULE,
     93        .open = drm_open,
     94        .release = drm_release,
     95        .unlocked_ioctl = drm_ioctl,
     96        .mmap = drm_mmap,
     97        .poll = drm_poll,
     98        .fasync = drm_fasync,
     99};
     100#endif
    88101
    89102static struct drm_driver driver =
     
    97110    .get_reg_ofs = drm_core_get_reg_ofs,
    98111#endif
     112# if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
    99113    .fops =
    100114    {
     
    113127        .fasync = drm_fasync,
    114128    },
     129#else /* LINUX_VERSION_CODE > KERNEL_VERSION(3,3,0) */
     130    .fops = NULL,
     131#endif
    115132#if LINUX_VERSION_CODE < KERNEL_VERSION (2, 6, 39) && !defined(DRM_RHEL61)
    116133    .pci_driver =
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