Re: [PATCH v4 15/17] x86/hyperv: implement an MSI domain for root partition

From: Wei Liu
Date: Thu Jan 07 2021 - 10:06:43 EST


On Thu, Jan 07, 2021 at 06:21:24AM +0800, kernel test robot wrote:
> Hi Wei,
>
> I love your patch! Perhaps something to improve:
>
> [auto build test WARNING on e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62]
>
> url: https://github.com/0day-ci/linux/commits/Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20210107-044149
> base: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
> config: i386-randconfig-m021-20210106 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
> reproduce (this is a W=1 build):
> # https://github.com/0day-ci/linux/commit/376aee69c6ab18dc23b0386590bee82d59555be8
> git remote add linux-review https://github.com/0day-ci/linux
> git fetch --no-tags linux-review Wei-Liu/Introducing-Linux-root-partition-support-for-Microsoft-Hypervisor/20210107-044149
> git checkout 376aee69c6ab18dc23b0386590bee82d59555be8
> # save the attached .config to linux build tree
> make W=1 ARCH=i386
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All warnings (new ones prefixed by >>):
>
> >> arch/x86/hyperv/irqdomain.c:317:28: warning: no previous prototype for 'hv_create_pci_msi_domain' [-Wmissing-prototypes]
> 317 | struct irq_domain * __init hv_create_pci_msi_domain(void)
> | ^~~~~~~~~~~~~~~~~~~~~~~~
>
>
> vim +/hv_create_pci_msi_domain +317 arch/x86/hyperv/irqdomain.c

I've fixed this locally by moving the prototype to a header file --
previously it was left in a C file.

Wei.