linux-next: build failure after merge of the drm-misc tree
Hi all,
After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this:
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:1695: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,
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:34:include/drm/drm_atomic.h:437:53: 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:1696: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,
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:34:include/drm/drm_atomic.h:438:30: note: expected 'struct drm_private_obj *' but argument is of type 'struct drm_private_state *'
struct drm_private_obj *obj,
~~~~~~~~~~~~~~~~~~~~~~~~^~~drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1697: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,
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:34:include/drm/drm_atomic.h:439:32: note: expected 'struct drm_private_state *' but argument is of type 'struct drm_private_state_funcs *'
struct drm_private_state *state,
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695: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,
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:34:include/drm/drm_atomic.h:437:6: note: declared here
void drm_atomic_private_obj_init(struct drm_device *dev,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Caused by commit
b962a12050a3 ("drm/atomic: integrate modeset lock with private objects")
interacting with commit
eb3dc8978596 ("drm/amd/display: Use private obj helpers for dm_atomic_state")
from Linus' tree (merged during the merge window).
Its not obvious how to fix this up, so I have used the drm-misc tree from next-20190107 for today.
Signature · 6 lines
Cheers, Stephen Rothwell _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 51 lines · Stephen Rothwell
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
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:1695: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,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:437:53: note: expected 'structdrm_device*' but argument is of type 'structdrm_private_obj*'
void drm_atomic_private_obj_init(structdrm_device*dev,~~~~~~~~~~~~~~~~~~~^~~ drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1696: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,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:438:30: note: expected 'structdrm_private_obj*' but argument is of type 'structdrm_private_state*'
structdrm_private_obj*obj,
~~~~~~~~~~~~~~~~~~~~~~~~^~~drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1697: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,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:439:32: note: expected 'structdrm_private_state*' but argument is of type 'structdrm_private_state_funcs*'
structdrm_private_state*state,
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695:2: error: too few arguments to function 'drm_atomic_private_obj_init'
drm_atomic_private_obj_init(&adev->dm.atomic_obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included frominclude/drm/drm_dp_mst_helper.h:27,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:437:6: note: declared here
void drm_atomic_private_obj_init(structdrm_device*dev,^~~~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
b962a12050a3("drm/atomic: integrate modeset lock with private objects")
Quoted 8 lines
interacting with commit
eb3dc8978596("drm/amd/display: Use private obj helpers fordm_atomic_state")from Linus' tree (merged during the merge window).
Its not obvious how to fix this up, so I have used the drm-misc tree from next-20190107 for today.
https://cgit.freedesktop.org/drm-tip/tree/fixups/drm-misc-next.patch?h=rerere-cache
is the fixup you want. Should get baked into drm-next any moment, since the first drm-misc-next pull is already out.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Kazlauskas, Nicholas
Reviewed-byQuoted 58 lines · Daniel Vetter
Quoted 57 lines · Stephen Rothwell
Hi all,
After merging the drm-misc tree, today's linux-next build (
x86_64allmodconfig) failed like this:
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:1695: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,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:437:53: note: expected 'structdrm_device*' but argument is of type 'structdrm_private_obj*'
void drm_atomic_private_obj_init(structdrm_device*dev,~~~~~~~~~~~~~~~~~~~^~~ drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1696: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,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:438:30: note: expected 'structdrm_private_obj*' but argument is of type 'structdrm_private_state*'
structdrm_private_obj*obj,
~~~~~~~~~~~~~~~~~~~~~~~~^~~drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1697: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,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:439:32: note: expected 'structdrm_private_state*' but argument is of type 'structdrm_private_state_funcs*'
structdrm_private_state*state,
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1695:2: error: too few arguments to function 'drm_atomic_private_obj_init'
drm_atomic_private_obj_init(&adev->dm.atomic_obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included frominclude/drm/drm_dp_mst_helper.h:27,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:46,
fromdrivers/gpu/drm/amd/amdgpu/amdgpu.h:57,
fromdrivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:include/drm/drm_atomic.h:437:6: note: declared here
void drm_atomic_private_obj_init(structdrm_device*dev,^~~~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
b962a12050a3("drm/atomic: integrate modeset lock with private objects")interacting with commit
eb3dc8978596("drm/amd/display: Use private obj helpers fordm_atomic_state")from Linus' tree (merged during the merge window).
Quoted 9 lines
Quoted 2 lines
Its not obvious how to fix this up, so I have used the drm-misc tree from next-20190107 for today.
https://cgit.freedesktop.org/drm-tip/tree/fixups/drm-misc-next.patch?h=rerere-cache
is the fixup you want. Should get baked into drm-next any moment, since the first drm-misc-next pull is already out.
-Daniel
Thanks, that lines up with the other driver fixes that patch added.
I missed that series when I was developing the private state object patch for amdgpu.
I'll still need to remove our extra lock since the objects now have their own, but that can come later in another non-fixup patch.
Nicholas Kazlauskas
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi Daniel,
Quoted 6 lines · On Tue, 8 Jan 2019 09:37:22 +0100 Daniel Vetter <[email protected]> wrote:
https://cgit.freedesktop.org/drm-tip/tree/fixups/drm-misc-next.patch?h=rerere-cache
is the fixup you want. Should get baked into drm-next any moment, since the first drm-misc-next pull is already out.
I added that resolution for today, thanks.
Signature · 2 lines
Cheers, Stephen Rothwell