[xilinx-xlnx:master 214/218] include/linux/firmware/xlnx-zynqmp.h:1186:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used

kernel test robot lkp at intel.com
Fri Jan 20 00:25:23 PST 2023


tree:   https://github.com/Xilinx/linux-xlnx master
head:   155ae9648df275d38841cfe45231ba0471baa1cb
commit: 6cb480b208248d57a9906d801469d7ea8292df52 [214/218] firmware: xilinx: Add support for secure read/write ioctl interface
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20230120/202301201652.jclVx9bv-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/Xilinx/linux-xlnx/commit/6cb480b208248d57a9906d801469d7ea8292df52
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout 6cb480b208248d57a9906d801469d7ea8292df52
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/spi/

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/spi/spi-zynqmp-gqspi.c:13:
>> include/linux/firmware/xlnx-zynqmp.h:1186:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used [-Wunused-function]
    1186 | static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/firmware/xlnx-zynqmp.h:1181:12: warning: 'zynqmp_pm_sec_read_reg' defined but not used [-Wunused-function]
    1181 | static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
         |            ^~~~~~~~~~~~~~~~~~~~~~


vim +/zynqmp_pm_sec_mask_write_reg +1186 include/linux/firmware/xlnx-zynqmp.h

  1180	
> 1181	static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
  1182	{
  1183		return -ENODEV;
  1184	}
  1185	
> 1186	static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
  1187						u32 mask, u32 value)
  1188	{
  1189		return -ENODEV;
  1190	}
  1191	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



More information about the linux-arm-kernel mailing list