VirtualBox

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


Ignore:
Timestamp:
Jun 28, 2022 6:50:10 PM (2 years ago)
Author:
vboxsync
Message:

Linux host and guest drivers: fix clang warnings, bugref:10247.

Location:
trunk/src/VBox/Additions/linux
Files:
4 edited

Legend:

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

    r95211 r95411  
    796796{
    797797        struct drm_file *file_priv;
    798         struct vbox_private *vbox;
    799798        int ret = -EINVAL;
    800799
     
    803802
    804803        file_priv = filp->private_data;
    805         vbox = file_priv->minor->dev->dev_private;
    806804
    807805#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
     
    810808        ret = drm_gem_mmap(filp, vma);
    811809#else
    812         ret = ttm_bo_mmap(filp, vma, &vbox->ttm.bdev);
     810        ret = ttm_bo_mmap(filp, vma, &file_priv->minor->dev->dev_private->ttm.bdev);
    813811#endif
    814812        return ret;
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r94531 r95411  
    830830            pReq->Create.CreateParms.Info.Attr.fMode         = (S_ISDIR(mode) ? RTFS_TYPE_DIRECTORY : RTFS_TYPE_FILE)
    831831                                                             | sf_access_permissions_to_vbox(mode);
    832             pReq->Create.CreateParms.Info.Attr.enmAdditional = RTFSOBJATTRADD_NOTHING;
     832            pReq->Create.CreateParms.Info.Attr.enmAdditional = SHFLFSOBJATTRADD_NOTHING;
    833833
    834834            SFLOGFLOW(("%s calling VbglR0SfHostReqCreate(%s, %#x)\n", pszPrefix, path->String.ach, pReq->Create.CreateParms.CreateFlags));
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r93115 r95411  
    4848        char       *out             = name;
    4949        size_t      out_bound_len   = name_bound_len - 1;
    50         size_t      out_len         = 0;
    5150
    5251        while (in_bound_len) {
     
    6463                    out           += cbOutEnc;
    6564                    out_bound_len -= cbOutEnc;
    66                     out_len       += cbOutEnc;
    6765
    6866                    in            += cbInEnc;
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r93115 r95411  
    194194    if ((unsigned)info->length >= RT_UOFFSETOF(struct vbsf_mount_info_new, enmCacheMode)) {
    195195        switch (info->enmCacheMode) {
    196             case kVbsfCacheMode_Default:
     196            case kVbsfCacheMode_Default: RT_FALL_THRU();
    197197            case kVbsfCacheMode_Strict:
    198198                break;
     
    11401140            seq_printf(m, ",dirbuf=%u", pSuperInfo->cbDirBuf);
    11411141        switch (pSuperInfo->enmCacheMode) {
    1142             default: AssertFailed();
     1142            default: AssertFailed(); RT_FALL_THRU();
    11431143            case kVbsfCacheMode_Strict:
    11441144                break;
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