[arm-platforms:hack/m1-pcie 10/15] drivers/pci/controller/pcie-apple-m1.c:66:22: warning: initializer overrides prior initialization of this subobject

kernel test robot lkp at intel.com
Sat Apr 3 18:45:22 BST 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/m1-pcie
head:   1fd2c9634dd24fba323baba52200de18e4d3f4ee
commit: 4506277b9030202811e5c671330c1ac9b1d3a0b0 [10/15] M1 PCIe hacks
config: riscv-randconfig-r026-20210404 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 3bcb6a389ff4338d76a25b7d9e0e3c40d84695be)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=4506277b9030202811e5c671330c1ac9b1d3a0b0
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms hack/m1-pcie
        git checkout 4506277b9030202811e5c671330c1ac9b1d3a0b0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> drivers/pci/controller/pcie-apple-m1.c:66:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           .irq_set_affinity       = irq_chip_set_affinity_parent,
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/controller/pcie-apple-m1.c:64:23: note: previous initialization is here
           .irq_set_affinity       = irq_chip_set_affinity_parent,
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +66 drivers/pci/controller/pcie-apple-m1.c

    59	
    60	static struct irq_chip apple_msi_bottom_chip = {
    61		.name			= "MSI",
    62		.irq_mask		= irq_chip_mask_parent,
    63		.irq_unmask		= irq_chip_unmask_parent,
    64		.irq_set_affinity 	= irq_chip_set_affinity_parent,
    65		.irq_eoi		= irq_chip_eoi_parent,
  > 66		.irq_set_affinity	= irq_chip_set_affinity_parent,
    67		.irq_set_type		= irq_chip_set_type_parent,
    68		.irq_compose_msi_msg	= apple_msi_compose_msg,
    69	};
    70	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 44592 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210404/e7452b38/attachment-0001.gz>


More information about the linux-arm-kernel mailing list