VirtualBox

Changeset 55808 in vbox


Ignore:
Timestamp:
May 11, 2015 6:31:56 PM (10 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: fix warnings.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
3 edited

Legend:

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

    r53793 r55808  
    9999    struct drm_device *dev = afbdev->helper.dev;
    100100    struct vbox_private *vbox = dev->dev_private;
    101     struct drm_crtc *crtc;
    102101    int i;
    103102
     
    174173        /* assume equal stride for now */
    175174        src_offset = dst_offset = i * afbdev->afb.base.pitches[0] + (x * bpp);
    176         memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, (x2 - x + 1) * bpp);
     175        memcpy_toio(bo->kmap.virtual + src_offset, (char *)afbdev->sysram + src_offset, (x2 - x + 1) * bpp);
    177176    }
    178177    /* Not sure why the original code subtracted 1 here, but I will keep it that
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r53793 r55808  
    363363{
    364364    struct vbox_private *vbox = dev->dev_private;
    365     int i;
    366365
    367366    LogFunc(("vboxvideo: %d\n", __LINE__));
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r53793 r55808  
    485485    pDrmDev = pVBoxConnector->base.dev;
    486486    pVBox = pDrmDev->dev_private;
    487     if (sscanf(psz, "%dx%d\n%c", &cX, &cY, &ch) != 2)
     487    if (sscanf(psz, "%5dx%5d\n%c", &cX, &cY, &ch) != 2)
    488488        return -EINVAL;
    489489    if (   cX < 64 || cX > VBE_DISPI_MAX_XRES
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