From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 382D6C5E7 for ; Tue, 14 Feb 2023 19:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676401704; x=1707937704; h=date:from:to:cc:subject:message-id:mime-version; bh=pn7zBfpRgW196RCAJ8sDfjA2hYaGnecRNT7uhW1LVxM=; b=UmsY4CNi24qXYJSsF4aYfN394fPYYtLFf7qokg4H92YWCPi1A27JTCRt Mi2BfDereGdXnuoENb8ClIyBgzGafwVyPBebmc1cN2jKNCE9t8YUQzznk NH6feH4mRT8k8Fl8ZjVPrj3nICMuL4pQE7bOHbCRqV6+Al/jvn+Gtyrts vfTLjCTYUHeXMqRUE9lxE6aWp/qi87tj0lK4ik5J9KL/73DcxjSTTKRZm AblBimHFp7MKZ+IWOehX96OlveVfC+Rl0euuNDcIDmOPjT2dGf5MZV/rq OrARmJhJdUUYQ9LzxXEG/zg2uEPRbhVfFDnGajk2HVM6pktNrvxRVOvq2 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="310875101" X-IronPort-AV: E=Sophos;i="5.97,297,1669104000"; d="scan'208";a="310875101" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2023 11:08:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="671312343" X-IronPort-AV: E=Sophos;i="5.97,297,1669104000"; d="scan'208";a="671312343" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 14 Feb 2023 11:08:20 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pS0f5-0008jN-1h; Tue, 14 Feb 2023 19:08:19 +0000 Date: Wed, 15 Feb 2023 03:07:42 +0800 From: kernel test robot To: ckkim Cc: oe-kbuild-all@lists.linux.dev, Dongjin Kim Subject: [tobetter:odroid-6.2.y 20/62] drivers/power/reset/odroid-reboot.c:141:17: error: 'arm_pm_restart' undeclared; did you mean 'alarm_restart'? Message-ID: <202302150319.AwamL63T-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/tobetter/linux odroid-6.2.y head: 1c9346ce4f05ef37d5b56667a56ebbba10bd3e7f commit: 74b123aae221e8348054e7fd47b92460981b57d3 [20/62] ODROID-COMMON: power:reset: Add odroid support config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230215/202302150319.AwamL63T-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/tobetter/linux/commit/74b123aae221e8348054e7fd47b92460981b57d3 git remote add tobetter https://github.com/tobetter/linux git fetch --no-tags tobetter odroid-6.2.y git checkout 74b123aae221e8348054e7fd47b92460981b57d3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302150319.AwamL63T-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset' [-Wmissing-prototypes] 63 | void odroid_card_reset(void) | ^~~~~~~~~~~~~~~~~ drivers/power/reset/odroid-reboot.c: In function 'odroid_restart_probe': >> drivers/power/reset/odroid-reboot.c:141:17: error: 'arm_pm_restart' undeclared (first use in this function); did you mean 'alarm_restart'? 141 | arm_pm_restart = do_odroid_restart; | ^~~~~~~~~~~~~~ | alarm_restart drivers/power/reset/odroid-reboot.c:141:17: note: each undeclared identifier is reported only once for each function it appears in vim +141 drivers/power/reset/odroid-reboot.c 133 134 static int odroid_restart_probe(struct platform_device *pdev) 135 { 136 struct device_node *of_node; 137 u32 id; 138 139 if (!of_property_read_u32(pdev->dev.of_node, "sys_reset", &id)) { 140 psci_function_id_restart = id; > 141 arm_pm_restart = do_odroid_restart; 142 } 143 144 if (!of_property_read_u32(pdev->dev.of_node, "sys_poweroff", &id)) { 145 psci_function_id_poweroff = id; 146 pm_power_off = do_odroid_poweroff; 147 } 148 149 of_node = pdev->dev.of_node; 150 151 sd_vqsw = of_get_named_gpio(of_node, "sd-vqsw", 0); 152 if (!gpio_is_valid(sd_vqsw)) sd_vqsw = 0; 153 154 sd_vmmc = of_get_named_gpio(of_node, "sd-vmmc", 0); 155 if (!gpio_is_valid(sd_vmmc)) sd_vmmc = 0; 156 157 sd_vqen = of_get_named_gpio(of_node, "sd-vqen", 0); 158 if (!gpio_is_valid(sd_vqen)) sd_vqen = 0; 159 160 return 0; 161 } 162 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests