[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202407231135.jtSVw3hi-lkp@intel.com>
Date: Tue, 23 Jul 2024 11:29:14 +0800
From: kernel test robot <lkp@...el.com>
To: John Ogness <john.ogness@...utronix.de>, Petr Mladek <pmladek@...e.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Steven Rostedt <rostedt@...dmis.org>,
Thomas Gleixner <tglx@...utronix.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH printk v3 07/19] printk: Add helpers for flush type logic
Hi John,
kernel test robot noticed the following build errors:
[auto build test ERROR on b18703ea7157f62f02eb0ceb11f6fa0138e90adc]
url: https://github.com/intel-lab-lkp/linux/commits/John-Ogness/printk-nbcon-Clarify-nbcon_get_default_prio-context/20240723-015154
base: b18703ea7157f62f02eb0ceb11f6fa0138e90adc
patch link: https://lore.kernel.org/r/20240722171939.3349410-8-john.ogness%40linutronix.de
patch subject: [PATCH printk v3 07/19] printk: Add helpers for flush type logic
config: arm-randconfig-004-20240723 (https://download.01.org/0day-ci/archive/20240723/202407231135.jtSVw3hi-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad154281230d83ee551e12d5be48bb956ef47ed3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240723/202407231135.jtSVw3hi-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407231135.jtSVw3hi-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/printk/printk.c:23:
In file included from include/linux/mm.h:2253:
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from kernel/printk/printk.c:61:
>> kernel/printk/internal.h:188:26: error: call to undeclared function 'is_printk_deferred'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
188 | if (prefer_offload || is_printk_deferred())
| ^
kernel/printk/internal.h:188:26: note: did you mean '_printk_deferred'?
include/linux/printk.h:218:5: note: '_printk_deferred' declared here
218 | int _printk_deferred(const char *s, ...)
| ^
In file included from kernel/printk/printk.c:61:
kernel/printk/internal.h:237:8: error: call to undeclared function 'is_printk_deferred'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
237 | if (is_printk_deferred())
| ^
1 warning and 2 errors generated.
vim +/is_printk_deferred +188 kernel/printk/internal.h
172
173 /*
174 * Decide while console flushing methods are to be used. Used
175 * for all flushing except when flushing from emergency state.
176 *
177 * Set @prefer_offload to true if the context is only interested in
178 * offloading. Then offloading types will be set instead of direct,
179 * if appropriate.
180 */
181 static inline void printk_get_console_flush_type(struct console_flush_type *ft, bool prefer_offload)
182 {
183 memset(ft, 0, sizeof(*ft));
184
185 switch (nbcon_get_default_prio()) {
186 case NBCON_PRIO_NORMAL:
187 if (have_legacy_console || have_boot_console) {
> 188 if (prefer_offload || is_printk_deferred())
189 ft->legacy_offload = true;
190 else
191 ft->legacy_direct = true;
192 }
193
194 if (have_nbcon_console && !have_boot_console)
195 ft->nbcon_atomic = true;
196 break;
197
198 case NBCON_PRIO_EMERGENCY:
199 /*
200 * Skip. The consoles will be flushed when exiting emergency
201 * state. See printk_get_emergency_console_flush_type().
202 */
203 break;
204
205 case NBCON_PRIO_PANIC:
206 if (have_nbcon_console && !have_boot_console)
207 ft->nbcon_atomic = true;
208
209 /*
210 * In panic, if nbcon atomic printing occurs, the legacy
211 * consoles must remain silent until explicitly allowed.
212 */
213 if (legacy_allow_panic_sync || !ft->nbcon_atomic)
214 ft->legacy_direct = true;
215 break;
216
217 default:
218 WARN_ON_ONCE(1);
219 break;
220 }
221 }
222
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists