* [morimoto:string-helper-2025-03-04 52/264] arch/arm/mm/pmsa-v7.c:473:4: error: call to undeclared function 'str_yes_no'; ISO C99 and later do not support implicit function declarations
@ 2025-03-05 7:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-05 7:14 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux string-helper-2025-03-04
head: dc1f35422c705e8df42322c71936bd12213d0a46
commit: 02c2077b2f4be41510bc150cc157d523b63020d4 [52/264] arm: mm: pmsa-v7: use string choices helper
config: arm-randconfig-002-20250305 (https://download.01.org/0day-ci/archive/20250305/202503051517.tw7zpZN5-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250305/202503051517.tw7zpZN5-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/202503051517.tw7zpZN5-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> arch/arm/mm/pmsa-v7.c:473:4: error: call to undeclared function 'str_yes_no'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
473 | str_yes_no(mpu_iside_independent()),
| ^
>> arch/arm/mm/pmsa-v7.c:473:4: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
472 | "Region independence: %s, Used %d of %d regions\n",
| ~~
| %d
473 | str_yes_no(mpu_iside_independent()),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:574:34: note: expanded from macro 'pr_info'
574 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:501:60: note: expanded from macro 'printk'
501 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
473 | _p_func(_fmt, ##__VA_ARGS__); \
| ~~~~ ^~~~~~~~~~~
1 warning and 1 error generated.
vim +/str_yes_no +473 arch/arm/mm/pmsa-v7.c
451
452 /* RAM */
453 for (i = 0; i < ARRAY_SIZE(mem); i++) {
454 if (!mem[i].size)
455 continue;
456
457 err |= mpu_setup_region(region++, mem[i].base, ilog2(mem[i].size),
458 PMSAv7_AP_PL1RW_PL0RW | PMSAv7_RGN_NORMAL,
459 mem[i].subreg, false);
460 }
461
462 /* Vectors */
463 #ifndef CONFIG_CPU_V7M
464 err |= mpu_setup_region(region++, vectors_base, ilog2(2 * PAGE_SIZE),
465 PMSAv7_AP_PL1RW_PL0NA | PMSAv7_RGN_NORMAL,
466 0, false);
467 #endif
468 if (err) {
469 panic("MPU region initialization failure! %d", err);
470 } else {
471 pr_info("Using ARMv7 PMSA Compliant MPU. "
472 "Region independence: %s, Used %d of %d regions\n",
> 473 str_yes_no(mpu_iside_independent()),
--
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-03-05 7:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-05 7:14 [morimoto:string-helper-2025-03-04 52/264] arch/arm/mm/pmsa-v7.c:473:4: error: call to undeclared function 'str_yes_no'; ISO C99 and later do not support implicit function declarations 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