[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]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/hotplug
head:   5a076cc998d369f701104e35d5bb985cab0a66d3
commit: 0459ba0b0d50429500b6ed46d0a97203de37ba6b [45/50] PCI/AER: Use threaded IRQ for bottom half
config: sh-sdk7786_defconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 0459ba0b0d50429500b6ed46d0a97203de37ba6b
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

Note: the pci/pci/hotplug HEAD 5a076cc998d369f701104e35d5bb985cab0a66d3 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   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;
  1388	
  1389		/* Alloc rpc data structure */
  1390		rpc = kzalloc(sizeof(struct aer_rpc), GFP_KERNEL);
  1391		if (!rpc) {
  1392			dev_printk(KERN_DEBUG, device, "alloc AER rpc failed\n");
  1393			return -ENOMEM;
  1394		}
  1395		rpc->rpd = dev->port;
  1396		set_service_data(dev, rpc);
  1397	
  1398		/* Request IRQ ISR */
  1399		status = request_threaded_irq(dev->irq, aer_irq, aer_isr,
  1400					      IRQF_SHARED, "aerdrv", dev);
  1401		if (status) {
  1402			dev_printk(KERN_DEBUG, device, "request AER IRQ %d failed\n",
  1403				   dev->irq);
  1404			aer_remove(dev);
  1405			return status;
  1406		}
  1407	
  1408		aer_enable_rootport(rpc);
  1409		dev_info(device, "AER enabled with IRQ %d\n", dev->irq);
  1410		return 0;
  1411	}
  1412	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[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