[alsa-devel] [sound:topic/cht-whiskey-cove 1/3] include/acpi/acpi_bus.h:598:9: error: 'AE_SUPPORT' undeclared
kbuild test robot
fengguang.wu at intel.com
Wed Mar 1 09:13:17 CET 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/cht-whiskey-cove
head: fe0334695c856dbdbeea861a5eb76f5ddc0dbaa9
commit: fbba8603f93e60c68116197326cdbbceee0b875b [1/3] mfd: Add Cherrytrail WhiskeyCove PMIC driver
config: x86_64-randconfig-r0-03011404 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout fbba8603f93e60c68116197326cdbbceee0b875b
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
acpi_status acpi_evaluate_ej0(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:59:1: error: unknown type name 'acpi_status'
acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
^~~~~~~~~~~
include/acpi/acpi_bus.h:59:31: error: unknown type name 'acpi_handle'
acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
^~~~~~~~~~~
include/acpi/acpi_bus.h:60:21: error: unknown type name 'acpi_handle'
bool acpi_ata_match(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:61:21: error: unknown type name 'acpi_handle'
bool acpi_bay_match(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:62:22: error: unknown type name 'acpi_handle'
bool acpi_dock_match(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:64:21: error: unknown type name 'acpi_handle'
bool acpi_check_dsm(acpi_handle handle, const u8 *uuid, u64 rev, u64 funcs);
^~~~~~~~~~~
include/acpi/acpi_bus.h:65:38: error: unknown type name 'acpi_handle'
union acpi_object *acpi_evaluate_dsm(acpi_handle handle, const u8 *uuid,
^~~~~~~~~~~
include/acpi/acpi_bus.h:69:25: error: unknown type name 'acpi_handle'
acpi_evaluate_dsm_typed(acpi_handle handle, const u8 *uuid, u64 rev, u64 func,
^~~~~~~~~~~
include/acpi/acpi_bus.h:70:30: error: unknown type name 'acpi_object_type'
union acpi_object *argv4, acpi_object_type type)
^~~~~~~~~~~~~~~~
In file included from drivers/mfd/intel_soc_pmic_chtwc.c:18:0:
include/acpi/acpi_bus.h:286:40: error: 'ACPI_D_STATE_COUNT' undeclared here (not in a function)
struct acpi_device_power_state states[ACPI_D_STATE_COUNT]; /* Power states (D0-D3Cold) */
^~~~~~~~~~~~~~~~~~
include/acpi/acpi_bus.h:326:2: error: unknown type name 'acpi_handle'
acpi_handle gpe_device;
^~~~~~~~~~~
include/acpi/acpi_bus.h:356:2: error: unknown type name 'acpi_handle'
acpi_handle handle; /* no handle for fixed hardware */
^~~~~~~~~~~
include/acpi/acpi_bus.h:387:2: error: unknown type name 'acpi_handle'
acpi_handle handle;
^~~~~~~~~~~
include/acpi/acpi_bus.h:478:49: error: expected ')' before 'void'
void acpi_bus_private_data_handler(acpi_handle, void *);
^~~~
include/acpi/acpi_bus.h:479:44: error: expected ')' before 'void'
int acpi_bus_get_private_data(acpi_handle, void **);
^~~~
include/acpi/acpi_bus.h:480:47: error: expected ')' before 'void'
int acpi_bus_attach_private_data(acpi_handle, void *);
^~~~
include/acpi/acpi_bus.h:481:1: warning: parameter names (without types) in function declaration
void acpi_bus_detach_private_data(acpi_handle);
^~~~
include/acpi/acpi_bus.h:490:25: error: unknown type name 'acpi_handle'
int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device);
^~~~~~~~~~~
include/acpi/acpi_bus.h:491:46: error: unknown type name 'acpi_handle'
struct acpi_device *acpi_bus_get_acpi_device(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:493:1: error: unknown type name 'acpi_status'
acpi_status acpi_bus_get_status_handle(acpi_handle handle,
^~~~~~~~~~~
include/acpi/acpi_bus.h:493:40: error: unknown type name 'acpi_handle'
acpi_status acpi_bus_get_status_handle(acpi_handle handle,
^~~~~~~~~~~
include/acpi/acpi_bus.h:497:24: error: unknown type name 'acpi_handle'
int acpi_bus_set_power(acpi_handle handle, int state);
^~~~~~~~~~~
include/acpi/acpi_bus.h:503:27: error: unknown type name 'acpi_handle'
int acpi_bus_update_power(acpi_handle handle, int *state_p);
^~~~~~~~~~~
include/acpi/acpi_bus.h:505:32: error: unknown type name 'acpi_handle'
bool acpi_bus_power_manageable(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:510:40: error: unknown type name 'acpi_handle'
static inline bool acpi_bus_can_wakeup(acpi_handle handle) { return false; }
^~~~~~~~~~~
include/acpi/acpi_bus.h:520:19: error: unknown type name 'acpi_handle'
int acpi_bus_scan(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:522:1: error: unknown type name 'acpi_status'
acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd);
^~~~~~~~~~~
include/acpi/acpi_bus.h:522:30: error: unknown type name 'acpi_handle'
acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd);
^~~~~~~~~~~
include/acpi/acpi_bus.h:522:50: error: unknown type name 'acpi_handle'
acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd);
^~~~~~~~~~~
include/acpi/acpi_bus.h:581:1: warning: parameter names (without types) in function declaration
int acpi_is_root_bridge(acpi_handle);
^~~
include/acpi/acpi_bus.h:582:42: error: unknown type name 'acpi_handle'
struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle);
^~~~~~~~~~~
include/acpi/acpi_bus.h:594:15: error: unknown type name 'acpi_status'
static inline acpi_status acpi_add_pm_notifier(struct acpi_device *adev,
^~~~~~~~~~~
include/acpi/acpi_bus.h: In function 'acpi_add_pm_notifier':
>> include/acpi/acpi_bus.h:598:9: error: 'AE_SUPPORT' undeclared (first use in this function)
return AE_SUPPORT;
^~~~~~~~~~
include/acpi/acpi_bus.h:598:9: note: each undeclared identifier is reported only once for each function it appears in
include/acpi/acpi_bus.h: At top level:
include/acpi/acpi_bus.h:600:15: error: unknown type name 'acpi_status'
static inline acpi_status acpi_remove_pm_notifier(struct acpi_device *adev)
^~~~~~~~~~~
include/acpi/acpi_bus.h: In function 'acpi_remove_pm_notifier':
include/acpi/acpi_bus.h:602:9: error: 'AE_SUPPORT' undeclared (first use in this function)
return AE_SUPPORT;
^~~~~~~~~~
include/acpi/acpi_bus.h: In function 'acpi_pm_device_sleep_state':
>> include/acpi/acpi_bus.h:607:8: error: 'ACPI_STATE_D0' undeclared (first use in this function)
*p = ACPI_STATE_D0;
^~~~~~~~~~~~~
include/acpi/acpi_bus.h:609:37: error: 'ACPI_STATE_D3_COLD' undeclared (first use in this function)
return (m >= ACPI_STATE_D0 && m <= ACPI_STATE_D3_COLD) ?
^~~~~~~~~~~~~~~~~~
include/acpi/acpi_bus.h: In function 'acpi_target_system_state':
include/acpi/acpi_bus.h:630:59: error: 'ACPI_STATE_S0' undeclared (first use in this function)
static inline u32 acpi_target_system_state(void) { return ACPI_STATE_S0; }
^~~~~~~~~~~~~
include/acpi/acpi_bus.h: In function 'acpi_device_can_poweroff':
include/acpi/acpi_bus.h:645:28: error: 'ACPI_STATE_D3_COLD' undeclared (first use in this function)
return adev->power.states[ACPI_STATE_D3_COLD].flags.valid ||
^~~~~~~~~~~~~~~~~~
include/acpi/acpi_bus.h:646:5: error: 'acpi_gbl_FADT' undeclared (first use in this function)
((acpi_gbl_FADT.header.revision < 6) &&
^~~~~~~~~~~~~
include/acpi/acpi_bus.h:647:22: error: 'ACPI_STATE_D3_HOT' undeclared (first use in this function)
adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
^~~~~~~~~~~~~~~~~
In file included from drivers/mfd/intel_soc_pmic_chtwc.c:19:0:
include/linux/acpi.h: In function 'acpi_device_handle':
include/linux/acpi.h:51:29: warning: pointer/integer type mismatch in conditional expression
return adev ? adev->handle : NULL;
^
drivers/mfd/intel_soc_pmic_chtwc.c: In function 'cht_wc_probe':
drivers/mfd/intel_soc_pmic_chtwc.c:104:11: error: implicit declaration of function 'acpi_evaluate_integer' [-Werror=implicit-function-declaration]
status = acpi_evaluate_integer(handle, "_HRV", NULL, &hrv);
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/AE_SUPPORT +598 include/acpi/acpi_bus.h
d760a1baf2 Lorenzo Pieralisi 2016-11-21 576 void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr);
d760a1baf2 Lorenzo Pieralisi 2016-11-21 577 void acpi_dma_deconfigure(struct device *dev);
b84f196d96 Suthikulpanit, Suravee 2015-10-28 578
d9fef0c4d2 Rafael J. Wysocki 2013-11-28 579 struct acpi_device *acpi_find_child_device(struct acpi_device *parent,
d9fef0c4d2 Rafael J. Wysocki 2013-11-28 580 u64 address, bool check_children);
275582031f Alexander Chiang 2009-06-10 581 int acpi_is_root_bridge(acpi_handle);
76d56de57a Alex Chiang 2009-07-23 @582 struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle);
4e10d12a3d David Shaohua Li 2005-03-18 583
b67ea76172 Rafael J. Wysocki 2010-02-17 584 int acpi_enable_wakeup_device_power(struct acpi_device *dev, int state);
b67ea76172 Rafael J. Wysocki 2010-02-17 585 int acpi_disable_wakeup_device_power(struct acpi_device *dev);
b67ea76172 Rafael J. Wysocki 2010-02-17 586
aa33860158 Rafael J. Wysocki 2011-02-11 587 #ifdef CONFIG_PM
c072530f39 Rafael J. Wysocki 2014-07-23 588 acpi_status acpi_add_pm_notifier(struct acpi_device *adev, struct device *dev,
c072530f39 Rafael J. Wysocki 2014-07-23 589 void (*work_func)(struct work_struct *work));
c072530f39 Rafael J. Wysocki 2014-07-23 590 acpi_status acpi_remove_pm_notifier(struct acpi_device *adev);
ee85f54371 Huang Ying 2012-06-23 591 int acpi_pm_device_sleep_state(struct device *, int *, int);
5de21bb998 Rafael J. Wysocki 2014-11-27 592 int acpi_pm_device_run_wake(struct device *, bool);
761afb869f Rafael J. Wysocki 2010-10-14 593 #else
ec2cd81ccf Rafael J. Wysocki 2012-11-02 594 static inline acpi_status acpi_add_pm_notifier(struct acpi_device *adev,
c072530f39 Rafael J. Wysocki 2014-07-23 595 struct device *dev,
c072530f39 Rafael J. Wysocki 2014-07-23 596 void (*work_func)(struct work_struct *work))
ec2cd81ccf Rafael J. Wysocki 2012-11-02 597 {
ec2cd81ccf Rafael J. Wysocki 2012-11-02 @598 return AE_SUPPORT;
ec2cd81ccf Rafael J. Wysocki 2012-11-02 599 }
c072530f39 Rafael J. Wysocki 2014-07-23 @600 static inline acpi_status acpi_remove_pm_notifier(struct acpi_device *adev)
ec2cd81ccf Rafael J. Wysocki 2012-11-02 601 {
ec2cd81ccf Rafael J. Wysocki 2012-11-02 602 return AE_SUPPORT;
ec2cd81ccf Rafael J. Wysocki 2012-11-02 603 }
b25c77efa7 Rafael J. Wysocki 2013-06-16 604 static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m)
296699de6b Rafael J. Wysocki 2007-07-29 605 {
296699de6b Rafael J. Wysocki 2007-07-29 606 if (p)
296699de6b Rafael J. Wysocki 2007-07-29 @607 *p = ACPI_STATE_D0;
b25c77efa7 Rafael J. Wysocki 2013-06-16 608
8ad928d52e Rafael J. Wysocki 2013-07-30 609 return (m >= ACPI_STATE_D0 && m <= ACPI_STATE_D3_COLD) ?
8ad928d52e Rafael J. Wysocki 2013-07-30 610 m : ACPI_STATE_D0;
:::::: The code at line 598 was first introduced by commit
:::::: ec2cd81ccfc055155ef4ca673f207168f516d287 ACPI / PM: Move routines for adding/removing device wakeup notifiers
:::::: TO: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 25764 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170301/a8c4e9b8/attachment-0001.bin>
More information about the Alsa-devel
mailing list