[xilinx-xlnx:master 269/326] include/linux/firmware/xlnx-zynqmp.h:1244:5: warning: no previous prototype for function 'zynqmp_pm_get_meta_header'
kernel test robot
lkp at intel.com
Wed Jan 12 12:46:14 PST 2022
tree: https://github.com/Xilinx/linux-xlnx master
head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 22272cc48b5399af99792722fa7004735b769e0a [269/326] firmware: xilinx: Add support to get the image meta-header info
config: hexagon-randconfig-r041-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130455.ASiUDDqB-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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/22272cc48b5399af99792722fa7004735b769e0a
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout 22272cc48b5399af99792722fa7004735b769e0a
# save the config file to linux build tree
mkdir build_dir
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 as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/fpga/zynqmp-fpga.c:14:
>> include/linux/firmware/xlnx-zynqmp.h:1244:5: warning: no previous prototype for function 'zynqmp_pm_get_meta_header' [-Wmissing-prototypes]
int zynqmp_pm_get_meta_header(const u64 src, const u64 dst,
^
include/linux/firmware/xlnx-zynqmp.h:1244:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int zynqmp_pm_get_meta_header(const u64 src, const u64 dst,
^
static
include/linux/firmware/xlnx-zynqmp.h:1212: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:1217: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,
^
3 warnings generated.
vim +/zynqmp_pm_get_meta_header +1244 include/linux/firmware/xlnx-zynqmp.h
1243
> 1244 int zynqmp_pm_get_meta_header(const u64 src, const u64 dst,
1245 const u32 size, u32 *count)
1246 {
1247 return -ENODEV;
1248 }
1249 #endif
1250
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
More information about the linux-arm-kernel
mailing list