From: kernel test robot <lkp@intel.com>
To: Alexandre Courbot <acourbot@chromium.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>
Subject: [linux-next:master 2224/7715] drivers/remoteproc/mtk_scp.c:755:37: warning: unused variable 'mt8183_of_data'
Date: Tue, 24 Nov 2020 23:04:02 +0800 [thread overview]
Message-ID: <202011242358.oKOU8SIP-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3891 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d9137320ac06f526fe3f9a3fdf07a3b14201068a
commit: b8ba904503311036dfeb758d81ef8d1be37cb8fc [2224/7715] remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF
config: arm-randconfig-r003-20201124 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project df9ae5992889560a8f3c6760b54d5051b47c7bf5)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b8ba904503311036dfeb758d81ef8d1be37cb8fc
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b8ba904503311036dfeb758d81ef8d1be37cb8fc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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/remoteproc/mtk_scp.c:755:37: warning: unused variable 'mt8183_of_data' [-Wunused-const-variable]
static const struct mtk_scp_of_data mt8183_of_data = {
^
>> drivers/remoteproc/mtk_scp.c:765:37: warning: unused variable 'mt8192_of_data' [-Wunused-const-variable]
static const struct mtk_scp_of_data mt8192_of_data = {
^
2 warnings generated.
vim +/mt8183_of_data +755 drivers/remoteproc/mtk_scp.c
63c13d61eafe460 Erin Lo 2019-11-12 754
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 @755 static const struct mtk_scp_of_data mt8183_of_data = {
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 756 .scp_before_load = mt8183_scp_before_load,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 757 .scp_irq_handler = mt8183_scp_irq_handler,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 758 .scp_reset_assert = mt8183_scp_reset_assert,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 759 .scp_reset_deassert = mt8183_scp_reset_deassert,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 760 .scp_stop = mt8183_scp_stop,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 761 .host_to_scp_reg = MT8183_HOST_TO_SCP,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 762 .host_to_scp_int_bit = MT8183_HOST_IPC_INT_BIT,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 763 };
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 764
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 @765 static const struct mtk_scp_of_data mt8192_of_data = {
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 766 .scp_before_load = mt8192_scp_before_load,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 767 .scp_irq_handler = mt8192_scp_irq_handler,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 768 .scp_reset_assert = mt8192_scp_reset_assert,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 769 .scp_reset_deassert = mt8192_scp_reset_deassert,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 770 .scp_stop = mt8192_scp_stop,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 771 .host_to_scp_reg = MT8192_GIPC_IN_SET,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 772 .host_to_scp_int_bit = MT8192_HOST_IPC_INT_BIT,
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 773 };
fd0b6c1ff85a489 Pi-Hsun Shih 2020-09-21 774
:::::: The code at line 755 was first introduced by commit
:::::: fd0b6c1ff85a489bcf1bcf58af64da1aeffd39f0 remoteproc/mediatek: Add support for mt8192 SCP
:::::: TO: Pi-Hsun Shih <pihsun@chromium.org>
:::::: CC: Bjorn Andersson <bjorn.andersson@linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31818 bytes --]
next reply other threads:[~2020-11-24 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 15:04 kernel test robot [this message]
2020-11-25 15:24 ` [linux-next:master 2224/7715] drivers/remoteproc/mtk_scp.c:755:37: warning: unused variable 'mt8183_of_data' Souptick Joarder
2020-11-25 16:49 ` Bjorn Andersson
2020-11-25 18:50 ` Souptick Joarder
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=202011242358.oKOU8SIP-lkp@intel.com \
--to=lkp@intel.com \
--cc=acourbot@chromium.org \
--cc=bjorn.andersson@linaro.org \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).