From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202201080253.dXUrog2N-lkp@intel.com> (raw)
[-- 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
reply other threads:[~2022-01-07 18:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201080253.dXUrog2N-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.