llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ardb:for-kernelci 4/4] error[E0425]: cannot find function `_printk` in crate `bindings`
@ 2024-01-25  5:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-25  5:48 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-25  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-25  5:48 [ardb:for-kernelci 4/4] error[E0425]: cannot find function `_printk` in crate `bindings` kernel test robot

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).