Re: linux-next: build failure after merge of the hyperv tree

From: Wei Liu
Date: Tue Apr 18 2023 - 14:35:00 EST


On Tue, Apr 18, 2023 at 06:31:57PM +0100, broonie@xxxxxxxxxx wrote:
> Hi all,
>
> After merging the hyperv tree, today's linux-next build (x86 allmodconfig)
> failed like this:
>
> /tmp/next/build/drivers/hv/connection.c: In function 'vmbus_connect':
> /tmp/next/build/drivers/hv/connection.c:228:53: error: implicit
> declaration of function 'hv_alloc_hyperv_page'; did you mean 'hv_free_hyperv_page'? [-Werror=implicit-function-declaration]
> 228 | vmbus_connection.monitor_pages[0] = (void *)hv_alloc_hyperv_page();
> | ^~~~~~~~~~~~~~~~~~~~
> | hv_free_hyperv_page
> /tmp/next/build/drivers/hv/connection.c:228:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> 228 | vmbus_connection.monitor_pages[0] = (void *)hv_alloc_hyperv_page();
> | ^
> /tmp/next/build/drivers/hv/connection.c:229:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> 229 | vmbus_connection.monitor_pages[1] = (void *)hv_alloc_hyperv_page();
> | ^
> cc1: all warnings being treated as errors
>
> Caused by commit
>
> 4dbdcfe1c5db80edca ("Drivers: hv: move panic report code from vmbus to hv early init code")
>
> I will use the hyperv tree from yesterday instead.

This has been fixed by removing the problematic commit.

Thanks,
Wei.