[dinguyen:socfpga_clk_fix_s2f_user0 1/1] drivers/clk/socfpga/clk-agilex.c:168:37: error: 's2f_usr0_mux' defined but not used

From: kernel test robot
Date: Wed Sep 08 2021 - 21:57:33 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git socfpga_clk_fix_s2f_user0
head: 82ab338dbcb74fb616cee23a0f218eeaefa2b3bc
commit: 82ab338dbcb74fb616cee23a0f218eeaefa2b3bc [1/1] clk: socfpga: agilex: fix duplicate s2f_user0_clk
config: arc-randconfig-r043-20210908 (attached as .config)
compiler: arceb-elf-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://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git/commit/?id=82ab338dbcb74fb616cee23a0f218eeaefa2b3bc
git remote add dinguyen https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
git fetch --no-tags dinguyen socfpga_clk_fix_s2f_user0
git checkout 82ab338dbcb74fb616cee23a0f218eeaefa2b3bc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/clk/socfpga/clk-agilex.c:168:37: error: 's2f_usr0_mux' defined but not used [-Werror=unused-const-variable=]
168 | static const struct clk_parent_data s2f_usr0_mux[] = {
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors


vim +/s2f_usr0_mux +168 drivers/clk/socfpga/clk-agilex.c

80c6b7a0894ffdf Dinh Nguyen 2020-05-12 167
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 @168 static const struct clk_parent_data s2f_usr0_mux[] = {
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 169 { .fw_name = "f2s-free-clk",
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 170 .name = "f2s-free-clk", },
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 171 { .fw_name = "boot_clk",
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 172 .name = "boot_clk", },
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 173 };
80c6b7a0894ffdf Dinh Nguyen 2020-05-12 174

:::::: The code at line 168 was first introduced by commit
:::::: 80c6b7a0894ffdf3c781f047479752015e5d5b27 clk: socfpga: agilex: add clock driver for the Agilex platform

:::::: TO: Dinh Nguyen <dinguyen@xxxxxxxxxx>
:::::: CC: Stephen Boyd <sboyd@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip