VirtualBox

Ignore:
Timestamp:
Jan 22, 2019 4:50:18 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128315
Message:

Additions/linux/vboxvideo: Fix incorrect type in assignment sparse warning
bugref:8282: Additions/linux: track kernel changes to vboxvideo in our own tree

Sparse emitted the following warning:
../drivers/staging/vboxvideo/vbox_fb.c:173:27: warning: incorrect type in as

signment (different address spaces)

../drivers/staging/vboxvideo/vbox_fb.c:173:27: expected char [noderef] <a

sn:2>*screen_base

../drivers/staging/vboxvideo/vbox_fb.c:173:27: got void *virtual


The vbox_bo buffer object kernel mapping is handled by a call
to ttm_bo_kmap() prior to the assignment of bo->kmap.virtual to
info->screen_base of type char iomem*.
Casting bo->kmap.virtual to char
iomem* in this assignment fixes
the warning.


vboxvideo: Fix address space of expression removal sparse warning


Sparse emitted the following warning:
../drivers/staging/vboxvideo/vbox_main.c:64:25: warning: cast removes address space of expression


vbox->vbva_buffers iomapping is handled by calling vbox_accel_init()
from vbox_hw_init().
force attribute is used in assignment to vbva to fix the warning.


Signed-off-by: Alexander Kapshuk <alexander.kapshuk@…>
Reviewed-by: Hans de Goede <hdegoede@…>
Signed-off-by: Greg Kroah-Hartman <gregkh@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/base.py

    r76553 r76938  
    831831            if self.sHost == 'darwin':      self.sResourcePath = "/Volumes/testrsrc/";
    832832            elif self.sHost == 'freebsd':   self.sResourcePath = "/mnt/testrsrc/";
    833             elif self.sHost == 'linux':     self.sResourcePath = "/mnt/testrsrc/";
     833            elif self.sHost == 'linux':
     834                self.sResourcePath = "/mnt/testrsrc/";
     835                if not os.path.isdir(self.sResourcePath) and utils.isRunningFromCheckout():
     836                    self.sResourcePath = os.path.join(g_ksValidationKitDir, os.pardir, os.pardir, os.pardir, "testrsrc");
    834837            elif self.sHost == 'os2':       self.sResourcePath = "T:/";
    835838            elif self.sHost == 'solaris':   self.sResourcePath = "/mnt/testrsrc/";
    836839            elif self.sHost == 'win':       self.sResourcePath = "T:/";
    837840            else: raise GenError('unknown host OS "%s"' % (self.sHost));
     841        assert os.path.isdir(self.sResourcePath), 'Resource path not found: self.sResourcePath="%s"' % (self.sResourcePath);
    838842
    839843        # PID file for the testdriver.
Note: See TracChangeset for help on using the changeset viewer.

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