tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/deprecated/android-4.14-p-release head: 0ca5d5ac9152d01b3494fb2efb5390319eb9904a commit: 0b44afa099f8b65d21e5eec5e864f988b30e2099 [192/6167] ANDROID: power: wakeup_reason: add an API to log wakeup reasons config: x86_64-randconfig-a013 compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/0b44afa099f8b65d21e5eec5e864f988b30e2099 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/deprecated/android-4.14-p-release git checkout 0b44afa099f8b65d21e5eec5e864f988b30e2099 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash LDFLAGS=-z max-page-size=0x200000 arch/x86/kernel/ kernel/power/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/power/wakeup_reason.c:108:12: warning: no previous declaration for 'wakeup_reason_init' [-Wmissing-declarations] int __init wakeup_reason_init(void) ^~~~~~~~~~~~~~~~~~ vim +/wakeup_reason_init +108 kernel/power/wakeup_reason.c 104 105 /* Initializes the sysfs parameter 106 * registers the pm_event notifier 107 */ > 108 int __init wakeup_reason_init(void) 109 { 110 int retval; 111 spin_lock_init(&resume_reason_lock); 112 retval = register_pm_notifier(&wakeup_reason_pm_notifier_block); 113 if (retval) 114 printk(KERN_WARNING "[%s] failed to register PM notifier %d\n", 115 __func__, retval); 116 117 wakeup_reason = kobject_create_and_add("wakeup_reasons", kernel_kobj); 118 if (!wakeup_reason) { 119 printk(KERN_WARNING "[%s] failed to create a sysfs kobject\n", 120 __func__); 121 return 1; 122 } 123 retval = sysfs_create_group(wakeup_reason, &attr_group); 124 if (retval) { 125 kobject_put(wakeup_reason); 126 printk(KERN_WARNING "[%s] failed to create a sysfs group %d\n", 127 __func__, retval); 128 } 129 return 0; 130 } 131 -- 0-DAY CI Kernel Test Service https://01.org/lkp