* [akpm-mm:mm-unstable 106/111] mm/debug.c:270:17: warning: invalid conversion specifier 'b'
@ 2025-01-31 9:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-31 9:54 UTC (permalink / raw)
To: Lorenzo Stoakes
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
Vlastimil Babka
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: f5604ad70091eabe663ea7106ced99449d653320
commit: 951452b2ec82d352a69f14cfffdeb7c08461eefb [106/111] mm: further refactor commit_merge()
config: arm-randconfig-002-20250131 (https://download.01.org/0day-ci/archive/20250131/202501311720.ZJWcwKLY-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501311720.ZJWcwKLY-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/202501311720.ZJWcwKLY-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/debug.c:270:17: warning: invalid conversion specifier 'b' [-Wformat-invalid-specifier]
"just_expand %b __remove_middle %b __remove_next %b\n",
~^
include/linux/printk.h:554:29: note: expanded from macro 'pr_warn'
printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:391:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/printk.h:501:53: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
^~~
include/linux/printk.h:473:11: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
^~~~
mm/debug.c:270:36: warning: invalid conversion specifier 'b' [-Wformat-invalid-specifier]
"just_expand %b __remove_middle %b __remove_next %b\n",
~^
include/linux/printk.h:554:29: note: expanded from macro 'pr_warn'
printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:391:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/printk.h:501:53: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
^~~
include/linux/printk.h:473:11: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
^~~~
mm/debug.c:270:53: warning: invalid conversion specifier 'b' [-Wformat-invalid-specifier]
"just_expand %b __remove_middle %b __remove_next %b\n",
~^
include/linux/printk.h:554:29: note: expanded from macro 'pr_warn'
printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:391:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/printk.h:501:53: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
^~~
include/linux/printk.h:473:11: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
^~~~
>> mm/debug.c:284:3: warning: data argument not used by format string [-Wformat-extra-args]
vmg->just_expand, vmg->__remove_middle, vmg->__remove_next);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:554:37: note: expanded from macro 'pr_warn'
printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/printk.h:501:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^
4 warnings generated.
vim +/b +270 mm/debug.c
251
252 void dump_vmg(const struct vma_merge_struct *vmg, const char *reason)
253 {
254 if (reason)
255 pr_warn("vmg %px dumped because: %s\n", vmg, reason);
256
257 if (!vmg) {
258 pr_warn("vmg %px state: (NULL)\n", vmg);
259 return;
260 }
261
262 pr_warn("vmg %px state: mm %px pgoff %lx\n"
263 "vmi %px [%lx,%lx)\n"
264 "prev %px middle %px next %px target %px\n"
265 "start %lx end %lx flags %lx\n"
266 "file %px anon_vma %px policy %px\n"
267 "uffd_ctx %px\n"
268 "anon_name %px\n"
269 "state %x\n"
> 270 "just_expand %b __remove_middle %b __remove_next %b\n",
271 vmg, vmg->mm, vmg->pgoff,
272 vmg->vmi, vmg->vmi ? vma_iter_addr(vmg->vmi) : 0,
273 vmg->vmi ? vma_iter_end(vmg->vmi) : 0,
274 vmg->prev, vmg->middle, vmg->next, vmg->target,
275 vmg->start, vmg->end, vmg->flags,
276 vmg->file, vmg->anon_vma, vmg->policy,
277 #ifdef CONFIG_USERFAULTFD
278 vmg->uffd_ctx.ctx,
279 #else
280 (void *)0,
281 #endif
282 vmg->anon_name,
283 (int)vmg->state,
> 284 vmg->just_expand, vmg->__remove_middle, vmg->__remove_next);
285
286 if (vmg->mm) {
287 pr_warn("vmg %px mm:\n", vmg);
288 dump_mm(vmg->mm);
289 } else {
290 pr_warn("vmg %px mm: (NULL)\n", vmg);
291 }
292
293 if (vmg->prev) {
294 pr_warn("vmg %px prev:\n", vmg);
295 dump_vma(vmg->prev);
296 } else {
297 pr_warn("vmg %px prev: (NULL)\n", vmg);
298 }
299
300 if (vmg->middle) {
301 pr_warn("vmg %px middle:\n", vmg);
302 dump_vma(vmg->middle);
303 } else {
304 pr_warn("vmg %px middle: (NULL)\n", vmg);
305 }
306
307 if (vmg->next) {
308 pr_warn("vmg %px next:\n", vmg);
309 dump_vma(vmg->next);
310 } else {
311 pr_warn("vmg %px next: (NULL)\n", vmg);
312 }
313
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-31 9:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-31 9:54 [akpm-mm:mm-unstable 106/111] mm/debug.c:270:17: warning: invalid conversion specifier 'b' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox