public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [riteshharjani:kfence-fix-wip6 10/10] arch/powerpc/mm/book3s64/hash_utils.c:1077:37: error: use of undeclared identifier 'kfence_early_init'; did you mean 'udbg_early_init'?
Date: Wed, 24 Jul 2024 11:36:17 +0800	[thread overview]
Message-ID: <202407241107.DMQfuo0p-lkp@intel.com> (raw)

tree:   https://github.com/riteshharjani/linux kfence-fix-wip6
head:   28d73773290c65f55d22e038b4f13c5c4941a561
commit: 28d73773290c65f55d22e038b4f13c5c4941a561 [10/10] kfence: disable if not early init
config: powerpc64-randconfig-001-20240724 (https://download.01.org/0day-ci/archive/20240724/202407241107.DMQfuo0p-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/20240724/202407241107.DMQfuo0p-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/202407241107.DMQfuo0p-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from arch/powerpc/mm/book3s64/hash_utils.c:32:
   In file included from include/linux/memblock.h:12:
   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_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> arch/powerpc/mm/book3s64/hash_utils.c:1077:37: error: use of undeclared identifier 'kfence_early_init'; did you mean 'udbg_early_init'?
    1077 |             !(IS_ENABLED(CONFIG_KFENCE) && kfence_early_init)) {
         |                                            ^~~~~~~~~~~~~~~~~
         |                                            udbg_early_init
   arch/powerpc/include/asm/udbg.h:37:13: note: 'udbg_early_init' declared here
      37 | void __init udbg_early_init(void);
         |             ^
>> arch/powerpc/mm/book3s64/hash_utils.c:1077:37: warning: address of function 'udbg_early_init' will always evaluate to 'true' [-Wpointer-bool-conversion]
    1077 |             !(IS_ENABLED(CONFIG_KFENCE) && kfence_early_init)) {
         |                                         ~~ ^~~~~~~~~~~~~~~~~
   arch/powerpc/mm/book3s64/hash_utils.c:1077:37: note: prefix with the address-of operator to silence this warning
    1077 |             !(IS_ENABLED(CONFIG_KFENCE) && kfence_early_init)) {
         |                                            ^
         |                                            &
   2 warnings and 1 error generated.


vim +1077 arch/powerpc/mm/book3s64/hash_utils.c

  1070	
  1071	static void __init htab_init_page_sizes(void)
  1072	{
  1073		bool aligned = true;
  1074		init_hpte_page_sizes();
  1075	
  1076		if (!debug_pagealloc_enabled() &&
> 1077		    !(IS_ENABLED(CONFIG_KFENCE) && kfence_early_init)) {
  1078			/*
  1079			 * Pick a size for the linear mapping. Currently, we only
  1080			 * support 16M, 1M and 4K which is the default
  1081			 */
  1082			if (IS_ENABLED(CONFIG_STRICT_KERNEL_RWX) &&
  1083			    (unsigned long)_stext % 0x1000000) {
  1084				if (mmu_psize_defs[MMU_PAGE_16M].shift)
  1085					pr_warn("Kernel not 16M aligned, disabling 16M linear map alignment\n");
  1086				aligned = false;
  1087			}
  1088	
  1089			if (mmu_psize_defs[MMU_PAGE_16M].shift && aligned)
  1090				mmu_linear_psize = MMU_PAGE_16M;
  1091			else if (mmu_psize_defs[MMU_PAGE_1M].shift)
  1092				mmu_linear_psize = MMU_PAGE_1M;
  1093		}
  1094	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-07-24  3:37 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=202407241107.DMQfuo0p-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ritesh.list@gmail.com \
    /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