From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7564489415707770567==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [freescale-fslc:5.10-2.1.x-imx 4752/9999] drivers/firmware/imx/s400-api.c:161:16: warning: no previous prototype for 'imx_soc_device_register' Date: Sat, 08 Jan 2022 02:06:26 +0800 Message-ID: <202201080253.dXUrog2N-lkp@intel.com> List-Id: --===============7564489415707770567== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Alice, FYI, the error/warning still remains. tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx head: e730e691a1edb8c38004d81b070529224e8df714 commit: 3bc399ee42d1bb2c1d442bb524711eda588f13ca [4752/9999] MLK-25423-2 fi= rmware: imx: register i.MX8ULP SoC device config: arm-randconfig-r006-20220106 (https://download.01.org/0day-ci/archi= ve/20220108/202201080253.dXUrog2N-lkp(a)intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/Freescale/linux-fslc/commit/3bc399ee42d1bb2c1d= 442bb524711eda588f13ca git remote add freescale-fslc https://github.com/Freescale/linux-fs= lc git fetch --no-tags freescale-fslc 5.10-2.1.x-imx git checkout 3bc399ee42d1bb2c1d442bb524711eda588f13ca # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash drivers/firmware/imx/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/firmware/imx/s400-api.c:161:16: warning: no previous prototype f= or 'imx_soc_device_register' [-Wmissing-prototypes] 161 | struct device *imx_soc_device_register(void) | ^~~~~~~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for QCOM_SCM Depends on (ARM || ARM64) && HAVE_ARM_SMCCC Selected by - ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || CO= MPILE_TEST && !ARM64 && MMU vim +/imx_soc_device_register +161 drivers/firmware/imx/s400-api.c 160 = > 161 struct device *imx_soc_device_register(void) 162 { 163 struct soc_device_attribute *attr; 164 struct soc_device *dev; 165 u32 v[4]; 166 int err; 167 = 168 s400_api_export->tx_msg.header =3D 0x17970206; 169 s400_api_export->tx_msg.data[0] =3D 0x1; 170 err =3D imx_s400_api_call(s400_api_export, v); 171 if (err) 172 return NULL; 173 = 174 attr =3D kzalloc(sizeof(*attr), GFP_KERNEL); 175 if (!attr) 176 return NULL; 177 = 178 attr->family =3D kasprintf(GFP_KERNEL, "Freescale i.MX"); 179 attr->revision =3D kasprintf(GFP_KERNEL, "unknown"); 180 attr->serial_number =3D kasprintf(GFP_KERNEL, "%016llX", (u64)v[3] = << 32 | v[0]); 181 attr->soc_id =3D kasprintf(GFP_KERNEL, "i.MX8ULP"); 182 = 183 dev =3D soc_device_register(attr); 184 if (IS_ERR(dev)) { 185 kfree(attr->soc_id); 186 kfree(attr->serial_number); 187 kfree(attr->revision); 188 kfree(attr->family); 189 kfree(attr); 190 return ERR_CAST(dev); 191 } 192 = 193 return soc_device_to_device(dev); 194 } 195 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7564489415707770567==--