[PATCH 0/4] s390: enable Rust support and add required arch glue

Jan Polensky posted 4 patches 23 hours ago
Documentation/rust/arch-support.rst |  1 +
arch/s390/Kconfig                   |  1 +
arch/s390/Makefile                  | 28 ++++++++++++++----------
arch/s390/include/asm/bug.h         | 12 +++++++++++
arch/s390/include/asm/jump_label.h  | 33 +++++++++++++++++------------
rust/Makefile                       |  1 +
rust/bindgen_parameters             |  7 ++++++
scripts/generate_rust_target.rs     |  2 ++
scripts/min-tool-version.sh         |  6 +++++-
9 files changed, 65 insertions(+), 26 deletions(-)
[PATCH 0/4] s390: enable Rust support and add required arch glue
Posted by Jan Polensky 23 hours ago
Rust support on s390 requires a small set of architecture-specific pieces
before the generic Rust kernel infrastructure can be used.

The series wires up s390 as a Rust-capable 64-bit architecture, adds the
missing assembly interfaces needed by Rust for WARN/BUG reporting and for
static branches, and adjusts bindgen parameters to avoid repr layout
conflicts caused by packed and aligned s390 structures.

s390 currently requires a nightly rustc due to -Zpacked-stack, and the
minimum tool version gating is adjusted accordingly.

Jan Polensky (4):
  s390/bug: Provide ARCH_WARN_ASM for Rust WARN/BUG support
  s390/jump_label: Implement ARCH_STATIC_BRANCH_JUMP_ASM and
    ARCH_STATIC_BRANCH_ASM macros
  rust/bindgen_parameters: Mark s390 types as opaque to prevent repr
    conflicts
  s390: enable Rust support

 Documentation/rust/arch-support.rst |  1 +
 arch/s390/Kconfig                   |  1 +
 arch/s390/Makefile                  | 28 ++++++++++++++----------
 arch/s390/include/asm/bug.h         | 12 +++++++++++
 arch/s390/include/asm/jump_label.h  | 33 +++++++++++++++++------------
 rust/Makefile                       |  1 +
 rust/bindgen_parameters             |  7 ++++++
 scripts/generate_rust_target.rs     |  2 ++
 scripts/min-tool-version.sh         |  6 +++++-
 9 files changed, 65 insertions(+), 26 deletions(-)


base-commit: 50897c955902c93ae71c38698abb910525ebdc89
--
2.51.0