[drm-tip:drm-tip 5/10] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1666:30: error: passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer type

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

 



tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   f7fe8bac92bfd7ceef37f46fbeb9a6c1bac66125
commit: 2c6557b1fc4d6cc24938a27742ac396be7b55e70 [5/10] Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip
config: x86_64-randconfig-s4-12120354 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 2c6557b1fc4d6cc24938a27742ac396be7b55e70
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_mode_config_init':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1666:30: error: passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
     drm_atomic_private_obj_init(&adev->dm.atomic_obj,
                                 ^
   In file included from include/drm/drm_dp_mst_helper.h:27:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
   include/drm/drm_atomic.h:437:6: note: expected 'struct drm_device *' but argument is of type 'struct drm_private_obj *'
    void drm_atomic_private_obj_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1667:9: error: passing argument 2 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
            &state->base,
            ^
   In file included from include/drm/drm_dp_mst_helper.h:27:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
   include/drm/drm_atomic.h:437:6: note: expected 'struct drm_private_obj *' but argument is of type 'struct drm_private_state *'
    void drm_atomic_private_obj_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1668:9: error: passing argument 3 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
            &dm_atomic_state_funcs);
            ^
   In file included from include/drm/drm_dp_mst_helper.h:27:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
   include/drm/drm_atomic.h:437:6: note: expected 'struct drm_private_state *' but argument is of type 'struct drm_private_state_funcs *'
    void drm_atomic_private_obj_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1666:2: error: too few arguments to function 'drm_atomic_private_obj_init'
     drm_atomic_private_obj_init(&adev->dm.atomic_obj,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_dp_mst_helper.h:27:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:31:
   include/drm/drm_atomic.h:437:6: note: declared here
    void drm_atomic_private_obj_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/drm_atomic_private_obj_init +1666 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

eb3dc897 Nicholas Kazlauskas 2018-11-22  1631  
4562236b Harry Wentland      2017-09-12  1632  static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev)
4562236b Harry Wentland      2017-09-12  1633  {
eb3dc897 Nicholas Kazlauskas 2018-11-22  1634  	struct dm_atomic_state *state;
4562236b Harry Wentland      2017-09-12  1635  	int r;
4562236b Harry Wentland      2017-09-12  1636  
4562236b Harry Wentland      2017-09-12  1637  	adev->mode_info.mode_config_initialized = true;
4562236b Harry Wentland      2017-09-12  1638  
4562236b Harry Wentland      2017-09-12  1639  	adev->ddev->mode_config.funcs = (void *)&amdgpu_dm_mode_funcs;
54f5499a Andrey Grodzovsky   2017-04-20  1640  	adev->ddev->mode_config.helper_private = &amdgpu_dm_mode_config_helperfuncs;
4562236b Harry Wentland      2017-09-12  1641  
4562236b Harry Wentland      2017-09-12  1642  	adev->ddev->mode_config.max_width = 16384;
4562236b Harry Wentland      2017-09-12  1643  	adev->ddev->mode_config.max_height = 16384;
4562236b Harry Wentland      2017-09-12  1644  
4562236b Harry Wentland      2017-09-12  1645  	adev->ddev->mode_config.preferred_depth = 24;
4562236b Harry Wentland      2017-09-12  1646  	adev->ddev->mode_config.prefer_shadow = 1;
1f6010a9 David Francis       2018-08-15  1647  	/* indicates support for immediate flip */
4562236b Harry Wentland      2017-09-12  1648  	adev->ddev->mode_config.async_page_flip = true;
4562236b Harry Wentland      2017-09-12  1649  
770d13b1 Christian König     2018-01-12  1650  	adev->ddev->mode_config.fb_base = adev->gmc.aper_base;
4562236b Harry Wentland      2017-09-12  1651  
eb3dc897 Nicholas Kazlauskas 2018-11-22  1652  	drm_modeset_lock_init(&adev->dm.atomic_obj_lock);
eb3dc897 Nicholas Kazlauskas 2018-11-22  1653  
eb3dc897 Nicholas Kazlauskas 2018-11-22  1654  	state = kzalloc(sizeof(*state), GFP_KERNEL);
eb3dc897 Nicholas Kazlauskas 2018-11-22  1655  	if (!state)
eb3dc897 Nicholas Kazlauskas 2018-11-22  1656  		return -ENOMEM;
eb3dc897 Nicholas Kazlauskas 2018-11-22  1657  
eb3dc897 Nicholas Kazlauskas 2018-11-22  1658  	state->context = dc_create_state();
eb3dc897 Nicholas Kazlauskas 2018-11-22  1659  	if (!state->context) {
eb3dc897 Nicholas Kazlauskas 2018-11-22  1660  		kfree(state);
eb3dc897 Nicholas Kazlauskas 2018-11-22  1661  		return -ENOMEM;
eb3dc897 Nicholas Kazlauskas 2018-11-22  1662  	}
eb3dc897 Nicholas Kazlauskas 2018-11-22  1663  
eb3dc897 Nicholas Kazlauskas 2018-11-22  1664  	dc_resource_state_copy_construct_current(adev->dm.dc, state->context);
eb3dc897 Nicholas Kazlauskas 2018-11-22  1665  
eb3dc897 Nicholas Kazlauskas 2018-11-22 @1666  	drm_atomic_private_obj_init(&adev->dm.atomic_obj,
eb3dc897 Nicholas Kazlauskas 2018-11-22  1667  				    &state->base,
eb3dc897 Nicholas Kazlauskas 2018-11-22  1668  				    &dm_atomic_state_funcs);
eb3dc897 Nicholas Kazlauskas 2018-11-22  1669  
3dc9b1ce Samuel Li           2018-01-19  1670  	r = amdgpu_display_modeset_create_props(adev);
4562236b Harry Wentland      2017-09-12  1671  	if (r)
4562236b Harry Wentland      2017-09-12  1672  		return r;
4562236b Harry Wentland      2017-09-12  1673  
4562236b Harry Wentland      2017-09-12  1674  	return 0;
4562236b Harry Wentland      2017-09-12  1675  }
4562236b Harry Wentland      2017-09-12  1676  

:::::: The code at line 1666 was first introduced by commit
:::::: eb3dc8978596a045f469f13bb13271a707623ecb drm/amd/display: Use private obj helpers for dm_atomic_state

:::::: TO: Nicholas Kazlauskas <nicholas.kazlauskas@xxxxxxx>
:::::: CC: Alex Deucher <alexander.deucher@xxxxxxx>

---
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