All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'?
@ 2021-07-08 14:18 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-08 14:18 UTC (permalink / raw)
  To: John Ogness
  Cc: kbuild-all, linux-kernel, Thomas Gleixner, Sebastian Andrzej Siewior

[-- Attachment #1: Type: text/plain, Size: 3199 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7414 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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'?
@ 2021-07-08 14:18 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-08 14:18 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3277 bytes --]

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@intel.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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 7414 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-08 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 14:18 [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'? kernel test robot
2021-07-08 14:18 ` kernel test robot

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.