From: kernel test robot <lkp@intel.com>
To: Asahi Lina <lina@asahilina.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [asahilinux:gpu/rust-wip 16/435] rust/helpers.c:688:9: error: implicit declaration of function 'of_node_is_root' is invalid in C99
Date: Sat, 21 Jan 2023 14:36:19 +0800 [thread overview]
Message-ID: <202301211425.Bc2P8XPq-lkp@intel.com> (raw)
tree: https://github.com/AsahiLinux/linux gpu/rust-wip
head: 6cb6d0b4fbbe5d99e82829e9c20618f85b5d890a
commit: ce99480622e25b44347eb5ffa86fabbcfe450ca9 [16/435] rust: of: Add initial OF node bindings
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230121/202301211425.Bc2P8XPq-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/ce99480622e25b44347eb5ffa86fabbcfe450ca9
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux gpu/rust-wip
git checkout ce99480622e25b44347eb5ffa86fabbcfe450ca9
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 prepare
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> rust/helpers.c:688:9: error: implicit declaration of function 'of_node_is_root' is invalid in C99 [-Wimplicit-function-declaration]
>> rust/helpers.c:688:9: error: implicit declaration of function 'of_node_is_root' is invalid in C99 [-Wimplicit-function-declaration], err: true
thread 'main' panicked at 'Unable to generate bindings: ()', /opt/cross/rustc-1.62.0-bindgen-0.56.0/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[2]: *** [rust/Makefile:343: rust/bindings/bindings_helpers_generated.rs] Error 1
make[2]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs'
make[2]: Target 'rust/' not remade because of errors.
make[1]: *** [Makefile:1276: prepare] Error 2
make: *** [Makefile:231: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/of_node_is_root +688 rust/helpers.c
685
686 bool rust_helper_of_node_is_root(const struct device_node *np)
687 {
> 688 return of_node_is_root(np);
689 }
690 EXPORT_SYMBOL_GPL(rust_helper_of_node_is_root);
691
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-01-21 6:37 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=202301211425.Bc2P8XPq-lkp@intel.com \
--to=lkp@intel.com \
--cc=lina@asahilina.net \
--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