tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ce2cc8efd7a40cbd17841add878cb691d0ce0bba
commit: 159acfa8df28d1a65e19e3cd93c210c9471eeab0 [1840/2242] iov_iter: Move unnecessary
inclusion of crypto/hash.h
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
git checkout 159acfa8df28d1a65e19e3cd93c210c9471eeab0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD ce2cc8efd7a40cbd17841add878cb691d0ce0bba builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
drivers/remoteproc/qcom_q6v5_mss.c: In function 'q6v5_mpss_init_image':
> drivers/remoteproc/qcom_q6v5_mss.c:772:3: error: implicit
declaration of function 'kfree'; did you mean 'vfree'?
[-Werror=implicit-function-declaration]
772 | kfree(metadata);
| ^~~~~
| vfree
cc1: some warnings being treated as errors
vim +772 drivers/remoteproc/qcom_q6v5_mss.c
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 754
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 755
static int q6v5_mpss_init_image(struct q6v5 *qproc, const struct firmware *fw)
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 756
{
00085f1efa387a drivers/remoteproc/qcom_q6v5_pil.c Krzysztof Kozlowski 2016-08-03 757
unsigned long dma_attrs = DMA_ATTR_FORCE_CONTIGUOUS;
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 758
dma_addr_t phys;
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 759
void *metadata;
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 760
int mdata_perm;
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 761
int xferop_ret;
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 762
size_t size;
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 763
void *ptr;
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 764
int ret;
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 765
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 766
metadata = qcom_mdt_read_metadata(fw, &size);
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 767
if (IS_ERR(metadata))
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 768
return PTR_ERR(metadata);
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 769
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 770
ptr = dma_alloc_attrs(qproc->dev, size, &phys, GFP_KERNEL, dma_attrs);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 771
if (!ptr) {
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 @772
kfree(metadata);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 773
dev_err(qproc->dev, "failed to allocate mdt buffer\n");
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 774
return -ENOMEM;
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 775
}
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 776
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 777
memcpy(ptr, metadata, size);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 778
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 779
/* Hypervisor mapping to access metadata by modem */
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 780
mdata_perm = BIT(QCOM_SCM_VMID_HLOS);
715d85251957ad drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2020-03-05 781
ret = q6v5_xfer_mem_ownership(qproc, &mdata_perm, false, true,
715d85251957ad drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2020-03-05 782
phys, size);
9f2a4342a8bf24 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2017-11-06 783
if (ret) {
9f2a4342a8bf24 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2017-11-06 784
dev_err(qproc->dev,
9f2a4342a8bf24 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2017-11-06 785
"assigning Q6 access to metadata failed: %d\n", ret);
1a5d5c592e9021 drivers/remoteproc/qcom_q6v5_pil.c Christophe JAILLET 2017-11-15 786
ret = -EAGAIN;
1a5d5c592e9021 drivers/remoteproc/qcom_q6v5_pil.c Christophe JAILLET 2017-11-15 787
goto free_dma_attrs;
9f2a4342a8bf24 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2017-11-06 788
}
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 789
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 790
writel(phys, qproc->rmb_base + RMB_PMI_META_DATA_REG);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 791
writel(RMB_CMD_META_DATA_READY, qproc->rmb_base + RMB_MBA_COMMAND_REG);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 792
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 793
ret = q6v5_rmb_mba_wait(qproc, RMB_MBA_META_DATA_AUTH_SUCCESS, 1000);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 794
if (ret == -ETIMEDOUT)
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 795
dev_err(qproc->dev, "MPSS header authentication timed out\n");
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 796
else if (ret < 0)
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 797
dev_err(qproc->dev, "MPSS header authentication failed: %d\n", ret);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 798
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 799
/* Metadata authentication done, remove modem access */
715d85251957ad drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2020-03-05 800
xferop_ret = q6v5_xfer_mem_ownership(qproc, &mdata_perm, true, false,
715d85251957ad drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2020-03-05 801
phys, size);
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 802
if (xferop_ret)
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 803
dev_warn(qproc->dev,
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 804
"mdt buffer not reclaimed system may become unstable\n");
6c5a9dc2481b48 drivers/remoteproc/qcom_q6v5_pil.c Avaneesh Kumar Dwivedi 2017-10-24 805
1a5d5c592e9021 drivers/remoteproc/qcom_q6v5_pil.c Christophe JAILLET 2017-11-15 806
free_dma_attrs:
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 807
dma_free_attrs(qproc->dev, size, ptr, phys, dma_attrs);
f04b913834569e drivers/remoteproc/qcom_q6v5_mss.c Bjorn Andersson 2019-06-21 808
kfree(metadata);
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 809
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 810
return ret < 0 ? ret : 0;
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 811
}
051fb70fd4ea40 drivers/remoteproc/qcom_q6v5_pil.c Bjorn Andersson 2016-06-20 812
:::::: The code at line 772 was first introduced by commit
:::::: f04b913834569efbbee442f2a3fb6199ce94dbbc remoteproc: qcom: q6v5-mss: Support
loading non-split images
:::::: TO: Bjorn Andersson <bjorn.andersson(a)linaro.org>
:::::: CC: Bjorn Andersson <bjorn.andersson(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org