[radeon-alex:amd-staging-drm-next 696/705] drivers/staging/vboxvideo/vbox_drv.h:98:28: error: field 'bo_global_ref' has incomplete type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   4cab470e01108ad0a7a74c6a30d83e7e8e60aa9e
commit: 852c20fdce7c6702c4d073f2c238c0859344bcb9 [696/705] drm/ttm: initialize globals during device init
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 852c20fdce7c6702c4d073f2c238c0859344bcb9
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/staging/vboxvideo/hgsmi_base.c:23:0:
>> drivers/staging/vboxvideo/vbox_drv.h:98:28: error: field 'bo_global_ref' has incomplete type
      struct ttm_bo_global_ref bo_global_ref;
                               ^~~~~~~~~~~~~
--
   In file included from drivers/staging/vboxvideo/vbox_ttm.c:30:0:
>> drivers/staging/vboxvideo/vbox_drv.h:98:28: error: field 'bo_global_ref' has incomplete type
      struct ttm_bo_global_ref bo_global_ref;
                               ^~~~~~~~~~~~~
   drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_mm_init':
>> drivers/staging/vboxvideo/vbox_ttm.c:204:2: error: implicit declaration of function 'vbox_ttm_global_release'; did you mean 'ttm_mem_global_release'? [-Werror=implicit-function-declaration]
     vbox_ttm_global_release(vbox);
     ^~~~~~~~~~~~~~~~~~~~~~~
     ttm_mem_global_release
   cc1: some warnings being treated as errors

vim +/bo_global_ref +98 drivers/staging/vboxvideo/vbox_drv.h

dd55d44f Hans de Goede 2017-07-06   76  
dd55d44f Hans de Goede 2017-07-06   77  struct vbox_private {
dd55d44f Hans de Goede 2017-07-06   78  	struct drm_device *dev;
dd55d44f Hans de Goede 2017-07-06   79  
dd55d44f Hans de Goede 2017-07-06   80  	u8 __iomem *guest_heap;
dd55d44f Hans de Goede 2017-07-06   81  	u8 __iomem *vbva_buffers;
dd55d44f Hans de Goede 2017-07-06   82  	struct gen_pool *guest_pool;
dd55d44f Hans de Goede 2017-07-06   83  	struct vbva_buf_ctx *vbva_info;
dd55d44f Hans de Goede 2017-07-06   84  	bool any_pitch;
dd55d44f Hans de Goede 2017-07-06   85  	u32 num_crtcs;
dd55d44f Hans de Goede 2017-07-06   86  	/** Amount of available VRAM, including space used for buffers. */
dd55d44f Hans de Goede 2017-07-06   87  	u32 full_vram_size;
dd55d44f Hans de Goede 2017-07-06   88  	/** Amount of available VRAM, not including space used for buffers. */
dd55d44f Hans de Goede 2017-07-06   89  	u32 available_vram_size;
dd55d44f Hans de Goede 2017-07-06   90  	/** Array of structures for receiving mode hints. */
dd55d44f Hans de Goede 2017-07-06   91  	struct vbva_modehint *last_mode_hints;
dd55d44f Hans de Goede 2017-07-06   92  
dd55d44f Hans de Goede 2017-07-06   93  	struct vbox_fbdev *fbdev;
dd55d44f Hans de Goede 2017-07-06   94  
dd55d44f Hans de Goede 2017-07-06   95  	int fb_mtrr;
dd55d44f Hans de Goede 2017-07-06   96  
dd55d44f Hans de Goede 2017-07-06   97  	struct {
dd55d44f Hans de Goede 2017-07-06  @98  		struct ttm_bo_global_ref bo_global_ref;
dd55d44f Hans de Goede 2017-07-06   99  		struct ttm_bo_device bdev;
dd55d44f Hans de Goede 2017-07-06  100  	} ttm;
dd55d44f Hans de Goede 2017-07-06  101  
dd55d44f Hans de Goede 2017-07-06  102  	struct mutex hw_mutex; /* protects modeset and accel/vbva accesses */
dd55d44f Hans de Goede 2017-07-06  103  	/**
dd55d44f Hans de Goede 2017-07-06  104  	 * We decide whether or not user-space supports display hot-plug
dd55d44f Hans de Goede 2017-07-06  105  	 * depending on whether they react to a hot-plug event after the initial
dd55d44f Hans de Goede 2017-07-06  106  	 * mode query.
dd55d44f Hans de Goede 2017-07-06  107  	 */
dd55d44f Hans de Goede 2017-07-06  108  	bool initial_mode_queried;
dd55d44f Hans de Goede 2017-07-06  109  	struct work_struct hotplug_work;
dd55d44f Hans de Goede 2017-07-06  110  	u32 input_mapping_width;
dd55d44f Hans de Goede 2017-07-06  111  	u32 input_mapping_height;
dd55d44f Hans de Goede 2017-07-06  112  	/**
dd55d44f Hans de Goede 2017-07-06  113  	 * Is user-space using an X.Org-style layout of one large frame-buffer
dd55d44f Hans de Goede 2017-07-06  114  	 * encompassing all screen ones or is the fbdev console active?
dd55d44f Hans de Goede 2017-07-06  115  	 */
dd55d44f Hans de Goede 2017-07-06  116  	bool single_framebuffer;
dd55d44f Hans de Goede 2017-07-06  117  	u32 cursor_width;
dd55d44f Hans de Goede 2017-07-06  118  	u32 cursor_height;
dd55d44f Hans de Goede 2017-07-06  119  	u32 cursor_hot_x;
dd55d44f Hans de Goede 2017-07-06  120  	u32 cursor_hot_y;
dd55d44f Hans de Goede 2017-07-06  121  	size_t cursor_data_size;
dd55d44f Hans de Goede 2017-07-06  122  	u8 cursor_data[CURSOR_DATA_SIZE];
dd55d44f Hans de Goede 2017-07-06  123  };
dd55d44f Hans de Goede 2017-07-06  124  

:::::: The code at line 98 was first introduced by commit
:::::: dd55d44f408419278c00887bfcb2261d0caae350 staging: vboxvideo: Add vboxvideo to drivers/staging

:::::: TO: Hans de Goede <hdegoede@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux