Skip to contentSkip to conversation

linux-next: build failure after merge of the mali-dp tree

PATCH Stephen Rothwell 3 participants 7 messages Jan 14, 2019 – Jan 15, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

Hi Liviu,

After merging the mali-dp tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c: In function 'komeda_pipeline_obj_add':
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:48:30: error: passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
drm_atomic_private_obj_init(&pipe->obj, &st->obj,

                              ^~~~~~~~~~

In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
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/arm/display/komeda/komeda_private_obj.c:48:42: error: passing argument 2 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
  drm_atomic_private_obj_init(&pipe->obj, &st->obj,
                                          ^~~~~~~~

In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
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/arm/display/komeda/komeda_private_obj.c:49:9: error: passing argument 3 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]

         &komeda_pipeline_obj_funcs);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
include/drm/drm_atomic.h:439:32: note: expected 'struct drm_private_state *' but argument is of type 'const struct drm_private_state_funcs *'
struct drm_private_state *state,
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:48:2: error: too few arguments to function 'drm_atomic_private_obj_init'
drm_atomic_private_obj_init(&pipe->obj, &st->obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
include/drm/drm_atomic.h:437:6: note: declared here
void drm_atomic_private_obj_init(struct drm_device *dev,

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

61f1c4a8ab75 ("drm/komeda: Attach komeda_dev to DRM-KMS")

interacting with commit

b962a12050a3 ("drm/atomic: integrate modeset lock with private objects")

from the drm tree.

I have applied the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 15 Jan 2019 10:42:04 +1100
Subject: [PATCH] drm/komeda: merge fix for drm_atomic_private_obj_init() API change

---
 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c +1 -1
index 9edfd6ab0c12..f1c9e3fefa86 100644
@@ -45,7 +45,7 @@ static int komeda_pipeline_obj_add(struct komeda_kms_dev *kms,
 		return -ENOMEM;
 
 	st->pipe = pipe;
-	drm_atomic_private_obj_init(&pipe->obj, &st->obj,
+	drm_atomic_private_obj_init(&kms->base, &pipe->obj, &st->obj,
 				    &komeda_pipeline_obj_funcs);
 
 	return 0;
Signature · 5 lines
2.20.1

-- 
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 1 line · Stephen Rothwell

Hi Liviu,

Hi Stephen,

Quoted 68 lines

After merging the mali-dp tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c: In function 'komeda_pipeline_obj_add':
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:48:30: error: passing argument 1 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
drm_atomic_private_obj_init(&pipe->obj, &st->obj,

                              ^~~~~~~~~~

In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
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/arm/display/komeda/komeda_private_obj.c:48:42: error: passing argument 2 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
  drm_atomic_private_obj_init(&pipe->obj, &st->obj,
                                          ^~~~~~~~

In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
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/arm/display/komeda/komeda_private_obj.c:49:9: error: passing argument 3 of 'drm_atomic_private_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]

         &komeda_pipeline_obj_funcs);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
include/drm/drm_atomic.h:439:32: note: expected 'struct drm_private_state *' but argument is of type 'const struct drm_private_state_funcs *'
struct drm_private_state *state,
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:48:2: error: too few arguments to function 'drm_atomic_private_obj_init'
drm_atomic_private_obj_init(&pipe->obj, &st->obj,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h:11,
from drivers/gpu/drm/arm/display/komeda/komeda_dev.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c:7:
include/drm/drm_atomic.h:437:6: note: declared here
void drm_atomic_private_obj_init(struct drm_device *dev,

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

61f1c4a8ab75 ("drm/komeda: Attach komeda_dev to DRM-KMS")

interacting with commit

b962a12050a3 ("drm/atomic: integrate modeset lock with private objects")

from the drm tree.

I have applied the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 15 Jan 2019 10:42:04 +1100
Subject: [PATCH] drm/komeda: merge fix for drm_atomic_private_obj_init() API change

---
 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c +0 -0
index 9edfd6ab0c12..f1c9e3fefa86 100644

drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c static int komeda_pipeline_obj_add(struct komeda_kms_dev *kms, · line 49

Quoted 6 lines
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c +1 -1
@@ -45,7 +45,7 @@ static int komeda_pipeline_obj_add(struct komeda_kms_dev *kms,
 		return -ENOMEM;
 
 	st->pipe = pipe;
-	drm_atomic_private_obj_init(&pipe->obj, &st->obj,
+	drm_atomic_private_obj_init(&kms->base, &pipe->obj, &st->obj,
 				    &komeda_pipeline_obj_funcs);

That looks like the right fix, thank you for that! I will roll your patch into my tree.

Best regards,
Liviu

Quoted 15 lines
drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c +0 -0
 	return 0;
Signature · 12 lines
2.20.1

-- 
Cheers,
Stephen Rothwell



_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 8 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
#2 lore raw

Hi Liviu,

Quoted 2 lines · On Tue, 15 Jan 2019 10:12:19 +0000 Liviu Dudau <[email protected]> wrote:

That looks like the right fix, thank you for that!

Thanks for your verification.

Quoted 1 line

I will roll your patch into my tree.

You can only do that when your tree is merged with the drm tree (and it should be part of the merge resolution).

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#3 lore raw
Quoted 4 lines · Stephen Rothwell

Hi Liviu,

Quoted 1 line · On Tue, 15 Jan 2019 10:12:19 +0000 Liviu Dudau <[email protected]> wrote:
Quoted 8 lines
Quoted 1 line

That looks like the right fix, thank you for that!

Thanks for your verification.

Quoted 1 line

I will roll your patch into my tree.

You can only do that when your tree is merged with the drm tree (and it should be part of the merge resolution).

I can also rebase on top of the latest drm-next tree, that should not be a problem.

Best regards,
Liviu

Quoted 4 lines
Signature · 3 lines
-- 
Cheers,
Stephen Rothwell
Signature · 12 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
Quoted 9 lines · Liviu Dudau
Quoted 8 lines · Stephen Rothwell

Hi Liviu,

Quoted 2 lines · On Tue, 15 Jan 2019 10:12:19 +0000 Liviu Dudau <[email protected]> wrote:

That looks like the right fix, thank you for that!

Thanks for your verification.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I will roll your patch into my tree.

You can only do that when your tree is merged with the drm tree (and it should be part of the merge resolution).

I can also rebase on top of the latest drm-next tree, that should not be a problem.

If you have a lot of patches already rebasing is kinda discouraged. There might be other stuff that's conflicting and then making your entire tree non-bisectable (maybe just on one platform that you missed in testing).

In that case just send out a pull for drm-next and include the merge resolution in the pull request so Dave/I can double-check we did it right. -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#5 lore raw
Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Liviu Dudau
Quoted 12 lines · Stephen Rothwell

Hi Liviu,

Quoted 2 lines · On Tue, 15 Jan 2019 10:12:19 +0000 Liviu Dudau <[email protected]> wrote:

That looks like the right fix, thank you for that!

Thanks for your verification.

Quoted 1 line

I will roll your patch into my tree.

You can only do that when your tree is merged with the drm tree (and it should be part of the merge resolution).

Quoted 6 lines
Quoted 2 lines

I can also rebase on top of the latest drm-next tree, that should not be a problem.

If you have a lot of patches already rebasing is kinda discouraged. There might be other stuff that's conflicting and then making your entire tree non-bisectable (maybe just on one platform that you missed in testing).

My tree has always been "unstable", I have been rebasing it on top of latest drm or drm-next in preparation for sending pull requests. I've hoped that people don't depend on the linearity of my tree anyway and it hasn't been an issue so far.

TBH, I should've based the latest update of my tree on drm-next anyway, I just started at the time when it was at v5.0-rc1 so I thought it will not matter.

Best regards,
Liviu

Quoted 8 lines

In that case just send out a pull for drm-next and include the merge resolution in the pull request so Dave/I can double-check we did it right. -Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Signature · 12 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw
Quoted 20 lines · Liviu Dudau
Quoted 18 lines · Daniel Vetter
Quoted 16 lines · Liviu Dudau
Quoted 4 lines · Stephen Rothwell

Hi Liviu,

Quoted 1 line · On Tue, 15 Jan 2019 10:12:19 +0000 Liviu Dudau <[email protected]> wrote:
Quoted 8 lines
Quoted 1 line

That looks like the right fix, thank you for that!

Thanks for your verification.

Quoted 1 line

I will roll your patch into my tree.

You can only do that when your tree is merged with the drm tree (and it should be part of the merge resolution).

I can also rebase on top of the latest drm-next tree, that should not be a problem.

Quoted 8 lines
Quoted 3 lines

If you have a lot of patches already rebasing is kinda discouraged. There might be other stuff that's conflicting and then making your entire tree non-bisectable (maybe just on one platform that you missed in testing).

My tree has always been "unstable", I have been rebasing it on top of latest drm or drm-next in preparation for sending pull requests. I've hoped that people don't depend on the linearity of my tree anyway and it hasn't been an issue so far.

"Don't unecessarily rebase" isn't only about screwing up people who base their own stuff on your tree, it's also about invalidating testing. E.g. if there's a silent conflict with latest drm-next, and you rebase before sending out your pull request, but then don't notice that new issue, then all these commit won't work in a bisect for a 2nd issue.

But if you don't rebase, then only the merge commit will be broken (until the bugfix was commit, which is hopefully not too long), and all the commits on your branch still work.

So summary is that if you regularly rebase your pile of "ready for linux-next" patches, then you're doing something wrong. And the bigger your team (and hence the amount of work going on) the more wrong this becomes. Ime you can rebase to squash in bugfixes with a bigger team still, but rebasing to change the baseline stops being a good idea pretty quickly.
-Daniel

Quoted 29 lines

TBH, I should've based the latest update of my tree on drm-next anyway, I just started at the time when it was at v5.0-rc1 so I thought it will not matter.

Best regards,
Liviu

Quoted 8 lines

In that case just send out a pull for drm-next and include the merge resolution in the pull request so Dave/I can double-check we did it right. -Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

--
====================

| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel