tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: ef2982312942ba96fb8217df5d832051bae4afd2 commit: fdda68feeca82610ccbcdcbda7250623a6d187d2 [13850/21589] arm64/ascend: Set mem_sleep_current to PM_SUSPEND_ON for ascend platform :::::: branch date: 12 hours ago :::::: commit date: 3 years, 4 months ago config: arm64-randconfig-002-20240125 (attached as .config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (attached as 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/202401300313.05KTJWfI-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/mm/init.c:469:13: warning: no previous prototype for 'arm64_memblock_init' [-Wmissing-prototypes] 469 | void __init arm64_memblock_init(void) | ^~~~~~~~~~~~~~~~~~~ arch/arm64/mm/init.c: In function 'ascend_enable_setup':
arch/arm64/mm/init.c:784:17: error: 'mem_sleep_current' undeclared (first use in this function)
784 | mem_sleep_current = PM_SUSPEND_ON; | ^~~~~~~~~~~~~~~~~ arch/arm64/mm/init.c:784:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/mem_sleep_current +784 arch/arm64/mm/init.c
a7f8de168ace48 Ard Biesheuvel 2016-02-16 770 342049dccae659 Ding Tianhong 2020-08-31 771 #ifdef CONFIG_ASCEND_FEATURES 342049dccae659 Ding Tianhong 2020-08-31 772 static int __init ascend_enable_setup(char *__unused) 342049dccae659 Ding Tianhong 2020-08-31 773 { 342049dccae659 Ding Tianhong 2020-08-31 774 if (IS_ENABLED(CONFIG_ASCEND_DVPP_MMAP)) 0d9400057107e6 Ding Tianhong 2020-09-08 775 enable_mmap_dvpp = 1; 342049dccae659 Ding Tianhong 2020-08-31 776 342049dccae659 Ding Tianhong 2020-08-31 777 if (IS_ENABLED(CONFIG_ASCEND_IOPF_HIPRI)) 342049dccae659 Ding Tianhong 2020-08-31 778 enable_iopf_hipri = 1; 342049dccae659 Ding Tianhong 2020-08-31 779 342049dccae659 Ding Tianhong 2020-08-31 780 if (IS_ENABLED(CONFIG_ASCEND_CHARGE_MIGRATE_HUGEPAGES)) 342049dccae659 Ding Tianhong 2020-08-31 781 enable_charge_mighp = 1; 342049dccae659 Ding Tianhong 2020-08-31 782 fdda68feeca826 Ding Tianhong 2020-09-22 783 if (IS_ENABLED(CONFIG_SUSPEND)) fdda68feeca826 Ding Tianhong 2020-09-22 @784 mem_sleep_current = PM_SUSPEND_ON; fdda68feeca826 Ding Tianhong 2020-09-22 785 342049dccae659 Ding Tianhong 2020-08-31 786 return 1; 342049dccae659 Ding Tianhong 2020-08-31 787 } 342049dccae659 Ding Tianhong 2020-08-31 788