Skip to contentSkip to conversation

error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type

PATCH kernel test robot 2 participants 2 messages Jul 29, 2022 – Aug 2, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

kernel test robot

author build bot
#1 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9250d2f72dc46a808b6aa23bf50dd670f1f52ddc
commit: 475dd867241716f1b6ab12cc188c221bfadacc40 [13092/13104] Merge branch 'rust-next' of https://github.com/Rust-for-Linux/linux.git
config: x86_64-rhel-8.3-rust (attached as .config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 8dfaecc4c24494337933aff9d9166486ca0949f1)

If you fix the issue, kindly add following tag where applicable

All errors (new ones prefixed by >>):

error: write on a pipe with no reader

>> error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> rust/bindings_generated.rs:128494:1
   |
   128494 | / pub struct x86_msi_data {
   128495 | |     pub __bindgen_anon_1: x86_msi_data__bindgen_ty_1,
   128496 | | }
   | |_^
   |
   note: `x86_msi_data__bindgen_ty_1__bindgen_ty_1` has a `#[repr(align)]` attribute
   --> rust/bindings_generated.rs:128507:1
   |
   128507 | / pub struct x86_msi_data__bindgen_ty_1__bindgen_ty_1 {
   128508 | |     pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize], u8>,
   128509 | |     pub __bindgen_padding_0: u16,
   128510 | | }

| |_^
note: x86_msi_data contains a field of type x86_msi_data__bindgen_ty_1 --> rust/bindings_generated.rs:128495:9
|
128495 | pub __bindgen_anon_1: x86_msi_data__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
note: ...which contains a field of type x86_msi_data__bindgen_ty_1__bindgen_ty_1 --> rust/bindings_generated.rs:128500:9
|
128500 | pub __bindgen_anon_1: x86_msi_data__bindgen_ty_1__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
--

>> error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
   --> rust/bindings_generated.rs:128687:1
   |
   128687 | / pub struct x86_msi_addr_lo {
   128688 | |     pub __bindgen_anon_1: x86_msi_addr_lo__bindgen_ty_1,
   128689 | | }
   | |_^
   |
   note: `x86_msi_addr_lo__bindgen_ty_1__bindgen_ty_1` has a `#[repr(align)]` attribute
   --> rust/bindings_generated.rs:128700:1
   |
   128700 | / pub struct x86_msi_addr_lo__bindgen_ty_1__bindgen_ty_1 {
   128701 | |     pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
   128702 | | }

| |_^
note: x86_msi_addr_lo contains a field of type x86_msi_addr_lo__bindgen_ty_1 --> rust/bindings_generated.rs:128688:9
|
128688 | pub __bindgen_anon_1: x86_msi_addr_lo__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
note: ...which contains a field of type x86_msi_addr_lo__bindgen_ty_1__bindgen_ty_1 --> rust/bindings_generated.rs:128693:9
|
128693 | pub __bindgen_anon_1: x86_msi_addr_lo__bindgen_ty_1__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
--

>> error[E0063]: missing field `uring_cmd` in initializer of `bindings_raw::file_operations`

--> rust/kernel/file.rs:468:47
|
468 | const VTABLE: bindings::file_operations = bindings::file_operations {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ missing uring_cmd
--

>> error: aborting due to 3 previous errors
Signature · 2 lines
0-DAY CI Kernel Test Service
https://01.org/lkp
#2 lore raw
Quoted 9 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9250d2f72dc46a808b6aa23bf50dd670f1f52ddc
commit: 475dd867241716f1b6ab12cc188c221bfadacc40 [13092/13104] Merge branch 'rust-next' of https://github.com/Rust-for-Linux/linux.git
config: x86_64-rhel-8.3-rust (attached as .config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 8dfaecc4c24494337933aff9d9166486ca0949f1)

If you fix the issue, kindly add following tag where applicable

Fixed in rust-next (and v8 of the Rust patch series):
https://github.com/Rust-for-Linux/linux/pull/849

Thanks!

Cheers,
Miguel