lkml.org 
[lkml]   [2021]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[dinguyen:socfpga_clk_fix_s2f_user0 1/1] drivers/clk/socfpga/clk-agilex.c:168:37: error: 's2f_usr0_mux' defined but not used
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git socfpga_clk_fix_s2f_user0
head: d9c5d65ecc277f24be715c87328a329e77e25ed4
commit: d9c5d65ecc277f24be715c87328a329e77e25ed4 [1/1] clk: socfpga: agilex: fix duplicate s2f_user0_clk
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-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=d9c5d65ecc277f24be715c87328a329e77e25ed4
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 d9c5d65ecc277f24be715c87328a329e77e25ed4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2

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

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

80c6b7a0894ffd Dinh Nguyen 2020-05-12 167
80c6b7a0894ffd Dinh Nguyen 2020-05-12 @168 static const struct clk_parent_data s2f_usr0_mux[] = {
80c6b7a0894ffd Dinh Nguyen 2020-05-12 169 { .fw_name = "f2s-free-clk",
80c6b7a0894ffd Dinh Nguyen 2020-05-12 170 .name = "f2s-free-clk", },
80c6b7a0894ffd Dinh Nguyen 2020-05-12 171 { .fw_name = "boot_clk",
80c6b7a0894ffd Dinh Nguyen 2020-05-12 172 .name = "boot_clk", },
80c6b7a0894ffd Dinh Nguyen 2020-05-12 173 };
80c6b7a0894ffd 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@kernel.org>
:::::: CC: Stephen Boyd <sboyd@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-09-14 07:14    [W:0.071 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site