From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android11-kiwi-5.4 5610/28967] kernel/power/wakeup_reason.c:199:6: warning: no previous prototype for function '__log_abort_or_abnormal_wake'
Date: Tue, 19 Dec 2023 21:29:54 +0800 [thread overview]
Message-ID: <202312192151.Fr4FdrKy-lkp@intel.com> (raw)
Hi Kelly,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android11-kiwi-5.4
head: b27ff50e6aa803b8a5833300ef8ae2a065006f3d
commit: 189ced91cd7b0e440b0be876406fd36313a11c3f [5610/28967] ANDROID: power: wakeup_reason: wake reason enhancements
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231219/202312192151.Fr4FdrKy-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231219/202312192151.Fr4FdrKy-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312192151.Fr4FdrKy-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
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-12-19 13:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202312192151.Fr4FdrKy-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.