Messages in this thread | | | Date | Thu, 28 Jan 2021 11:02:51 +0800 | From | kernel test robot <> | Subject | drivers/clk/imx/clk-imx31.c:54:28: warning: unused variable 'uart_clks' |
| |
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 [unhandled content-type:application/gzip] | |