Messages in this thread | | | Date | Sat, 8 Jan 2022 13:56:48 +0800 | From | kernel test robot <> | Subject | [ammarfaizi2-block:google/android/kernel/common/android11-kiwi-5.4 2422/9999] kernel/power/wakeup_reason.c:199:6: warning: no previous prototype for function '__log_abort_or_abnormal_wake' |
| |
Hi Kelly,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android11-kiwi-5.4 head: 7d1d5848183bd1d9086d0572f9af431d3ded407f commit: 189ced91cd7b0e440b0be876406fd36313a11c3f [2422/9999] ANDROID: power: wakeup_reason: wake reason enhancements config: x86_64-randconfig-a014-20220107 (https://download.01.org/0day-ci/archive/20220108/202201081335.QloPko7J-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/189ced91cd7b0e440b0be876406fd36313a11c3f git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android11-kiwi-5.4 git checkout 189ced91cd7b0e440b0be876406fd36313a11c3f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/power/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> kernel/power/wakeup_reason.c:199:6: warning: no previous prototype for function '__log_abort_or_abnormal_wake' [-Wmissing-prototypes] void __log_abort_or_abnormal_wake(bool abort, const char *fmt, va_list args) ^ kernel/power/wakeup_reason.c:199:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __log_abort_or_abnormal_wake(bool abort, const char *fmt, va_list args) ^ static kernel/power/wakeup_reason.c:378:12: warning: no previous prototype for function 'wakeup_reason_init' [-Wmissing-prototypes] int __init wakeup_reason_init(void) ^ kernel/power/wakeup_reason.c:378:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __init wakeup_reason_init(void) ^ static 2 warnings generated.
vim +/__log_abort_or_abnormal_wake +199 kernel/power/wakeup_reason.c
198 > 199 void __log_abort_or_abnormal_wake(bool abort, const char *fmt, va_list args) 200 { 201 unsigned long flags; 202 203 spin_lock_irqsave(&wakeup_reason_lock, flags); 204 205 /* Suspend abort or abnormal wake reason has already been logged. */ 206 if (suspend_abort || abnormal_wake) { 207 spin_unlock_irqrestore(&wakeup_reason_lock, flags); 208 return; 209 } 210 211 suspend_abort = abort; 212 abnormal_wake = !abort; 213 vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args); 214 215 spin_unlock_irqrestore(&wakeup_reason_lock, flags); 216 } 217
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |