From: kernel test robot <lkp@intel.com>
To: Leon Romanovsky <leonro@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [leon-rdma:dma-static-calls-v3 2/2] kernel/dma/mapping.c:831:21: error: call to undeclared function 'dma_is_default_iommu'; ISO C99 and later do not support implicit function declarations
Date: Thu, 18 Jul 2024 19:43:53 +0800 [thread overview]
Message-ID: <202407181924.HKbjSnqk-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git dma-static-calls-v3
head: 7eb55aeea773a5827b4c6ab06f77beed71254e44
commit: 7eb55aeea773a5827b4c6ab06f77beed71254e44 [2/2] dma: add IOMMU static calls with clear default ops
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240718/202407181924.HKbjSnqk-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407181924.HKbjSnqk-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407181924.HKbjSnqk-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/dma/mapping.c:831:21: error: call to undeclared function 'dma_is_default_iommu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
831 | if (WARN_ON(ops && dma_is_default_iommu(dev)))
| ^
1 error generated.
vim +/dma_is_default_iommu +831 kernel/dma/mapping.c
826
827 static int dma_supported(struct device *dev, u64 mask)
828 {
829 const struct dma_map_ops *ops = get_dma_ops(dev);
830
> 831 if (WARN_ON(ops && dma_is_default_iommu(dev)))
832 return false;
833 /*
834 * ->dma_supported sets the bypass flag, so we must always call
835 * into the method here unless the device is truly direct mapped.
836 */
837 if (!ops)
838 return dma_direct_supported(dev, mask);
839 if (!ops->dma_supported)
840 return 1;
841 return ops->dma_supported(dev, mask);
842 }
843
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-18 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202407181924.HKbjSnqk-lkp@intel.com \
--to=lkp@intel.com \
--cc=leonro@nvidia.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox