public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexandre Courbot <acourbot@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jfern:nova-gsp 25/48] error: cannot find macro `register` in this scope
Date: Thu, 27 Mar 2025 15:21:43 +0800	[thread overview]
Message-ID: <202503271532.6ZuniB3h-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova-gsp
head:   8a5d4dee8e431c4d46aa04b30d0928d29a4d3522
commit: e8b2fbb30d806d93bbd9cede710958aa0b76a843 [25/48] [RFC] rust: add macros to define registers layout
config: x86_64-randconfig-072-20250327 (https://download.01.org/0day-ci/archive/20250327/202503271532.6ZuniB3h-lkp@intel.com/config)
compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250327/202503271532.6ZuniB3h-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/202503271532.6ZuniB3h-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error: cannot find macro `register` in this scope
   --> rust/doctests_kernel_generated.rs:3748:1
   |
   3748 | register!(Boot0@0x00000100, "Basic revision information about the chip";
   | ^^^^^^^^
   |
   help: consider importing this macro
   |
   3    + use kernel::register;
   |
--
>> error[E0425]: cannot find value `bar` in this scope
   --> rust/doctests_kernel_generated.rs:3799:26
   |
   3799 | let boot0 = Boot0::read(&bar);
   |                          ^^^ not found in this scope
--
>> error[E0425]: cannot find value `bar` in this scope
   --> rust/doctests_kernel_generated.rs:3807:49
   |
   3807 | boot0.set_major_rev(3).set_minor_rev(10).write(&bar);
   |                                                 ^^^ not found in this scope
--
>> error[E0425]: cannot find value `bar` in this scope
   --> rust/doctests_kernel_generated.rs:3810:15
   |
   3810 | Boot0::alter(&bar, |r| r.set_major_rev(3).set_minor_rev(10));
   |               ^^^ not found in this scope
--
>> error[E0433]: failed to resolve: use of undeclared type `Boot0`
   --> rust/doctests_kernel_generated.rs:3799:13
   |
   3799 | let boot0 = Boot0::read(&bar);
   |             ^^^^^ use of undeclared type `Boot0`
--
>> error[E0433]: failed to resolve: use of undeclared type `Boot0`
   --> rust/doctests_kernel_generated.rs:3810:1
   |
   3810 | Boot0::alter(&bar, |r| r.set_major_rev(3).set_minor_rev(10));
   | ^^^^^ use of undeclared type `Boot0`

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

                 reply	other threads:[~2025-03-27  7:22 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=202503271532.6ZuniB3h-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=acourbot@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