[xilinx-xlnx:xlnx_rebase_v5.15 441/907] drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou'
kernel test robot
lkp at intel.com
Wed Feb 9 23:29:27 PST 2022
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 423a108a01e05e84b59a4c4885c16bf3cd8c90c7
commit: e2696a07cb200c0ca6be673ba2bc9f3e01384dc6 [441/907] crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202101547.aXR0aUzu-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
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/e2696a07cb200c0ca6be673ba2bc9f3e01384dc6
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout e2696a07cb200c0ca6be673ba2bc9f3e01384dc6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
Note: the xilinx-xlnx/xlnx_rebase_v5.15 HEAD 423a108a01e05e84b59a4c4885c16bf3cd8c90c7 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
drivers/crypto/xilinx/zynqmp-sha.c: In function 'zynqmp_sha_update':
>> drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou' [-Werror=implicit-function-declaration]
120 | caches_clean_inval_user_pou((unsigned long)kbuf,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/crypto/xilinx/zynqmp-sha.c:23:
At top level:
include/linux/firmware/xlnx-zynqmp.h:1227:12: warning: 'zynqmp_pm_fpga_get_feature_list' defined but not used [-Wunused-function]
1227 | static int zynqmp_pm_fpga_get_feature_list(u32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/firmware/xlnx-zynqmp.h:1222:12: warning: 'zynqmp_pm_fpga_get_version' defined but not used [-Wunused-function]
1222 | static int zynqmp_pm_fpga_get_version(u32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/firmware/xlnx-zynqmp.h:1173:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used [-Wunused-function]
1173 | static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/firmware/xlnx-zynqmp.h:1168:12: warning: 'zynqmp_pm_sec_read_reg' defined but not used [-Wunused-function]
1168 | static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/caches_clean_inval_user_pou +120 drivers/crypto/xilinx/zynqmp-sha.c
102
103 static int zynqmp_sha_update(struct ahash_request *req)
104 {
105 struct zynqmp_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
106 struct zynqmp_sha_dev *dd = tctx->dd;
107 char *kbuf;
108 size_t dma_size = req->nbytes;
109 dma_addr_t dma_addr;
110 int ret;
111
112 if (!req->nbytes)
113 return 0;
114
115 kbuf = dma_alloc_coherent(dd->dev, dma_size, &dma_addr, GFP_KERNEL);
116 if (!kbuf)
117 return -ENOMEM;
118
119 scatterwalk_map_and_copy(kbuf, req->src, 0, req->nbytes, 0);
> 120 caches_clean_inval_user_pou((unsigned long)kbuf,
121 (unsigned long)kbuf + dma_size);
122 ret = zynqmp_pm_sha_hash(dma_addr, req->nbytes, ZYNQMP_SHA3_UPDATE);
123 if (ret) {
124 mutex_unlock(&zynqmp_sha.hw_engine_mutex);
125 goto end;
126 }
127
128 dma_free_coherent(dd->dev, dma_size, kbuf, dma_addr);
129
130 end:
131 return ret;
132 }
133
---
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