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 E85BFC4167B for ; Wed, 6 Dec 2023 03:17:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 82FC56B0075; Tue, 5 Dec 2023 22:17:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E04B6B0078; Tue, 5 Dec 2023 22:17:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A8C56B0083; Tue, 5 Dec 2023 22:17:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 58EF76B0075 for ; Tue, 5 Dec 2023 22:17:27 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2340B403B4 for ; Wed, 6 Dec 2023 03:17:27 +0000 (UTC) X-FDA: 81534932934.28.C64E1E3 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by imf20.hostedemail.com (Postfix) with ESMTP id 888061C001B for ; Wed, 6 Dec 2023 03:17:24 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="W1kUs/F9"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701832645; a=rsa-sha256; cv=none; b=MBS0csik2ASaDx2xUmou9KRy8Bqwm8RPG9O2h7zEyn6+GycHBq4HyXv178XHEO8abOfWxz TeeLLgWiSzaXHfmRkwHR18A6APmWdLaikXf4fnFrsEo+Uidd73eoupsSVDNtRsZmNtA5Mq DrFZIQ8qZJiJPnfK9jgfUIOiet2v3+o= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="W1kUs/F9"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 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=1701832645; 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=n2XkVYDCT83QmDr5ppSyYdenzNoE3xm0coCoqyEASXU=; b=maHZU8a8xvaJ8DD8W+D42lyeTLXJZ/oi5dv/1m/Sy4cHnVvqjmgmdWWHUSJWo53cqdy5yU AQs+H+PpG15gvzObP4YXFwGacEHRMmEBaYiyptEZOyd0m0R8PcMsl4w6Yqs5HivcTaXuzI kiRxzZmrn/bOxVuXgdOVW5PGU1kUmYU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701832644; x=1733368644; h=date:from:to:cc:subject:message-id:mime-version; bh=Yx/wZJfeiDUIig2Sw+QaJFDjLbPdBP7MWYnbnBNaMCw=; b=W1kUs/F9y/9hY88HGYR8yHyEC9JaCGbbaLMU8rZEPVR5vHOGtTflGjDM 7VrBcnmbz+8nRcrHGJEe86Sgo/PWv1O0rdGANnaylc1BljX/J6WJ9Pa6/ 1BXPswu7nXvLnr5iHRYidKJGq3ZssF2hu7qgV/jUsPNJfc9HHbDv2zgDJ rIWMEdmSi6tquz1cBz9JUN7RgtnNhER+ZHKbxovOVu67OiX2uhrEtbTbu OVYE1fNMNE6imlgDwjwk1LF3+9ALjgy17O/n3XW+qwg1QAhPydGYNZwuv xp99O00RpeoFRqkGw8ZOkilj3hp7lato6HFpXwiYyUP/ufcRiRe1cZBVh w==; X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="374181586" X-IronPort-AV: E=Sophos;i="6.04,254,1695711600"; d="scan'208";a="374181586" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 19:17:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="1018428688" X-IronPort-AV: E=Sophos;i="6.04,254,1695711600"; d="scan'208";a="1018428688" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 05 Dec 2023 19:17:21 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rAiPX-000A9G-04; Wed, 06 Dec 2023 03:17:19 +0000 Date: Wed, 6 Dec 2023 11:17:10 +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 4353/4884] arch/mips/kernel/machine_kexec.c:76:17: error: 'kexec_args' undeclared Message-ID: <202312061137.QgjJ4nTc-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 888061C001B X-Stat-Signature: bxz5jhinuz19r1kkoxpw4r1ofawrit18 X-HE-Tag: 1701832644-384345 X-HE-Meta: U2FsdGVkX1+xjYBJUg/UGEGFqlQ3OQ0UBava/ebeEMWbLNSGpr4i+bnf2fVtQzPeiJOWvB+V9CWreq2DM4Npxz9AWmlwuloTAtXEa/244FrkVWwl2DDdZ2i2NsqS9olxTKl1dXlvy+9LEl/qEmri2wWzNeVgu2WwwSXqP/igxFGTEWTn6jts5CDgH3gswm1yZ4pjv5UbtvtnZ0sQnMztme6joGnYUtywv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fHDVmA7q5f6ELvBsv9PZrnx+w1C3YLw+qt1BPJ/z2YSwl+De2IBJpgpohjurXpZhwj0xBNmlytGOMUnc+WsepNCvzrpiAuixF3aRRhm1WWafHqxEjfJnlSNWRWm/UTdrFUG2QDhatLl2itZZmzSPtPQSqdnHnbjG8ieqNJYiflYb 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: 4fa0ee5b7e2ddb44036b40795ca4a79d94edc7d4 [4353/4884] kexec_core: change dependency of object files config: mips-randconfig-r032-20220731 (https://download.01.org/0day-ci/archive/20231206/202312061137.QgjJ4nTc-lkp@intel.com/config) compiler: mipsel-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312061137.QgjJ4nTc-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/202312061137.QgjJ4nTc-lkp@intel.com/ All errors (new ones prefixed by >>): arch/mips/kernel/machine_kexec.c: In function 'uhi_machine_kexec_prepare': >> arch/mips/kernel/machine_kexec.c:76:17: error: 'kexec_args' undeclared (first use in this function) 76 | kexec_args[0] = -2; | ^~~~~~~~~~ arch/mips/kernel/machine_kexec.c:76:17: note: each undeclared identifier is reported only once for each function it appears in 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); | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/kexec_args +76 arch/mips/kernel/machine_kexec.c 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 54 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 55 static int uhi_machine_kexec_prepare(struct kimage *kimage) 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 56 { 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 57 int i; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 58 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 59 /* 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 60 * In case DTB file is not passed to the new kernel, a flat device 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 61 * tree will be created by kexec tool. It holds modified command 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 62 * line for the new kernel. 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 63 */ 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 64 for (i = 0; i < kimage->nr_segments; i++) { 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 65 struct fdt_header fdt; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 66 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 67 if (kimage->segment[i].memsz <= sizeof(fdt)) 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 68 continue; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 69 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 70 if (copy_from_user(&fdt, kimage->segment[i].buf, sizeof(fdt))) 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 71 continue; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 72 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 73 if (fdt_check_header(&fdt)) 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 74 continue; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 75 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 @76 kexec_args[0] = -2; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 77 kexec_args[1] = (unsigned long) 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 78 phys_to_virt((unsigned long)kimage->segment[i].mem); 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 79 break; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 80 } 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 81 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 82 return 0; 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 83 } 2fe8ea39c9a848 Dengcheng Zhu 2018-09-11 84 :::::: The code at line 76 was first introduced by commit :::::: 2fe8ea39c9a8489799cf86bb377fc80492b5b3bf MIPS: kexec: Use prepare method from Generic for UHI platforms :::::: TO: Dengcheng Zhu :::::: CC: Paul Burton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki