From: kernel test robot <lkp@intel.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org, Shawn Guo <shawnguo@kernel.org>
Subject: drivers/clk/imx/clk-imx31.c:54:28: warning: unused variable 'uart_clks'
Date: Thu, 28 Jan 2021 11:02:51 +0800 [thread overview]
Message-ID: <202101281142.1Q3Qw57z-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2984 bytes --]
Hi Fabio,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 76c057c84d286140c6c416c3b4ba832cd1d8984e
commit: 30c1951790df5e7ad6b4dbc1c46a6361dce6f946 clk: imx: imx31: Remove mx31_clocks_init()
date: 4 months ago
config: arm-randconfig-r011-20210128 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 48bdd676a1d1338c10541460bf5beb69ac17e451)
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/torvalds/linux.git/commit/?id=30c1951790df5e7ad6b4dbc1c46a6361dce6f946
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 30c1951790df5e7ad6b4dbc1c46a6361dce6f946
# 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/clk/imx/clk-imx31.c:54:28: warning: unused variable 'uart_clks' [-Wunused-const-variable]
static struct clk ** const uart_clks[] __initconst = {
^
1 warning generated.
vim +/uart_clks +54 drivers/clk/imx/clk-imx31.c
95878cbed89504 arch/arm/mach-imx/clk-imx31.c Sascha Hauer 2012-03-18 53
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 @54 static struct clk ** const uart_clks[] __initconst = {
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 55 &clk[ipg],
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 56 &clk[uart1_gate],
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 57 &clk[uart2_gate],
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 58 &clk[uart3_gate],
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 59 &clk[uart4_gate],
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 60 &clk[uart5_gate],
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 61 NULL
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 62 };
5c678cdd02f253 drivers/clk/imx/clk-imx31.c Lucas Stach 2015-09-21 63
:::::: The code at line 54 was first introduced by commit
:::::: 5c678cdd02f25398b4908638d672b134cff9d59c clk: imx31: retain early UART clocks during kernel init
:::::: TO: Lucas Stach <l.stach@pengutronix.de>
:::::: CC: Shawn Guo <shawnguo@kernel.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: 28588 bytes --]
reply other threads:[~2021-01-28 3:04 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=202101281142.1Q3Qw57z-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=festevam@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawnguo@kernel.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
all inboxes | Powered by JetHome®