* [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'
@ 2022-01-07 18:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-07 18:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3135 bytes --]
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 firmware: imx: register i.MX8ULP SoC device
config: arm-randconfig-r006-20220106 (https://download.01.org/0day-ci/archive/20220108/202201080253.dXUrog2N-lkp(a)intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/Freescale/linux-fslc/commit/3bc399ee42d1bb2c1d442bb524711eda588f13ca
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/firmware/imx/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/firmware/imx/s400-api.c:161:16: warning: no previous prototype for '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 || COMPILE_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 = 0x17970206;
169 s400_api_export->tx_msg.data[0] = 0x1;
170 err = imx_s400_api_call(s400_api_export, v);
171 if (err)
172 return NULL;
173
174 attr = kzalloc(sizeof(*attr), GFP_KERNEL);
175 if (!attr)
176 return NULL;
177
178 attr->family = kasprintf(GFP_KERNEL, "Freescale i.MX");
179 attr->revision = kasprintf(GFP_KERNEL, "unknown");
180 attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", (u64)v[3] << 32 | v[0]);
181 attr->soc_id = kasprintf(GFP_KERNEL, "i.MX8ULP");
182
183 dev = 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-07 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 18:06 [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' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.