tree:
https://android.googlesource.com/kernel/common android-4.19
head: e7b509cf04859273495a2e87c136f6200556d593
commit: e7b509cf04859273495a2e87c136f6200556d593 [2/2] ANDROID: power: wakeup_reason: wake
reason enhancements
config: arm-randconfig-r025-20200521 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
git checkout e7b509cf04859273495a2e87c136f6200556d593
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
kernel/power/wakeup_reason.c:199:6: warning: no previous prototype for
'__log_abort_or_abnormal_wake' [-Wmissing-prototypes]
199 | void __log_abort_or_abnormal_wake(bool abort, const char *fmt, va_list args)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/power/wakeup_reason.c: In function '__log_abort_or_abnormal_wake':
> kernel/power/wakeup_reason.c:213:2: warning: function
'__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf'
format attribute [-Wsuggest-attribute=format]
213 | vsnprintf(non_irq_wake_reason,
MAX_SUSPEND_ABORT_LEN, fmt, args);
| ^~~~~~~~~
kernel/power/wakeup_reason.c: At top level:
kernel/power/wakeup_reason.c:378:12: warning: no previous prototype for
'wakeup_reason_init' [-Wmissing-prototypes]
378 | int __init wakeup_reason_init(void)
| ^~~~~~~~~~~~~~~~~~
vim +213 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