[pm:s2idle-dell-test 4/12] drivers/pci/pci-acpi.c:445:41: error: passing argument 3 of 'acpi_add_pm_notifier' 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/rafael/linux-pm.git s2idle-dell-test
head:   dd5f3b05c77a7e811a87c10c3e0caae54dde1c0e
commit: 18458b4230d76d2349b914b59a5ea89d4ad7edca [4/12] ACPI / PM: Run wakeup notify handlers synchronously
config: x86_64-randconfig-x019-201723 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 18458b4230d76d2349b914b59a5ea89d4ad7edca
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/pci/pci-acpi.c: In function 'pci_acpi_add_bus_pm_notifier':
>> drivers/pci/pci-acpi.c:445:41: error: passing argument 3 of 'acpi_add_pm_notifier' from incompatible pointer type [-Werror=incompatible-pointer-types]
     return acpi_add_pm_notifier(dev, NULL, pci_acpi_wake_bus);
                                            ^~~~~~~~~~~~~~~~~
   In file included from include/linux/acpi.h:43:0,
                    from include/linux/pci_hotplug.h:177,
                    from drivers/pci/pci-acpi.c:15:
   include/acpi/acpi_bus.h:607:27: note: expected 'void (*)(struct work_struct *)' but argument is of type 'void (*)(struct acpi_device_wakeup_context *)'
    static inline acpi_status acpi_add_pm_notifier(struct acpi_device *adev,
                              ^~~~~~~~~~~~~~~~~~~~
   drivers/pci/pci-acpi.c: In function 'pci_acpi_add_pm_notifier':
   drivers/pci/pci-acpi.c:456:50: error: passing argument 3 of 'acpi_add_pm_notifier' from incompatible pointer type [-Werror=incompatible-pointer-types]
     return acpi_add_pm_notifier(dev, &pci_dev->dev, pci_acpi_wake_dev);
                                                     ^~~~~~~~~~~~~~~~~
   In file included from include/linux/acpi.h:43:0,
                    from include/linux/pci_hotplug.h:177,
                    from drivers/pci/pci-acpi.c:15:
   include/acpi/acpi_bus.h:607:27: note: expected 'void (*)(struct work_struct *)' but argument is of type 'void (*)(struct acpi_device_wakeup_context *)'
    static inline acpi_status acpi_add_pm_notifier(struct acpi_device *adev,
                              ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/acpi_add_pm_notifier +445 drivers/pci/pci-acpi.c

5e3d2344 Bjorn Helgaas 2014-09-12  439  /**
5e3d2344 Bjorn Helgaas 2014-09-12  440   * pci_acpi_add_bus_pm_notifier - Register PM notifier for root PCI bus.
5e3d2344 Bjorn Helgaas 2014-09-12  441   * @dev: PCI root bridge ACPI device.
5e3d2344 Bjorn Helgaas 2014-09-12  442   */
5e3d2344 Bjorn Helgaas 2014-09-12  443  acpi_status pci_acpi_add_bus_pm_notifier(struct acpi_device *dev)
5e3d2344 Bjorn Helgaas 2014-09-12  444  {
5e3d2344 Bjorn Helgaas 2014-09-12 @445  	return acpi_add_pm_notifier(dev, NULL, pci_acpi_wake_bus);
5e3d2344 Bjorn Helgaas 2014-09-12  446  }
5e3d2344 Bjorn Helgaas 2014-09-12  447  
5e3d2344 Bjorn Helgaas 2014-09-12  448  /**

:::::: The code at line 445 was first introduced by commit
:::::: 5e3d234456e25f664e0755c23689173588f4ca9b PCI: Shuffle pci-acpi.c functions to group them logically

:::::: TO: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
:::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

---
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]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux