lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 28 Jan 2021 11:02:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Fabio Estevam <festevam@...il.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Shawn Guo <shawnguo@...nel.org>
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@...el.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@...gutronix.de>
:::::: CC: Shawn Guo <shawnguo@...nel.org>

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

Download attachment ".config.gz" of type "application/gzip" (28588 bytes)

Powered by blists - more mailing lists