Re: [pci:pci/hotplug 45/50] drivers/pci/pcie/aer.c:1387:26: error: initialization from incompatible pointer type

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

 



On Fri, Oct 19, 2018 at 07:18:52AM +0800, kbuild test robot wrote:
>    drivers/pci/pcie/aer.c: In function 'aer_probe':
> >> drivers/pci/pcie/aer.c:1387:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
>      struct device *device = &dev->port->device;
>                              ^
>    cc1: some warnings being treated as errors
> 
> vim +1387 drivers/pci/pcie/aer.c
> 
>   1376	
>   1377	/**
>   1378	 * aer_probe - initialize resources
>   1379	 * @dev: pointer to the pcie_dev data structure
>   1380	 *
>   1381	 * Invoked when PCI Express bus loads AER service driver.
>   1382	 */
>   1383	static int aer_probe(struct pcie_device *dev)
>   1384	{
>   1385		int status;
>   1386		struct aer_rpc *rpc;
> > 1387		struct device *device = &dev->port->device;

You must be building patches incrementally since this was (inadvertently)
fixed by the following commit 09d260ca3ad04d9b4c4d5e8b0fa1e3501b3e3793
("PCI/AER: Use managed resource allocations").

Bjorn,
If you want to replay the history, I quickly rebase the two affected
patches so this intermediate compile breakage doesn't happen. Up to you.



[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