[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202301060824.xycdrZ24-lkp@intel.com>
Date: Fri, 6 Jan 2023 08:02:42 +0800
From: kernel test robot <lkp@...el.com>
To: "Borislav Petkov (AMD)" <bp@...en8.de>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org, x86@...nel.org,
Ingo Molnar <mingo@...nel.org>
Subject: [tip:x86/alternatives 1/1] error[E0588]: packed type cannot
transitively contain a `#[repr(align)]` type
Hi Borislav,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/alternatives
head: 5d1dd961e74334a2178264193ea813d44ce5e725
commit: 5d1dd961e74334a2178264193ea813d44ce5e725 [1/1] x86/alternatives: Add alt_instr.flags
config: x86_64-rhel-8.3-rust
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://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=5d1dd961e74334a2178264193ea813d44ce5e725
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip x86/alternatives
git checkout 5d1dd961e74334a2178264193ea813d44ce5e725
# 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@...el.com>
All errors (new ones prefixed by >>):
>> error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
--> rust/bindings/bindings_generated.rs:6182:1
|
6182 | / pub struct alt_instr {
6183 | | pub instr_offset: s32,
6184 | | pub repl_offset: s32,
6185 | | pub __bindgen_anon_1: alt_instr__bindgen_ty_1,
6186 | | pub instrlen: u8_,
6187 | | pub replacementlen: u8_,
6188 | | }
| |_^
|
note: `alt_instr__bindgen_ty_1__bindgen_ty_1` has a `#[repr(align)]` attribute
--> rust/bindings/bindings_generated.rs:6199:1
|
6199 | / pub struct alt_instr__bindgen_ty_1__bindgen_ty_1 {
6200 | | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u16>,
6201 | | }
| |_^
note: `alt_instr` contains a field of type `alt_instr__bindgen_ty_1`
--> rust/bindings/bindings_generated.rs:6185:9
|
6185 | pub __bindgen_anon_1: alt_instr__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
note: ...which contains a field of type `alt_instr__bindgen_ty_1__bindgen_ty_1`
--> rust/bindings/bindings_generated.rs:6192:9
|
6192 | pub __bindgen_anon_1: alt_instr__bindgen_ty_1__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
--
>> error: aborting due to previous error
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
View attachment "config" of type "text/plain" (167695 bytes)
Powered by blists - more mailing lists