[xlnx:master 11382/12422] drivers/crypto/xilinx/zynqmp-sha.c:116:10: error: implicit declaration of function '__flush_cache_user_range'; did you mean 'flush_icache_user_range'?
From: kernel test robot <hidden>
Date: 2021-08-30 12:03:34
Also in:
oe-kbuild-all
tree: https://github.com/Xilinx/linux-xlnx master head: 67d5e656238eddd8486cdf9a0632985aeeee7b51 commit: d6318539cfd551f6f99779da71e158353dcc00bf [11382/12422] crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc config: sh-allmodconfig (attached as .config) compiler: sh4-linux-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/d6318539cfd551f6f99779da71e158353dcc00bf git remote add xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xlnx master git checkout d6318539cfd551f6f99779da71e158353dcc00bf # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> Note: the xlnx/master HEAD 67d5e656238eddd8486cdf9a0632985aeeee7b51 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): drivers/crypto/xilinx/zynqmp-sha.c: In function 'zynqmp_sha_update':
quoted
drivers/crypto/xilinx/zynqmp-sha.c:116:10: error: implicit declaration of function '__flush_cache_user_range'; did you mean 'flush_icache_user_range'? [-Werror=implicit-function-declaration]
116 | __flush_cache_user_range((unsigned long)kbuf,
| ^~~~~~~~~~~~~~~~~~~~~~~~
| flush_icache_user_range
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_QDSP6
Depends on SOUND && !UML && SND && SND_SOC && SND_SOC_QCOM && QCOM_APR && COMMON_CLK
Selected by
- SND_SOC_MSM8996 && SOUND && !UML && SND && SND_SOC && SND_SOC_QCOM && QCOM_APR
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +116 drivers/crypto/xilinx/zynqmp-sha.c
98
99 static int zynqmp_sha_update(struct ahash_request *req)
100 {
101 struct zynqmp_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
102 struct zynqmp_sha_dev *dd = tctx->dd;
103 char *kbuf;
104 size_t dma_size = req->nbytes;
105 dma_addr_t dma_addr;
106 int ret;
107
108 if (!req->nbytes)
109 return 0;
110
111 kbuf = dma_alloc_coherent(dd->dev, dma_size, &dma_addr, GFP_KERNEL);
112 if (!kbuf)
113 return -ENOMEM;
114
115 scatterwalk_map_and_copy(kbuf, req->src, 0, req->nbytes, 0);
> 116 __flush_cache_user_range((unsigned long)kbuf,
117 (unsigned long)kbuf + dma_size);
118 ret = zynqmp_pm_sha_hash(dma_addr, req->nbytes, ZYNQMP_SHA3_UPDATE);
119 dma_free_coherent(dd->dev, dma_size, kbuf, dma_addr);
120
121 return ret;
122 }
123
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 53644 bytes
- (unnamed) [text/plain] 176 bytes · preview