All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "kernel test robot" <lkp@intel.com>,
	"Danilo Krummrich" <dakr@kernel.org>
Cc: <oe-kbuild-all@lists.linux.dev>, <linux-kernel@vger.kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Alexandre Courbot" <acourbot@nvidia.com>,
	"Daniel Almeida" <daniel.almeida@collabora.com>,
	"Lyude Paul" <lyude@redhat.com>,
	"Abdiel Janulgue" <abdiel.janulgue@gmail.com>
Subject: Re: error[E0425]: cannot find function `dma_map_sgtable` in crate `bindings`
Date: Mon, 01 Dec 2025 20:47:16 +0900	[thread overview]
Message-ID: <DEMUTK1VYTCD.1GE8RXH4H33XM@nvidia.com> (raw)
In-Reply-To: <202512010734.GAsaWH7b-lkp@intel.com>

On Mon Dec 1, 2025 at 8:22 AM JST, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   e69c7c175115c51c7f95394fc55425a395b3af59
> commit: 05aa6fb1c21d7fb9df735da24096d793223789d5 rust: scatterlist: Add abstraction for sg_table
> date:   3 months ago
> config: um-randconfig-r054-20251201 (https://download.01.org/0day-ci/archive/20251201/202512010734.GAsaWH7b-lkp@intel.com/config)
> compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b3428bb966f1de8aa48375ffee0eba04ede133b7)
> rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251201/202512010734.GAsaWH7b-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/202512010734.GAsaWH7b-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>>> error[E0425]: cannot find function `dma_map_sgtable` in crate `bindings`
>    --> rust/kernel/scatterlist.rs:212:23
>    |
>    212 |               bindings::dma_map_sgtable(dev.as_raw(), sgt.as_ptr(), dir.into(), 0)
>    |                         ^^^^^^^^^^^^^^^ help: a function with a similar name exists: `dma_unmap_sgtable`
>    |
>    ::: rust/bindings/bindings_helpers_generated.rs:465:5
>    |
>    465 | /     pub fn dma_unmap_sgtable(
>    466 | |         dev: *mut device,
>    467 | |         sgt: *mut sg_table,
>    468 | |         dir: dma_data_direction,
>    469 | |         attrs: ffi::c_ulong,
>    470 | |     );
>    | |______- similarly named function `dma_unmap_sgtable` defined here
> --
>>> error[E0425]: cannot find function `dma_max_mapping_size` in crate `bindings`
>    --> rust/kernel/scatterlist.rs:356:52
>    |
>    356 |         let max_segment = match unsafe { bindings::dma_max_mapping_size(dev.as_raw()) } {
>    |                                                    ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`

A lot of the `dma_*` functions become static inline if `CONFIG_HAS_DMA`
is not set, resulting in no bindings being generated for them.


      reply	other threads:[~2025-12-01 11:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-30 23:22 error[E0425]: cannot find function `dma_map_sgtable` in crate `bindings` kernel test robot
2025-12-01 11:47 ` Alexandre Courbot [this message]

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=DEMUTK1VYTCD.1GE8RXH4H33XM@nvidia.com \
    --to=acourbot@nvidia.com \
    --cc=abdiel.janulgue@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=dakr@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=lyude@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.