[drm-tip:drm-tip 5/10] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1666:30: warning: passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer type
kbuild test robot
lkp at intel.com
Wed Dec 12 02:14:18 UTC 2018
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: i386-randconfig-sb0-12120454 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 2c6557b1fc4d6cc24938a27742ac396be7b55e70
# save the attached .config to linux build tree
make ARCH=i386
All warnings (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: warning: passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer type
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: warning: passing argument 2 of 'drm_atomic_private_obj_init' from incompatible pointer type
&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: warning: passing argument 3 of 'drm_atomic_private_obj_init' from incompatible pointer type
&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,
^
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_do_flip':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4482:9: warning: missing braces around initializer [-Wmissing-braces]
struct dc_stream_update stream_update = {0};
^
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4482:9: warning: (near initialization for 'stream_update.src') [-Wmissing-braces]
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 at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32445 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181212/05424cc1/attachment-0001.gz>
More information about the dri-devel
mailing list