GEN arch/x86/include/generated/asm/orc_hash.h WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h WRAP arch/x86/include/generated/uapi/asm/errno.h WRAP arch/x86/include/generated/uapi/asm/fcntl.h WRAP arch/x86/include/generated/uapi/asm/ioctl.h UPD include/config/kernel.release WRAP arch/x86/include/generated/uapi/asm/ioctls.h WRAP arch/x86/include/generated/uapi/asm/ipcbuf.h WRAP arch/x86/include/generated/uapi/asm/param.h WRAP arch/x86/include/generated/uapi/asm/poll.h WRAP arch/x86/include/generated/uapi/asm/resource.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h WRAP arch/x86/include/generated/uapi/asm/socket.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h UPD include/generated/uapi/linux/version.h WRAP arch/x86/include/generated/uapi/asm/sockios.h WRAP arch/x86/include/generated/uapi/asm/termbits.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h SYSTBL arch/x86/include/generated/asm/syscalls_32.h WRAP arch/x86/include/generated/uapi/asm/termios.h WRAP arch/x86/include/generated/uapi/asm/types.h SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h SYSTBL arch/x86/include/generated/asm/syscalls_64.h UPD include/generated/utsrelease.h UPD arch/x86/include/generated/asm/cpufeaturemasks.h WRAP arch/x86/include/generated/asm/early_ioremap.h WRAP arch/x86/include/generated/asm/fprobe.h HOSTCC arch/x86/tools/relocs_32.o WRAP arch/x86/include/generated/asm/mcs_spinlock.h WRAP arch/x86/include/generated/asm/mmzone.h HOSTCC arch/x86/tools/relocs_64.o WRAP arch/x86/include/generated/asm/irq_regs.h HOSTCC arch/x86/tools/relocs_common.o WRAP arch/x86/include/generated/asm/kmap_size.h HOSTCC scripts/dtc/dtc.o WRAP arch/x86/include/generated/asm/local64.h HOSTCC scripts/dtc/flattree.o WRAP arch/x86/include/generated/asm/mmiowb.h HOSTCC scripts/dtc/fstree.o WRAP arch/x86/include/generated/asm/module.lds.h HOSTCC scripts/dtc/data.o WRAP arch/x86/include/generated/asm/rwonce.h HOSTCC scripts/dtc/livetree.o WRAP arch/x86/include/generated/asm/unwind_user.h HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o YACC scripts/dtc/dtc-parser.tab.[ch] LEX scripts/dtc/dtc-lexer.lex.c HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o UPD include/generated/compile.h HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o DESCEND objtool HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD arch/x86/tools/relocs HOSTLD scripts/dtc/fdtoverlay INSTALL /workdir/tools/objtool/libsubcmd/include/subcmd/exec-cmd.h INSTALL /workdir/tools/objtool/libsubcmd/include/subcmd/help.h INSTALL /workdir/tools/objtool/libsubcmd/include/subcmd/pager.h INSTALL /workdir/tools/objtool/libsubcmd/include/subcmd/parse-options.h INSTALL /workdir/tools/objtool/libsubcmd/include/subcmd/run-command.h INSTALL libsubcmd_headers HOSTLD scripts/dtc/dtc HOSTRUSTC scripts/generate_rust_target HOSTCC scripts/kallsyms HOSTCC scripts/sorttable HOSTCC scripts/asn1_compiler HOSTCC scripts/gendwarfksyms/gendwarfksyms.o HOSTCC scripts/gendwarfksyms/cache.o HOSTCC scripts/gendwarfksyms/die.o HOSTCC scripts/gendwarfksyms/dwarf.o HOSTCC scripts/gendwarfksyms/kabi.o HOSTCC scripts/gendwarfksyms/symbols.o HOSTCC scripts/sign-file HOSTCC scripts/gendwarfksyms/types.o CC /workdir/tools/objtool/libsubcmd/exec-cmd.o CC /workdir/tools/objtool/libsubcmd/help.o CC /workdir/tools/objtool/libsubcmd/pager.o CC /workdir/tools/objtool/libsubcmd/parse-options.o CC /workdir/tools/objtool/libsubcmd/run-command.o CC /workdir/tools/objtool/libsubcmd/sigchain.o CC /workdir/tools/objtool/libsubcmd/subcmd-config.o HOSTLD scripts/gendwarfksyms/gendwarfksyms LD /workdir/tools/objtool/libsubcmd/libsubcmd-in.o AR /workdir/tools/objtool/libsubcmd/libsubcmd.a UPD scripts/target.json CC /workdir/tools/objtool/weak.o CC /workdir/tools/objtool/check.o CC /workdir/tools/objtool/arch/x86/special.o CC /workdir/tools/objtool/special.o MKDIR /workdir/tools/objtool/arch/x86/lib/ CC /workdir/tools/objtool/builtin-check.o CC /workdir/tools/objtool/elf.o CC /workdir/tools/objtool/arch/x86/orc.o CC /workdir/tools/objtool/objtool.o CC /workdir/tools/objtool/orc_gen.o CC /workdir/tools/objtool/orc_dump.o GEN /workdir/tools/objtool/arch/x86/lib/inat-tables.c CC /workdir/tools/objtool/libstring.o CC /workdir/tools/objtool/libctype.o CC /workdir/tools/objtool/str_error_r.o CC /workdir/tools/objtool/librbtree.o CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig CC scripts/mod/devicetable-offsets.s CC /workdir/tools/objtool/arch/x86/decode.o MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTCC scripts/mod/symsearch.o UPD scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o LD /workdir/tools/objtool/arch/x86/objtool-in.o HOSTLD scripts/mod/modpost CC kernel/bounds.s CHKSHA1 include/linux/atomic/atomic-arch-fallback.h CHKSHA1 include/linux/atomic/atomic-instrumented.h CHKSHA1 include/linux/atomic/atomic-long.h UPD include/generated/timeconst.h UPD include/generated/bounds.h CC arch/x86/kernel/asm-offsets.s LD /workdir/tools/objtool/objtool-in.o LINK /workdir/tools/objtool/objtool UPD include/generated/asm-offsets.h CC kernel/sched/rq-offsets.s UPD include/generated/rq-offsets.h CALL scripts/checksyscalls.sh RUSTC L rust/core.o BINDGEN rust/bindings/bindings_generated.rs BINDGEN rust/bindings/bindings_helpers_generated.rs CC rust/helpers/helpers.o RUSTC P rust/libpin_init_internal.so RUSTC P rust/libmacros.so BINDGEN rust/uapi/uapi_generated.rs RSCPP rust/kernel/generated_arch_static_branch_asm.rs RSCPP rust/kernel/generated_arch_warn_asm.rs RSCPP rust/kernel/generated_arch_reachable_asm.rs EXPORTS rust/exports_helpers_generated.h EXPORTS rust/exports_core_generated.h RUSTC L rust/compiler_builtins.o RUSTC L rust/ffi.o RUSTC L rust/pin_init.o RUSTC L rust/build_error.o RUSTC L rust/bindings.o RUSTC L rust/uapi.o EXPORTS rust/exports_bindings_generated.h RUSTC L rust/kernel.o error[E0308]: mismatched types --> rust/kernel/configfs.rs:160:29 | 158 | bindings::config_group_init_type_name( | ------------------------------------- arguments to this function are incorrect 159 | &mut (*place.get()).su_group, 160 | name.as_ptr(), | ^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> /workdir/rust/bindings/bindings_generated.rs:82839:12 | 82839 | pub fn config_group_init_type_name( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> rust/kernel/clk.rs:145:49 | 145 | bindings::clk_get(dev.as_raw(), con_id) | ----------------- ^^^^^^ expected `*const u8`, found `*const i8` | | | arguments to this function are incorrect | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> /workdir/rust/bindings/bindings_generated.rs:82601:12 | 82601 | pub fn clk_get(dev: *mut device, id: *const ffi::c_char) -> *mut clk; | ^^^^^^^ error[E0308]: mismatched types --> rust/kernel/clk.rs:314:58 | 314 | bindings::clk_get_optional(dev.as_raw(), con_id) | -------------------------- ^^^^^^ expected `*const u8`, found `*const i8` | | | arguments to this function are incorrect | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> /workdir/rust/bindings/bindings_helpers_generated.rs:815:12 | 815 | pub fn clk_get_optional(dev: *mut device, id: *const ffi::c_char) -> *mut clk; | ^^^^^^^^^^^^^^^^ error[E0599]: no method named `as_char_ptr` found for reference `&ffi::CStr` in the current scope --> rust/kernel/debugfs/entry.rs:40:64 | 40 | let entry = unsafe { bindings::debugfs_create_dir(name.as_char_ptr(), parent_ptr) }; | ^^^^^^^^^^^ | = help: items from traits can only be used if the trait is in scope help: trait `CStrExt` which provides `as_char_ptr` is implemented but not in scope; perhaps you want to import it | 4 + use crate::str::CStrExt; | help: there is a method `as_ptr` with a similar name | 40 - let entry = unsafe { bindings::debugfs_create_dir(name.as_char_ptr(), parent_ptr) }; 40 + let entry = unsafe { bindings::debugfs_create_dir(name.as_ptr(), parent_ptr) }; | error[E0599]: no method named `as_char_ptr` found for reference `&ffi::CStr` in the current scope --> rust/kernel/debugfs/entry.rs:66:22 | 66 | name.as_char_ptr(), | ^^^^^^^^^^^ | = help: items from traits can only be used if the trait is in scope help: trait `CStrExt` which provides `as_char_ptr` is implemented but not in scope; perhaps you want to import it | 4 + use crate::str::CStrExt; | help: there is a method `as_ptr` with a similar name | 66 - name.as_char_ptr(), 66 + name.as_ptr(), | error[E0599]: no method named `as_char_ptr` found for reference `&ffi::CStr` in the current scope --> rust/kernel/debugfs/entry.rs:94:64 | 94 | let entry = unsafe { bindings::debugfs_create_dir(name.as_char_ptr(), parent_ptr) }; | ^^^^^^^^^^^ | = help: items from traits can only be used if the trait is in scope help: trait `CStrExt` which provides `as_char_ptr` is implemented but not in scope; perhaps you want to import it | 4 + use crate::str::CStrExt; | help: there is a method `as_ptr` with a similar name | 94 - let entry = unsafe { bindings::debugfs_create_dir(name.as_char_ptr(), parent_ptr) }; 94 + let entry = unsafe { bindings::debugfs_create_dir(name.as_ptr(), parent_ptr) }; | error[E0599]: no method named `as_char_ptr` found for reference `&ffi::CStr` in the current scope --> rust/kernel/debugfs/entry.rs:119:22 | 119 | name.as_char_ptr(), | ^^^^^^^^^^^ | = help: items from traits can only be used if the trait is in scope help: trait `CStrExt` which provides `as_char_ptr` is implemented but not in scope; perhaps you want to import it | 4 + use crate::str::CStrExt; | help: there is a method `as_ptr` with a similar name | 119 - name.as_char_ptr(), 119 + name.as_ptr(), | error[E0308]: mismatched types --> rust/kernel/regulator.rs:87:74 | 87 | to_result(unsafe { bindings::devm_regulator_get_enable(dev.as_raw(), name.as_ptr()) }) | ----------------------------------- ^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` | | | arguments to this function are incorrect | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> /workdir/rust/bindings/bindings_generated.rs:124616:12 | 124616 | pub fn devm_regulator_get_enable(dev: *mut device, id: *const ffi::c_char) -> ffi::c_int; | ^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> rust/kernel/regulator.rs:105:83 | 105 | to_result(unsafe { bindings::devm_regulator_get_enable_optional(dev.as_raw(), name.as_ptr()) }) | -------------------------------------------- ^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` | | | arguments to this function are incorrect | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> /workdir/rust/bindings/bindings_generated.rs:124619:12 | 124619 | pub fn devm_regulator_get_enable_optional( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> rust/kernel/regulator.rs:271:81 | 271 | let inner = from_err_ptr(unsafe { bindings::regulator_get(dev.as_raw(), name.as_ptr()) })?; | ----------------------- ^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` | | | arguments to this function are incorrect | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> /workdir/rust/bindings/bindings_generated.rs:124592:12 | 124592 | pub fn regulator_get(dev: *mut device, id: *const ffi::c_char) -> *mut regulator; | ^^^^^^^^^^^^^ error: aborting due to 10 previous errors Some errors have detailed explanations: E0308, E0599. For more information about an error, try `rustc --explain E0308`. make[2]: *** [rust/Makefile:553: rust/kernel.o] Error 1 make[1]: *** [/workdir/Makefile:1286: prepare] Error 2 make: *** [Makefile:248: __sub-make] Error 2