[pci:controller/rockchip 5/13] drivers/pci/controller/pcie-rockchip-ep.c:486:10: error: 'const struct pci_epc_ops' has no member named 'align_addr'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git controller/rockchip
head:   337657a3c24c92befb3ed11d6f15402faa09f7dd
commit: 75b011d9006e703fe3a0706f9952e8510194cc07 [5/13] PCI: rockchip-ep: Implement the pci_epc_ops::align_addr() operation
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20241114/202411141106.4hI5VqIa-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411141106.4hI5VqIa-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411141106.4hI5VqIa-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/pci/controller/pcie-rockchip-ep.c:486:10: error: 'const struct pci_epc_ops' has no member named 'align_addr'
     486 |         .align_addr     = rockchip_pcie_ep_align_addr,
         |          ^~~~~~~~~~
>> drivers/pci/controller/pcie-rockchip-ep.c:486:27: error: initialization of 'int (*)(struct pci_epc *, u8,  u8,  phys_addr_t,  u64,  size_t)' {aka 'int (*)(struct pci_epc *, unsigned char,  unsigned char,  long long unsigned int,  long long unsigned int,  long unsigned int)'} from incompatible pointer type 'u64 (*)(struct pci_epc *, u64,  size_t *, size_t *)' {aka 'long long unsigned int (*)(struct pci_epc *, long long unsigned int,  long unsigned int *, long unsigned int *)'} [-Wincompatible-pointer-types]
     486 |         .align_addr     = rockchip_pcie_ep_align_addr,
         |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/controller/pcie-rockchip-ep.c:486:27: note: (near initialization for 'rockchip_pcie_epc_ops.map_addr')
   drivers/pci/controller/pcie-rockchip-ep.c:487:27: warning: initialized field overwritten [-Woverride-init]
     487 |         .map_addr       = rockchip_pcie_ep_map_addr,
         |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/controller/pcie-rockchip-ep.c:487:27: note: (near initialization for 'rockchip_pcie_epc_ops.map_addr')


vim +486 drivers/pci/controller/pcie-rockchip-ep.c

   481	
   482	static const struct pci_epc_ops rockchip_pcie_epc_ops = {
   483		.write_header	= rockchip_pcie_ep_write_header,
   484		.set_bar	= rockchip_pcie_ep_set_bar,
   485		.clear_bar	= rockchip_pcie_ep_clear_bar,
 > 486		.align_addr	= rockchip_pcie_ep_align_addr,
   487		.map_addr	= rockchip_pcie_ep_map_addr,
   488		.unmap_addr	= rockchip_pcie_ep_unmap_addr,
   489		.set_msi	= rockchip_pcie_ep_set_msi,
   490		.get_msi	= rockchip_pcie_ep_get_msi,
   491		.raise_irq	= rockchip_pcie_ep_raise_irq,
   492		.start		= rockchip_pcie_ep_start,
   493		.get_features	= rockchip_pcie_ep_get_features,
   494	};
   495	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux