[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210171743.JETMU7N4-lkp@intel.com>
Date: Mon, 17 Oct 2022 17:15:52 +0800
From: kernel test robot <lkp@...el.com>
To: Niklas Schnelle <schnelle@...ux.ibm.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [niks:dma_iommu_v1_wip 16/17] drivers/iommu/dma-iommu.c:199:5:
warning: no previous prototype for 'iommu_dma_init_simple'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git dma_iommu_v1_wip
head: 9a5696f7858cc6cc7b31414ef978ec47ced67cc5
commit: 4a4a23f90612b2038b9d24fc975438defe255cb1 [16/17] iommu/dma: Add simple batching flush queue implementation
config: x86_64-defconfig
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/commit/?id=4a4a23f90612b2038b9d24fc975438defe255cb1
git remote add niks https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git
git fetch --no-tags niks dma_iommu_v1_wip
git checkout 4a4a23f90612b2038b9d24fc975438defe255cb1
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/iommu/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/iommu/dma-iommu.c:199:5: warning: no previous prototype for 'iommu_dma_init_simple' [-Wmissing-prototypes]
199 | int iommu_dma_init_simple(struct iommu_dma_cookie *cookie)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/iommu_dma_init_simple +199 drivers/iommu/dma-iommu.c
198
> 199 int iommu_dma_init_simple(struct iommu_dma_cookie *cookie)
200 {
201 struct iova_simple *queue;
202
203 queue = vzalloc(sizeof(*queue) +
204 IOVA_SIMPLE_SIZE * sizeof(struct iova_simple_entry));
205 if (!queue)
206 return -ENOMEM;
207
208 INIT_LIST_HEAD(&queue->freelist);
209 cookie->fq_timeout = IOVA_SIMPLE_TIMEOUT;
210 cookie->simple_fq = queue;
211
212 return 0;
213 }
214
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (137849 bytes)
Powered by blists - more mailing lists