[clk:clk-qcom 17/38] drivers/clk/qcom/gcc-sc7280.c:200:37: warning: unused variable 'gcc_parent_data_0_ao'

kernel test robot lkp at intel.com
Thu Oct 14 09:38:47 PDT 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-qcom
head:   1daec8cfebc28bbe596743c34bebd11b80fba990
commit: 3165d1e3c737fd9432e9e68b44a64c47f886f647 [17/38] clk: qcom: gcc: Remove CPUSS clocks control for SC7280
config: arm64-randconfig-r016-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/commit/?id=3165d1e3c737fd9432e9e68b44a64c47f886f647
        git remote add clk https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git
        git fetch --no-tags clk clk-qcom
        git checkout 3165d1e3c737fd9432e9e68b44a64c47f886f647
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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

All warnings (new ones prefixed by >>):

>> drivers/clk/qcom/gcc-sc7280.c:200:37: warning: unused variable 'gcc_parent_data_0_ao' [-Wunused-const-variable]
   static const struct clk_parent_data gcc_parent_data_0_ao[] = {
                                       ^
   1 warning generated.


vim +/gcc_parent_data_0_ao +200 drivers/clk/qcom/gcc-sc7280.c

a3cc092196ef63 Taniya Das 2021-02-10  199  
a3cc092196ef63 Taniya Das 2021-02-10 @200  static const struct clk_parent_data gcc_parent_data_0_ao[] = {
a3cc092196ef63 Taniya Das 2021-02-10  201  	{ .fw_name = "bi_tcxo_ao" },
a3cc092196ef63 Taniya Das 2021-02-10  202  	{ .hw = &gcc_gpll0.clkr.hw },
a3cc092196ef63 Taniya Das 2021-02-10  203  	{ .hw = &gcc_gpll0_out_even.clkr.hw },
a3cc092196ef63 Taniya Das 2021-02-10  204  };
a3cc092196ef63 Taniya Das 2021-02-10  205  

:::::: The code at line 200 was first introduced by commit
:::::: a3cc092196ef63570c8744c3ac88c3c6c67ab44b clk: qcom: Add Global Clock controller (GCC) driver for SC7280

:::::: TO: Taniya Das <tdas at codeaurora.org>
:::::: CC: Stephen Boyd <sboyd at kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 41089 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211015/801bc005/attachment-0001.gz>


More information about the linux-arm-kernel mailing list