[xilinx-xlnx:master 114/773] include/linux/firmware/xlnx-zynqmp.h:1224:12: warning: 'zynqmp_pm_fpga_get_feature_list' defined but not used
kernel test robot
lkp at intel.com
Thu Jan 19 23:54:25 PST 2023
tree: https://github.com/Xilinx/linux-xlnx master
head: 155ae9648df275d38841cfe45231ba0471baa1cb
commit: d3cc9a85c901474dc436d62c01e1b0f8f3bdfec6 [114/773] iio: versal-sysmon: add driver for Versal Sysmon
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230120/202301201527.JgM9f4se-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/d3cc9a85c901474dc436d62c01e1b0f8f3bdfec6
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout d3cc9a85c901474dc436d62c01e1b0f8f3bdfec6
# 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/iio/adc/
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/iio/adc/versal-sysmon.c:15:
>> include/linux/firmware/xlnx-zynqmp.h:1224:12: warning: 'zynqmp_pm_fpga_get_feature_list' defined but not used [-Wunused-function]
1224 | static int zynqmp_pm_fpga_get_feature_list(u32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/firmware/xlnx-zynqmp.h:1219:12: warning: 'zynqmp_pm_fpga_get_version' defined but not used [-Wunused-function]
1219 | static int zynqmp_pm_fpga_get_version(u32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/zynqmp_pm_fpga_get_feature_list +1224 include/linux/firmware/xlnx-zynqmp.h
e9e49172adb714 Nava kishore Manne 2022-01-27 1218
e9e49172adb714 Nava kishore Manne 2022-01-27 @1219 static int zynqmp_pm_fpga_get_version(u32 *value)
e9e49172adb714 Nava kishore Manne 2022-01-27 1220 {
e9e49172adb714 Nava kishore Manne 2022-01-27 1221 return -ENODEV;
e9e49172adb714 Nava kishore Manne 2022-01-27 1222 }
e9e49172adb714 Nava kishore Manne 2022-01-27 1223
e9e49172adb714 Nava kishore Manne 2022-01-27 @1224 static int zynqmp_pm_fpga_get_feature_list(u32 *value)
e9e49172adb714 Nava kishore Manne 2022-01-27 1225 {
e9e49172adb714 Nava kishore Manne 2022-01-27 1226 return -ENODEV;
e9e49172adb714 Nava kishore Manne 2022-01-27 1227 }
76582671eb5d00 Rajan Vaja 2018-09-12 1228 #endif
76582671eb5d00 Rajan Vaja 2018-09-12 1229
:::::: The code at line 1224 was first introduced by commit
:::::: e9e49172adb71403be142bd6019caedb31059e62 firmware: xilinx: Implemented pm API functions to get the xilfpga component info
:::::: TO: Nava kishore Manne <nava.manne at xilinx.com>
:::::: CC: Michal Simek <michal.simek at amd.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
More information about the linux-arm-kernel
mailing list