2022-06-15 04:52:55

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the amdgpu tree

Hi all,

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

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1835:13: error: 'remove_hpo_dp_link_enc_from_ctx' defined but not used [-Werror=unused-function]
1835 | static void remove_hpo_dp_link_enc_from_ctx(struct resource_context *res_ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

4e1db0119c64 ("Revert "drm/amdgpu/display: Protect some functions with CONFIG_DRM_AMD_DC_DCN"")

That function is only used when CONFIG_DRM_AMD_DC_DCN is set.

I have reverted that commit for today.

Could you please add an x86_64 allmodconfig build to your CI?

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2022-06-15 19:10:07

by Alex Deucher

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the amdgpu tree

On Wed, Jun 15, 2022 at 12:38 AM Stephen Rothwell <[email protected]> wrote:
>
> Hi all,
>
> After merging the amdgpu tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1835:13: error: 'remove_hpo_dp_link_enc_from_ctx' defined but not used [-Werror=unused-function]
> 1835 | static void remove_hpo_dp_link_enc_from_ctx(struct resource_context *res_ctx,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
> Caused by commit
>
> 4e1db0119c64 ("Revert "drm/amdgpu/display: Protect some functions with CONFIG_DRM_AMD_DC_DCN"")
>
> That function is only used when CONFIG_DRM_AMD_DC_DCN is set.

Sorry, I had the fix in my tree, but forgot to push it. It's there now.

Alex

>
> I have reverted that commit for today.
>
> Could you please add an x86_64 allmodconfig build to your CI?
>
> --
> Cheers,
> Stephen Rothwell