From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 5 Mar 2025 15:14:26 +0800 [thread overview]
Message-ID: <202503051517.tw7zpZN5-lkp@intel.com> (raw)
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
reply other threads:[~2025-03-05 7:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202503051517.tw7zpZN5-lkp@intel.com \
--to=lkp@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox