llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ardb:for-kernelci 4/4] error[E0425]: cannot find function `_printk` in crate `bindings`
Date: Thu, 25 Jan 2024 13:48:55 +0800	[thread overview]
Message-ID: <202401251312.nsg1mLWn-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git for-kernelci
head:   1e140a96e8ce220d86926c91c3985f13ac88d816
commit: 1e140a96e8ce220d86926c91c3985f13ac88d816 [4/4] x86: Build the core kernel with position independent codegen
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240125/202401251312.nsg1mLWn-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240125/202401251312.nsg1mLWn-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/202401251312.nsg1mLWn-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> warning: unused import: `super::bindings_raw::*`
   --> rust/bindings/lib.rs:43:9
   |
   43 |     use super::bindings_raw::*;
   |         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default
--
>> error[E0425]: cannot find function `_printk` in crate `bindings`
   --> rust/kernel/print.rs:111:19
   |
   111 |         bindings::_printk(
   |                   ^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `_printk` in crate `bindings`
   --> rust/kernel/print.rs:132:19
   |
   132 |         bindings::_printk(
   |                   ^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `strlen` in crate `bindings`
   --> rust/kernel/str.rs:101:38
   |
   101 |         let len = unsafe { bindings::strlen(ptr) } + 1;
   |                                      ^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `memchr` in crate `bindings`
   --> rust/kernel/str.rs:575:38
   |
   575 |         let ptr = unsafe { bindings::memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) };
   |                                      ^^^^^^ not found in `bindings`
   |
   help: consider importing this function
   |
   5   + use core::slice::memchr::memchr;
   |
   help: if you import `memchr`, refer to it directly
   |
   575 -         let ptr = unsafe { bindings::memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) };
   575 +         let ptr = unsafe { memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) };
   |
--
>> error[E0425]: cannot find function, tuple struct or tuple variant `REFCOUNT_INIT` in crate `bindings`
   --> rust/kernel/sync/arc.rs:169:54
   |
   169 |             refcount: Opaque::new(unsafe { bindings::REFCOUNT_INIT(1) }),
   |                                                      ^^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `refcount_inc` in crate `bindings`
   --> rust/kernel/sync/arc.rs:324:28
   |
   324 |         unsafe { bindings::refcount_inc(self.ptr.as_ref().refcount.get()) };
   |                            ^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `refcount_dec_and_test` in crate `bindings`
   --> rust/kernel/sync/arc.rs:342:42
   |
   342 |         let is_zero = unsafe { bindings::refcount_dec_and_test(refcount) };
   |                                          ^^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function, tuple struct or tuple variant `REFCOUNT_INIT` in crate `bindings`
   --> rust/kernel/sync/arc.rs:573:54
   |
   573 |             refcount: Opaque::new(unsafe { bindings::REFCOUNT_INIT(1) }),
   |                                                      ^^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `__init_waitqueue_head` in crate `bindings`
   --> rust/kernel/sync/condvar.rs:100:27
   |
   100 |                 bindings::__init_waitqueue_head(slot, name.as_char_ptr(), key.as_ptr())
   |                           ^^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
--
>> error[E0425]: cannot find function `init_wait` in crate `bindings`
   --> rust/kernel/sync/condvar.rs:109:28
   |
   109   |         unsafe { bindings::init_wait(wait.get()) };
   |                            ^^^^^^^^^ help: a static with a similar name exists: `init_task`
   |
   ::: rust/bindings/bindings_generated.rs:24737:5
   |
   24737 |     pub static mut init_task: task_struct;
   |     ------------------------------------- similarly named static `init_task` defined here
..

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-01-25  5:49 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=202401251312.nsg1mLWn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ardb@kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).