[pm:linux-next 23/25] drivers/acpi/ec.c:1936:12: error: redefinition of 'acpi_ec_suspend_noirq'

[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 linux-next
head:   fcc24b97be0fe8c21fff1204fdd8fbbd1dbc4025
commit: 6fb1673a17fcbed275aea24a6e483e64fff1a2c5 [23/25] Revert "ACPI / EC: Drop EC noirq hooks to fix a regression"
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 6fb1673a17fcbed275aea24a6e483e64fff1a2c5
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/acpi/ec.c:1936:12: error: redefinition of 'acpi_ec_suspend_noirq'
    static int acpi_ec_suspend_noirq(struct device *dev)
               ^~~~~~~~~~~~~~~~~~~~~
   drivers/acpi/ec.c:1908:12: note: previous definition of 'acpi_ec_suspend_noirq' was here
    static int acpi_ec_suspend_noirq(struct device *dev)
               ^~~~~~~~~~~~~~~~~~~~~
>> drivers/acpi/ec.c:1951:12: error: redefinition of 'acpi_ec_resume_noirq'
    static int acpi_ec_resume_noirq(struct device *dev)
               ^~~~~~~~~~~~~~~~~~~~
   drivers/acpi/ec.c:1917:12: note: previous definition of 'acpi_ec_resume_noirq' was here
    static int acpi_ec_resume_noirq(struct device *dev)
               ^~~~~~~~~~~~~~~~~~~~
   drivers/acpi/ec.c:1917:12: warning: 'acpi_ec_resume_noirq' defined but not used [-Wunused-function]
   drivers/acpi/ec.c:1908:12: warning: 'acpi_ec_suspend_noirq' defined but not used [-Wunused-function]
    static int acpi_ec_suspend_noirq(struct device *dev)
               ^~~~~~~~~~~~~~~~~~~~~

vim +/acpi_ec_suspend_noirq +1936 drivers/acpi/ec.c

39a2a2aa Lv Zheng          2016-08-03  1935  
76380636 Rafael J. Wysocki 2017-07-19 @1936  static int acpi_ec_suspend_noirq(struct device *dev)
76380636 Rafael J. Wysocki 2017-07-19  1937  {
76380636 Rafael J. Wysocki 2017-07-19  1938  	struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev));
76380636 Rafael J. Wysocki 2017-07-19  1939  
76380636 Rafael J. Wysocki 2017-07-19  1940  	/*
76380636 Rafael J. Wysocki 2017-07-19  1941  	 * The SCI handler doesn't run at this point, so the GPE can be
76380636 Rafael J. Wysocki 2017-07-19  1942  	 * masked at the low level without side effects.
76380636 Rafael J. Wysocki 2017-07-19  1943  	 */
76380636 Rafael J. Wysocki 2017-07-19  1944  	if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) &&
76380636 Rafael J. Wysocki 2017-07-19  1945  	    ec->reference_count >= 1)
76380636 Rafael J. Wysocki 2017-07-19  1946  		acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE);
76380636 Rafael J. Wysocki 2017-07-19  1947  
76380636 Rafael J. Wysocki 2017-07-19  1948  	return 0;
76380636 Rafael J. Wysocki 2017-07-19  1949  }
76380636 Rafael J. Wysocki 2017-07-19  1950  
76380636 Rafael J. Wysocki 2017-07-19 @1951  static int acpi_ec_resume_noirq(struct device *dev)
76380636 Rafael J. Wysocki 2017-07-19  1952  {
76380636 Rafael J. Wysocki 2017-07-19  1953  	struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev));
76380636 Rafael J. Wysocki 2017-07-19  1954  
76380636 Rafael J. Wysocki 2017-07-19  1955  	if (ec_no_wakeup && test_bit(EC_FLAGS_STARTED, &ec->flags) &&
76380636 Rafael J. Wysocki 2017-07-19  1956  	    ec->reference_count >= 1)
76380636 Rafael J. Wysocki 2017-07-19  1957  		acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE);
76380636 Rafael J. Wysocki 2017-07-19  1958  
76380636 Rafael J. Wysocki 2017-07-19  1959  	return 0;
76380636 Rafael J. Wysocki 2017-07-19  1960  }
76380636 Rafael J. Wysocki 2017-07-19  1961  

:::::: The code at line 1936 was first introduced by commit
:::::: 76380636280b46541a9d2fe5aac497475bfbcde8 ACPI / EC: Add parameter to force disable the GPE on suspend

:::::: TO: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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