tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: b6c524b2e93b23a396a90031faa29350beeb95fc commit: edd0afcd2eb853ee46a1509a1983b042a6b857f4 [148/162] PM / wakeup: Print warn if device gets enabled as wakeup source during sleep config: i386-randconfig-s0-201801 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout edd0afcd2eb853ee46a1509a1983b042a6b857f4 # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/base/power/wakeup.o: In function `device_wakeup_enable': >> drivers/base/power/wakeup.c:271: undefined reference to `pm_suspend_target_state' vim +271 drivers/base/power/wakeup.c 256 257 /** 258 * device_wakeup_enable - Enable given device to be a wakeup source. 259 * @dev: Device to handle. 260 * 261 * Create a wakeup source object, register it and attach it to @dev. 262 */ 263 int device_wakeup_enable(struct device *dev) 264 { 265 struct wakeup_source *ws; 266 int ret; 267 268 if (!dev || !dev->power.can_wakeup) 269 return -EINVAL; 270 > 271 if (pm_suspend_target_state != PM_SUSPEND_ON) 272 dev_dbg(dev, "Suspicious %s() during system transition\n", __func__); 273 274 ws = wakeup_source_register(dev_name(dev)); 275 if (!ws) 276 return -ENOMEM; 277 278 ret = device_wakeup_attach(dev, ws); 279 if (ret) 280 wakeup_source_unregister(ws); 281 282 return ret; 283 } 284 EXPORT_SYMBOL_GPL(device_wakeup_enable); 285 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip