Hi Ma, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 06a8b520851290347ca458d4335bebc607fe3b58 commit: 2525d04c6308006b789564ed955081602727f38f [3382/3382] mm: Introduce proc interface to disable memory reliable features config: arm64-randconfig-r122-20251205 (https://download.01.org/0day-ci/archive/20251205/202512052303.PrP6S3Hw-lkp@i...) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251205/202512052303.PrP6S3Hw-lkp@i...) 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/202512052303.PrP6S3Hw-lkp@intel.com/ All error/warnings (new ones prefixed by >>): mm/mem_reliable.c: In function 'mem_reliable_feature_disable':
mm/mem_reliable.c:430:2: error: implicit declaration of function 'mem_reliable_ctrl_bit_disable'; did you mean 'mem_reliable_ctrl_bit_disabled'? [-Werror=implicit-function-declaration] mem_reliable_ctrl_bit_disable(idx); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mem_reliable_ctrl_bit_disabled At top level: mm/mem_reliable.c:405:13: warning: 'mem_reliable_ctrl_bit_disabled' defined but not used [-Wunused-function] static void mem_reliable_ctrl_bit_disabled(int idx) {} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PCI_IOV Depends on [n]: PCI [=n] Selected by [y]: - CRYPTO_DEV_HISI_MIGRATION [=y] && CRYPTO [=y] && CRYPTO_HW [=y] && ARM64 [=y] && ACPI [=y] vim +430 mm/mem_reliable.c 387 388 static int __init reliable_sysctl_init(void) 389 { 390 if (!mem_reliable_is_enabled()) 391 return 0; 392 393 if (!register_sysctl_table(reliable_dir_table)) { 394 pr_err("register sysctl failed."); 395 return -ENOMEM; 396 } 397 398 percpu_counter_init(&pagecache_reliable_pages, 0, GFP_KERNEL); 399 percpu_counter_init(&anon_reliable_pages, 0, GFP_KERNEL); 400 401 return 0; 402 } 403 arch_initcall(reliable_sysctl_init); 404 #else
405 static void mem_reliable_ctrl_bit_disabled(int idx) {} 406 #endif 407 408 static void mem_reliable_feature_disable(int idx) 409 { 410 char *str = NULL; 411 412 switch (idx) { 413 case MEM_RELIABLE_FALLBACK: 414 reliable_allow_fallback = false; 415 str = "fallback"; 416 break; 417 case MEM_RELIABLE_SHMEM: 418 shmem_reliable = false; 419 str = "shmem"; 420 break; 421 case MEM_RELIABLE_PAGECACHE: 422 pagecache_use_reliable_mem = false; 423 str = "pagecache"; 424 break; 425 default: 426 pr_err("unknown index: %d", idx); 427 return; 428 } 429 430 mem_reliable_ctrl_bit_disable(idx); 431 pr_info("%s is disabled\n", str); 432 } 433
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki