All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-rt-devel:linux-5.10.y-rt-rebase 76/230] kernel/printk/printk.c:2581:6: error: implicit declaration of function 'kernel_sync_mode'
@ 2020-11-04  6:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-04  6:53 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.10.y-rt-rebase
head:   90ecdfa46b9a085ed91bfe548a79e6981607ff6e
commit: 536fcbd85642abb42f848bdd556e2d2e2b6518d9 [76/230] printk: introduce kernel sync mode
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=536fcbd85642abb42f848bdd556e2d2e2b6518d9
        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.10.y-rt-rebase
        git checkout 536fcbd85642abb42f848bdd556e2d2e2b6518d9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 

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 >>):

   In file included from kernel/printk/printk.c:62:
   kernel/printk/internal.h:56:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes]
      56 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; }
         |                    ^~~~~~~~~~~~
   kernel/printk/printk.c:179:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes]
     179 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/printk/printk.c:2297:33: error: implicit declaration of function 'ATOMI64_INIT'; did you mean 'ATOMIC64_INIT'? [-Werror=implicit-function-declaration]
    2297 | static atomic64_t console_seq = ATOMI64_INIT(0);
         |                                 ^~~~~~~~~~~~
         |                                 ATOMIC64_INIT
   kernel/printk/printk.c:2297:33: error: invalid initializer
   kernel/printk/printk.c: In function 'can_use_console':
>> kernel/printk/printk.c:2581:6: error: implicit declaration of function 'kernel_sync_mode' [-Werror=implicit-function-declaration]
    2581 |  if (kernel_sync_mode())
         |      ^~~~~~~~~~~~~~~~
   kernel/printk/printk.c: At top level:
   kernel/printk/printk.c:3693:6: warning: no previous prototype for 'prb_lock' [-Wmissing-prototypes]
    3693 | void prb_lock(struct prb_cpulock *cpu_lock, unsigned int *cpu_store)
         |      ^~~~~~~~
   kernel/printk/printk.c:3711:6: warning: no previous prototype for 'prb_unlock' [-Wmissing-prototypes]
    3711 | void prb_unlock(struct prb_cpulock *cpu_lock, unsigned int cpu_store)
         |      ^~~~~~~~~~
   kernel/printk/printk.c:83:13: warning: 'sync_mode' defined but not used [-Wunused-variable]
      83 | static bool sync_mode;
         |             ^~~~~~~~~
   cc1: some warnings being treated as errors

vim +/kernel_sync_mode +2581 kernel/printk/printk.c

  2571	
  2572	/*
  2573	 * Can we actually use the console at this time on this cpu?
  2574	 *
  2575	 * Console drivers may assume that per-cpu resources have been allocated. So
  2576	 * unless they're explicitly marked as being able to cope (CON_ANYTIME) don't
  2577	 * call them until this CPU is officially up.
  2578	 */
  2579	static inline int can_use_console(void)
  2580	{
> 2581		if (kernel_sync_mode())
  2582			return false;
  2583		return cpu_online(raw_smp_processor_id()) || have_callable_console();
  2584	}
  2585	

---
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: 5249 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-04  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04  6:53 [linux-rt-devel:linux-5.10.y-rt-rebase 76/230] kernel/printk/printk.c:2581:6: error: implicit declaration of function 'kernel_sync_mode' 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.