On Thu, Mar 05, 2020 at 11:30:32PM +0000, Dexuan Cui wrote:
> From: kbuild test robot <lkp(a)intel.com>
> Sent: Thursday, March 5, 2020 12:57 PM
> To: Gustavo A. R. Silva <gustavo(a)embeddedor.com>
> Cc: kbuild-all(a)lists.01.org; Bjorn Helgaas <helgaas(a)kernel.org>; Lorenzo
> Pieralisi <lorenzo.pieralisi(a)arm.com>; Dexuan Cui <decui(a)microsoft.com>
> Subject: [lpieralisi-pci:pci/hv 5/5] drivers/pci/controller/pci-hyperv.c:2101:26:
> sparse: sparse: incorrect type in assignment (different base types)
>
> tree: ...
> head: d0e3c3fdf000bacd3fb11c6eb97a38ca27fe915c
> commit: d0e3c3fdf000bacd3fb11c6eb97a38ca27fe915c [5/5] PCI: hv: Replace
> zero-length array with flexible-array member
> reproduce:
> # apt-get install sparse
> # sparse version: v0.6.1-174-g094d5a94-dirty
> git checkout d0e3c3fdf000bacd3fb11c6eb97a38ca27fe915c
> make ARCH=x86_64 allmodconfig
> make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp(a)intel.com>
There is a merge mistake, causing this building failure.
And, Long Li's patch introduced a new zero-lengh array in struct pci_bus_relations2:
ae685159fb7c ("PCI: hv: Add support for protocol 1.3 and support
PCI_BUS_RELATIONS2")
The below patch fixes the 2 issues above. I also attached the patch FYI.
Applied, sorry I messed up the merge with other code in the pci/hv
branch as you noted.
Thanks for fixing it,
Lorenzo