From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF1D5C07E97 for ; Tue, 5 Dec 2023 06:37:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 611F16B0096; Tue, 5 Dec 2023 01:37:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5C2176B0098; Tue, 5 Dec 2023 01:37:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4B0AD6B0099; Tue, 5 Dec 2023 01:37:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 3C6E16B0096 for ; Tue, 5 Dec 2023 01:37:17 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 15A31A01AC for ; Tue, 5 Dec 2023 06:37:17 +0000 (UTC) X-FDA: 81531807714.04.F76A526 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by imf02.hostedemail.com (Postfix) with ESMTP id 14E0780007 for ; Tue, 5 Dec 2023 06:37:14 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=n1kq5yTx; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701758235; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=ja5y1CloUliNav7yW8h8mQgeveC8LGRXFExHcmaxJSA=; b=AKvL5mifp+SQSUhELMmar+ciwhNlgxNSMHDWNx2ItGwkDk6q/bLp4yk/PNWmKQe0fBCh3I Vc4e/c+reTKNM3xg3v9viS1Sd92UKKR2Ayi+E3zgOWOsCH/snYmK7yy2V+HKhBRuLlL+L2 9iwG2B7NiOjLsli43rYKae+fDD9YZsU= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=n1kq5yTx; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701758235; a=rsa-sha256; cv=none; b=PU8dqQEw6FbHH90BMdC3LqjlDPh/7L0Zh1Amz5cWSK5kc1gLpgG5gpTCKVtBrhkzDDBKO3 yMAIF9jg2grxRKnAae9b69dEUOLgI6t1Bn19AQuyZPzgvoUcgMLI64cZLxvXpIcbYsQao/ pmw9QCIielmx3n/cd30h7fHQo5m6pAo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701758235; x=1733294235; h=date:from:to:cc:subject:message-id:mime-version; bh=BzdXWvseXq45e5+sdumpRpn+UxxVdhSHmuIAYkNY+DM=; b=n1kq5yTxjH0/m4atVc9XcTaMsEmBC7q+BnoKztc6d4pVML05X32iEYMJ sVRJiq4pcCcr0V6JXF8TNagsGv0ms81xg+F6JTvrTMn1IrOt/EQ7UsQ7s Hag+t7HYiCmUpRTN6mg/MzQ3yy2GYQwOGHwjGXrPPk/ukJkpuYDlyjeIQ V3aZi1w9LRD6B1F8Mi9VlRzUYeXO2n8mO+VuFxAyLe3PmeuGoNzqCkMEE b8mp8em+UqoCGKe3LwQE0/bhfOzwhKr0MTNuvbGXdhAggYSxvZTo/P63p 90fgt3BRpxxKPV3xh54tisOk16k3eUg2OVZV1sCkoQigULq7Sc2V4Nq9n g==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="458171297" X-IronPort-AV: E=Sophos;i="6.04,251,1695711600"; d="scan'208";a="458171297" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 22:37:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="747113581" X-IronPort-AV: E=Sophos;i="6.04,251,1695711600"; d="scan'208";a="747113581" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 04 Dec 2023 22:37:03 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rAP3F-0008RX-1W; Tue, 05 Dec 2023 06:37:01 +0000 Date: Tue, 5 Dec 2023 14:36:12 +0800 From: kernel test robot To: Baoquan He Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 3905/4597] arch/mips/kernel/machine_kexec.c:161:6: warning: no previous prototype for 'kexec_nonboot_cpu_jump' Message-ID: <202312051416.YiRWCYmp-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 14E0780007 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: sz3cbcauo4t8pns94fg4phm6zwmn3j14 X-HE-Tag: 1701758234-786218 X-HE-Meta: U2FsdGVkX1/20n2QDvBM4xVcVQkg4LIFXmYNKG8DnGfLER26uEXoaARObSJ0AYop2eO9cQhnyQyd3Sa6lQ/B6VisuhKG5zOqcwcxHCUpZBR+vKZxi+7hRwohqWh2hN+NnaSImTcPN+KlPdG7zyHQdrMMxwUWD6DjDHoWmIzk83TJbwvGjRIoNVh4TMnE7eNdVEplxbSSuYunpVHe0BSdTR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21/3yQP3mbyDEKAqnXCWG+lpVuaEYAxD1AzAwFIkmIm8puzKyESDeL5I/ObTOQLC8koiR0KCjHFSiWWgGdQAPMEKmGoVzwOn5zEQt5ozBBYYWrGzZ3Y8pAQbapzGH0khGj602M3Ua1ozhcXCGMYwkGyfu4J7EKuWdIBVUT23cYMoNPEbHvF6XdMlNAhCiDP2 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 0f5f12ac05f36f117e793656c3f560625e927f1b commit: f7a6fde1ce06ddb4bc39e09ec82508dea41f2700 [3905/4597] kexec_core: change dependency of object files config: mips-randconfig-r021-20230305 (https://download.01.org/0day-ci/archive/20231205/202312051416.YiRWCYmp-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312051416.YiRWCYmp-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202312051416.YiRWCYmp-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/mips/kernel/machine_kexec.c: In function 'machine_kexec_prepare': arch/mips/kernel/machine_kexec.c:97:14: error: implicit declaration of function 'kexec_nonboot_cpu_func' [-Werror=implicit-function-declaration] 97 | if (!kexec_nonboot_cpu_func()) | ^~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: In function 'kexec_shutdown_secondary': arch/mips/kernel/machine_kexec.c:129:9: error: implicit declaration of function 'kexec_reboot' [-Werror=implicit-function-declaration] 129 | kexec_reboot(); | ^~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: At top level: arch/mips/kernel/machine_kexec.c:136:1: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes] 136 | machine_shutdown(void) | ^~~~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c:152:1: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes] 152 | machine_crash_shutdown(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: In function 'machine_crash_shutdown': arch/mips/kernel/machine_kexec.c:157:17: error: implicit declaration of function 'default_machine_crash_shutdown'; did you mean '_machine_crash_shutdown'? [-Werror=implicit-function-declaration] 157 | default_machine_crash_shutdown(regs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | _machine_crash_shutdown arch/mips/kernel/machine_kexec.c: At top level: >> arch/mips/kernel/machine_kexec.c:161:6: warning: no previous prototype for 'kexec_nonboot_cpu_jump' [-Wmissing-prototypes] 161 | void kexec_nonboot_cpu_jump(void) | ^~~~~~~~~~~~~~~~~~~~~~ >> arch/mips/kernel/machine_kexec.c:170:6: warning: no previous prototype for 'kexec_reboot' [-Wmissing-prototypes] 170 | void kexec_reboot(void) | ^~~~~~~~~~~~ >> arch/mips/kernel/machine_kexec.c:170:6: warning: conflicting types for 'kexec_reboot'; have 'void(void)' arch/mips/kernel/machine_kexec.c:129:9: note: previous implicit declaration of 'kexec_reboot' with type 'void(void)' 129 | kexec_reboot(); | ^~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c: In function 'kexec_reboot': arch/mips/kernel/machine_kexec.c:191:17: error: implicit declaration of function 'kexec_nonboot_cpu'; did you mean 'kexec_nonboot_cpu_jump'? [-Werror=implicit-function-declaration] 191 | kexec_nonboot_cpu(); | ^~~~~~~~~~~~~~~~~ | kexec_nonboot_cpu_jump arch/mips/kernel/machine_kexec.c: In function 'machine_kexec': arch/mips/kernel/machine_kexec.c:259:26: error: 'kexec_smp_wait' undeclared (first use in this function) 259 | (void *)(kexec_smp_wait - relocate_new_kernel); | ^~~~~~~~~~~~~~ arch/mips/kernel/machine_kexec.c:259:26: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors -- arch/mips/kernel/crash.c: In function 'crash_shutdown_secondary': arch/mips/kernel/crash.c:47:30: error: 'kexec_ready_to_reboot' undeclared (first use in this function) 47 | while (!atomic_read(&kexec_ready_to_reboot)) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/crash.c:47:30: note: each undeclared identifier is reported only once for each function it appears in arch/mips/kernel/crash.c:50:9: error: implicit declaration of function 'kexec_reboot' [-Werror=implicit-function-declaration] 50 | kexec_reboot(); | ^~~~~~~~~~~~ arch/mips/kernel/crash.c: In function 'crash_smp_send_stop': arch/mips/kernel/crash.c:86:13: error: '_crash_smp_send_stop' undeclared (first use in this function); did you mean 'crash_smp_send_stop'? 86 | if (_crash_smp_send_stop) | ^~~~~~~~~~~~~~~~~~~~ | crash_smp_send_stop arch/mips/kernel/crash.c:87:17: error: implicit declaration of function '_crash_smp_send_stop'; did you mean 'crash_smp_send_stop'? [-Werror=implicit-function-declaration] 87 | _crash_smp_send_stop(); | ^~~~~~~~~~~~~~~~~~~~ | crash_smp_send_stop arch/mips/kernel/crash.c: At top level: >> arch/mips/kernel/crash.c:96:6: warning: no previous prototype for 'default_machine_crash_shutdown' [-Wmissing-prototypes] 96 | void default_machine_crash_shutdown(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/kexec_nonboot_cpu_jump +161 arch/mips/kernel/machine_kexec.c 583bb86fbb9e85 Nicolas Schichan 2006-10-18 159 62cac480f33f8f Dengcheng Zhu 2018-09-11 160 #ifdef CONFIG_SMP 62cac480f33f8f Dengcheng Zhu 2018-09-11 @161 void kexec_nonboot_cpu_jump(void) 62cac480f33f8f Dengcheng Zhu 2018-09-11 162 { 62cac480f33f8f Dengcheng Zhu 2018-09-11 163 local_flush_icache_range((unsigned long)relocated_kexec_smp_wait, 62cac480f33f8f Dengcheng Zhu 2018-09-11 164 reboot_code_buffer + relocate_new_kernel_size); 62cac480f33f8f Dengcheng Zhu 2018-09-11 165 62cac480f33f8f Dengcheng Zhu 2018-09-11 166 relocated_kexec_smp_wait(NULL); 62cac480f33f8f Dengcheng Zhu 2018-09-11 167 } 62cac480f33f8f Dengcheng Zhu 2018-09-11 168 #endif 62cac480f33f8f Dengcheng Zhu 2018-09-11 169 62cac480f33f8f Dengcheng Zhu 2018-09-11 @170 void kexec_reboot(void) 62cac480f33f8f Dengcheng Zhu 2018-09-11 171 { 62cac480f33f8f Dengcheng Zhu 2018-09-11 172 void (*do_kexec)(void) __noreturn; 62cac480f33f8f Dengcheng Zhu 2018-09-11 173 82689ac663ac2f Dengcheng Zhu 2018-09-26 174 /* 82689ac663ac2f Dengcheng Zhu 2018-09-26 175 * We know we were online, and there will be no incoming IPIs at 82689ac663ac2f Dengcheng Zhu 2018-09-26 176 * this point. Mark online again before rebooting so that the crash 82689ac663ac2f Dengcheng Zhu 2018-09-26 177 * analysis tool will see us correctly. 82689ac663ac2f Dengcheng Zhu 2018-09-26 178 */ 82689ac663ac2f Dengcheng Zhu 2018-09-26 179 set_cpu_online(smp_processor_id(), true); 82689ac663ac2f Dengcheng Zhu 2018-09-26 180 82689ac663ac2f Dengcheng Zhu 2018-09-26 181 /* Ensure remote CPUs observe that we're online before rebooting. */ 82689ac663ac2f Dengcheng Zhu 2018-09-26 182 smp_mb__after_atomic(); 82689ac663ac2f Dengcheng Zhu 2018-09-26 183 :::::: The code at line 161 was first introduced by commit :::::: 62cac480f33f8f9413d609cb1601b0ee521a86b8 MIPS: kexec: Make a framework for both jumping and halting on nonboot CPUs :::::: TO: Dengcheng Zhu :::::: CC: Paul Burton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki