<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in bindgen_parameters</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>2fd6f55c - rust: map `__kernel_size_t` and friends also to usize/isize</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/rust/bindgen_parameters#2fd6f55c</link>
        <description>rust: map `__kernel_size_t` and friends also to usize/isizeCurrently bindgen has special logic to recognise `size_t` and `ssize_t`and map them to Rust `usize` and `isize`. Similarly, `ptrdiff_t` ismapped to `isize`.However this falls short for `__kernel_size_t`, `__kernel_ssize_t` and`__kernel_ptrdiff_t`. To ensure that they are mapped to usize/isizerather than 32/64 integers depending on platform, blocklist them inbindgen parameters and manually provide their definition.Signed-off-by: Gary Guo &lt;gary@garyguo.net&gt;Reviewed-by: Alice Ryhl &lt;aliceryhl@google.com&gt;Reviewed-by: Trevor Gross &lt;tmgross@umich.edu&gt;Link: https://lore.kernel.org/r/20240913213041.395655-3-gary@garyguo.net[ Formatted comment. - Miguel ]Signed-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux-6.15/rust/bindgen_parameters</description>
        <pubDate>Fri, 13 Sep 2024 21:29:22 +0000</pubDate>
        <dc:creator>Gary Guo &lt;gary@garyguo.net&gt;</dc:creator>
    </item>
<item>
        <title>732cd686 - rust: fix `ARCH_SLAB_MINALIGN` multiple definition error</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/rust/bindgen_parameters#732cd686</link>
        <description>rust: fix `ARCH_SLAB_MINALIGN` multiple definition errorWe use const helpers in form of    const size_t RUST_CONST_HELPER_ARCH_SLAB_MINALIGN = ARCH_SLAB_MINALIGN;to aid generation of constants by bindgen because it is otherwise amacro definition of an expression and bindgen doesn&apos;t expand theconstant. The helpers are then have `RUST_CONST_HELPER` prefix strippedand exposed to Rust code as if `ARCH_SLAB_MISALIGN` is generatednatively by bindgen.This works well for most constants, but on RISC-V, `ARCH_SLAB_MINALIGN`is defined directly as literal constant if `!CONFIG_MMU`, and bindgenwould generate `ARCH_SLAB_MINALIGN` directly, thus conflict with theone generated through the helper.To fix this, we simply need to block bindgen from generating directlywithout going through helper.Reported-by: kernel test robot &lt;lkp@intel.com&gt;Closes: https://lore.kernel.org/oe-kbuild-all/202409160804.eSg9zh1e-lkp@intel.com/Signed-off-by: Gary Guo &lt;gary@garyguo.net&gt;Reviewed-by: Christian Schrefl &lt;chrisi.schrefl@gmail.com&gt;Link: https://lore.kernel.org/r/20240916003347.1744345-1-gary@garyguo.netSigned-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux-6.15/rust/bindgen_parameters</description>
        <pubDate>Mon, 16 Sep 2024 00:33:46 +0000</pubDate>
        <dc:creator>Gary Guo &lt;gary@garyguo.net&gt;</dc:creator>
    </item>
<item>
        <title>bad098d7 - rust: Ignore preserve-most functions</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/rust/bindgen_parameters#bad098d7</link>
        <description>rust: Ignore preserve-most functionsNeither bindgen nor Rust know about the preserve-most callingconvention, and Clang describes it as unstable. Since we aren&apos;t usingfunctions with this calling convention from Rust, blocklist them.These functions are only added to the build when list hardening isenabled, which is likely why others didn&apos;t notice this yet.Signed-off-by: Matthew Maurer &lt;mmaurer@google.com&gt;Reviewed-by: Martin Rodriguez Reboredo &lt;yakoyoku@gmail.com&gt;Reviewed-by: Alice Ryhl &lt;aliceryhl@google.com&gt;Link: https://lore.kernel.org/r/20231031201945.1412345-1-mmaurer@google.com[ Used Markdown for consistency with the other comments in the file. ]Signed-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux-6.15/rust/bindgen_parameters</description>
        <pubDate>Tue, 31 Oct 2023 20:19:44 +0000</pubDate>
        <dc:creator>Matthew Maurer &lt;mmaurer@google.com&gt;</dc:creator>
    </item>
<item>
        <title>3098cb65 - rust: bindgen: Add `alt_instr` as opaque type</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/rust/bindgen_parameters#3098cb65</link>
        <description>rust: bindgen: Add `alt_instr` as opaque typeTo address this build error:    BINDGEN rust/bindings/bindings_generated.rs    BINDGEN rust/bindings/bindings_helpers_generated.rs    EXPORTS rust/exports_core_generated.h    RUSTC P rust/libmacros.so    RUSTC L rust/compiler_builtins.o    RUSTC L rust/alloc.o    RUSTC L rust/bindings.o    RUSTC L rust/build_error.o    EXPORTS rust/exports_alloc_generated.h  error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type       --&gt; /var/home/acme/git/linux/rust/bindings/bindings_generated.rs:10094:1        |  10094 | / pub struct alt_instr {  10095 | |     pub instr_offset: s32,  10096 | |     pub repl_offset: s32,  10097 | |     pub __bindgen_anon_1: alt_instr__bindgen_ty_1,  10098 | |     pub instrlen: u8_,  10099 | |     pub replacementlen: u8_,  10100 | | }        | |_^        |  note: `alt_instr__bindgen_ty_1__bindgen_ty_1` has a `#[repr(align)]` attribute       --&gt; /var/home/acme/git/linux/rust/bindings/bindings_generated.rs:10111:1        |  10111 | / pub struct alt_instr__bindgen_ty_1__bindgen_ty_1 {  10112 | |     pub _bitfield_1: __BindgenBitfieldUnit&lt;[u8; 4usize], u16&gt;,  10113 | | }        | |_^  note: `alt_instr` contains a field of type `alt_instr__bindgen_ty_1`       --&gt; /var/home/acme/git/linux/rust/bindings/bindings_generated.rs:10097:9        |  10097 |     pub __bindgen_anon_1: alt_instr__bindgen_ty_1,        |         ^^^^^^^^^^^^^^^^  note: ...which contains a field of type `alt_instr__bindgen_ty_1__bindgen_ty_1`       --&gt; /var/home/acme/git/linux/rust/bindings/bindings_generated.rs:10104:9        |  10104 |     pub __bindgen_anon_1: alt_instr__bindgen_ty_1__bindgen_ty_1,        |         ^^^^^^^^^^^^^^^^  error: aborting due to previous error  For more information about this error, try `rustc --explain E0588`.  make[1]: *** [rust/Makefile:389: rust/bindings.o] Error 1  make: *** [Makefile:1293: prepare] Error 2Cc: Derek Barbosa &lt;debarbos@redhat.com&gt;Cc: Miguel Ojeda &lt;ojeda@kernel.org&gt;Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;Fixes: 5d1dd961e743 (&quot;x86/alternatives: Add alt_instr.flags&quot;)Reported-by: kernel test robot &lt;lkp@intel.com&gt;Reported-by: Vincenzo Palazzo &lt;vincenzopalazzodev@gmail.com&gt;Reviewed-by: Martin Rodriguez Reboredo &lt;yakoyoku@gmail.com&gt;Reviewed-by: Vincenzo Palazzo &lt;vincenzopalazzodev@gmail.com&gt;Signed-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux-6.15/rust/bindgen_parameters</description>
        <pubDate>Thu, 02 Mar 2023 14:16:36 +0000</pubDate>
        <dc:creator>Arnaldo Carvalho de Melo &lt;acme@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>2f7ab126 - Kbuild: add Rust support</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/rust/bindgen_parameters#2f7ab126</link>
        <description>Kbuild: add Rust supportHaving most of the new files in place, we now enable Rust supportin the build system, including `Kconfig` entries related to Rust,the Rust configuration printer and a few other bits.Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;Reviewed-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;Tested-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;Co-developed-by: Alex Gaynor &lt;alex.gaynor@gmail.com&gt;Signed-off-by: Alex Gaynor &lt;alex.gaynor@gmail.com&gt;Co-developed-by: Finn Behrens &lt;me@kloenk.de&gt;Signed-off-by: Finn Behrens &lt;me@kloenk.de&gt;Co-developed-by: Adam Bratschi-Kaye &lt;ark.email@gmail.com&gt;Signed-off-by: Adam Bratschi-Kaye &lt;ark.email@gmail.com&gt;Co-developed-by: Wedson Almeida Filho &lt;wedsonaf@google.com&gt;Signed-off-by: Wedson Almeida Filho &lt;wedsonaf@google.com&gt;Co-developed-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;Co-developed-by: Sven Van Asbroeck &lt;thesven73@gmail.com&gt;Signed-off-by: Sven Van Asbroeck &lt;thesven73@gmail.com&gt;Co-developed-by: Gary Guo &lt;gary@garyguo.net&gt;Signed-off-by: Gary Guo &lt;gary@garyguo.net&gt;Co-developed-by: Boris-Chengbiao Zhou &lt;bobo1239@web.de&gt;Signed-off-by: Boris-Chengbiao Zhou &lt;bobo1239@web.de&gt;Co-developed-by: Boqun Feng &lt;boqun.feng@gmail.com&gt;Signed-off-by: Boqun Feng &lt;boqun.feng@gmail.com&gt;Co-developed-by: Douglas Su &lt;d0u9.su@outlook.com&gt;Signed-off-by: Douglas Su &lt;d0u9.su@outlook.com&gt;Co-developed-by: Dariusz Sosnowski &lt;dsosnowski@dsosnowski.pl&gt;Signed-off-by: Dariusz Sosnowski &lt;dsosnowski@dsosnowski.pl&gt;Co-developed-by: Antonio Terceiro &lt;antonio.terceiro@linaro.org&gt;Signed-off-by: Antonio Terceiro &lt;antonio.terceiro@linaro.org&gt;Co-developed-by: Daniel Xu &lt;dxu@dxuuu.xyz&gt;Signed-off-by: Daniel Xu &lt;dxu@dxuuu.xyz&gt;Co-developed-by: Bj&#246;rn Roy Baron &lt;bjorn3_gh@protonmail.com&gt;Signed-off-by: Bj&#246;rn Roy Baron &lt;bjorn3_gh@protonmail.com&gt;Co-developed-by: Martin Rodriguez Reboredo &lt;yakoyoku@gmail.com&gt;Signed-off-by: Martin Rodriguez Reboredo &lt;yakoyoku@gmail.com&gt;Signed-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux-6.15/rust/bindgen_parameters</description>
        <pubDate>Sat, 03 Jul 2021 14:42:57 +0000</pubDate>
        <dc:creator>Miguel Ojeda &lt;ojeda@kernel.org&gt;</dc:creator>
    </item>
</channel>
</rss>
