[xilinx-xlnx:xlnx_rebase_v5.15_LTS 443/1181] drivers/crypto/xilinx/zynqmp-rsa.c:157:34: warning: unused variable 'zynqmp_rsa_dt_ids'

kernel test robot lkp at intel.com
Fri Jun 17 02:50:54 PDT 2022


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   59523b5c4aca0174f1f8cba2a07d3b3328b7c80e
commit: 79538c8ad4c8d1aef902abd2e948f8bea21475b0 [443/1181] crypto: zynqmp-rsa: Adopted RSA support for ZynqMP SoC
config: hexagon-randconfig-r022-20220617 (https://download.01.org/0day-ci/archive/20220617/202206171706.Fh4kXeBj-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d764aa7fc6b9cc3fbe960019018f5f9e941eb0a6)
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://github.com/Xilinx/linux-xlnx/commit/79538c8ad4c8d1aef902abd2e948f8bea21475b0
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 79538c8ad4c8d1aef902abd2e948f8bea21475b0
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

   In file included from drivers/crypto/xilinx/zynqmp-rsa.c:20:
   include/linux/firmware/xlnx-zynqmp.h:1168:12: warning: unused function 'zynqmp_pm_sec_read_reg' [-Wunused-function]
   static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
              ^
   include/linux/firmware/xlnx-zynqmp.h:1173:12: warning: unused function 'zynqmp_pm_sec_mask_write_reg' [-Wunused-function]
   static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
              ^
   include/linux/firmware/xlnx-zynqmp.h:1222:12: warning: unused function 'zynqmp_pm_fpga_get_version' [-Wunused-function]
   static int zynqmp_pm_fpga_get_version(u32 *value)
              ^
   include/linux/firmware/xlnx-zynqmp.h:1227:12: warning: unused function 'zynqmp_pm_fpga_get_feature_list' [-Wunused-function]
   static int zynqmp_pm_fpga_get_feature_list(u32 *value)
              ^
>> drivers/crypto/xilinx/zynqmp-rsa.c:157:34: warning: unused variable 'zynqmp_rsa_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id zynqmp_rsa_dt_ids[] = {
                                    ^
   5 warnings generated.


vim +/zynqmp_rsa_dt_ids +157 drivers/crypto/xilinx/zynqmp-rsa.c

   156	
 > 157	static const struct of_device_id zynqmp_rsa_dt_ids[] = {
   158		{ .compatible = "xlnx,zynqmp-rsa" },
   159		{ /* sentinel */ }
   160	};
   161	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-arm-kernel mailing list