tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: b4852fbf90916fdc2f1e0e282e100f7e0e889d77
commit: 0ab2a632cc5e8a67c3a365fc2713ff6351546dea [1977/2818] REVISIT: ANDROID: power:
wakeup_reason: add an API to log wakeup reasons
config:
arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.15:b4852fbf90916fdc2f1e0e282e100f7e0e889d77
(
https://download.01.org/0day-ci/archive/20211212/202112121559.qEw8xpfv-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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 remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout 0ab2a632cc5e8a67c3a365fc2713ff6351546dea
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/power/wakeup_reason.c: In function '__log_abort_or_abnormal_wake':
> kernel/power/wakeup_reason.c:234:9: error: function
'__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf'
format attribute [-Werror=suggest-attribute=format]
234 |
vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +234 kernel/power/wakeup_reason.c
215
216 static void __log_abort_or_abnormal_wake(bool abort, const char *fmt,
217 va_list args)
218 {
219 unsigned long flags;
220
221 spin_lock_irqsave(&wakeup_reason_lock, flags);
222
223 /* Suspend abort or abnormal wake reason has already been logged. */
224 if (wakeup_reason != RESUME_NONE) {
225 spin_unlock_irqrestore(&wakeup_reason_lock, flags);
226 return;
227 }
228
229 if (abort)
230 wakeup_reason = RESUME_ABORT;
231 else
232 wakeup_reason = RESUME_ABNORMAL;
233
234 vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt,
args);
235
236 spin_unlock_irqrestore(&wakeup_reason_lock, flags);
237 }
238
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org