[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107082225.BsUEGYP8-lkp@intel.com>
Date: Thu, 8 Jul 2021 22:18:29 +0800
From: kernel test robot <lkp@...el.com>
To: John Ogness <john.ogness@...utronix.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Subject: [linux-rt-devel:linux-5.13.y-rt-rebase 14/222]
kernel/printk/printk.c:3633:17: error: implicit declaration of function
'read_console_seq'; did you mean 'up_console_sem'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-rebase
head: 7e175e6b59975c8901ad370f7818937f68de45c1
commit: 63cf1e4b564a46ec7bee5571cff518c70355dbdf [14/222] printk: add pr_flush()
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=63cf1e4b564a46ec7bee5571cff518c70355dbdf
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.13.y-rt-rebase
git checkout 63cf1e4b564a46ec7bee5571cff518c70355dbdf
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
kernel/printk/printk.c:178:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes]
178 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/printk.c: In function 'console_flush_on_panic':
kernel/printk/printk.c:2674:4: error: implicit declaration of function 'latched_seq_write' [-Werror=implicit-function-declaration]
2674 | latched_seq_write(&c->printk_seq, seq);
| ^~~~~~~~~~~~~~~~~
kernel/printk/printk.c: In function 'pr_flush':
>> kernel/printk/printk.c:3633:17: error: implicit declaration of function 'read_console_seq'; did you mean 'up_console_sem'? [-Werror=implicit-function-declaration]
3633 | printk_seq = read_console_seq(con);
| ^~~~~~~~~~~~~~~~
| up_console_sem
cc1: some warnings being treated as errors
vim +3633 kernel/printk/printk.c
3597
3598 /**
3599 * pr_flush() - Wait for printing threads to catch up.
3600 *
3601 * @timeout_ms: The maximum time (in ms) to wait.
3602 * @reset_on_progress: Reset the timeout if forward progress is seen.
3603 *
3604 * A value of 0 for @timeout_ms means no waiting will occur. A value of -1
3605 * represents infinite waiting.
3606 *
3607 * If @reset_on_progress is true, the timeout will be reset whenever any
3608 * printer has been seen to make some forward progress.
3609 *
3610 * Context: Any context.
3611 * Return: true if all enabled printers are caught up.
3612 */
3613 bool pr_flush(int timeout_ms, bool reset_on_progress)
3614 {
3615 int remaining = timeout_ms;
3616 struct console *con;
3617 u64 last_diff = 0;
3618 bool may_sleep;
3619 u64 printk_seq;
3620 u64 diff;
3621 u64 seq;
3622
3623 may_sleep = (preemptible() && !in_softirq());
3624
3625 seq = prb_next_seq(prb);
3626
3627 for (;;) {
3628 diff = 0;
3629
3630 for_each_console(con) {
3631 if (!(con->flags & CON_ENABLED))
3632 continue;
> 3633 printk_seq = read_console_seq(con);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (7414 bytes)
Powered by blists - more mailing lists