Re: [PATCH] x86/Kconfig: rust: Patchable function Rust compat

From: kernel test robot
Date: Tue Dec 12 2023 - 07:55:32 EST


Hi Matthew,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/x86/core]
[also build test ERROR on peterz-queue/sched/core tip/master tip/auto-latest linus/master v6.7-rc5 next-20231212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Maurer/x86-Kconfig-rust-Patchable-function-Rust-compat/20231211-230934
base: tip/x86/core
patch link: https://lore.kernel.org/r/20231211150753.293883-1-mmaurer%40google.com
patch subject: [PATCH] x86/Kconfig: rust: Patchable function Rust compat
config: x86_64-rhel-8.3-bpf (attached as .config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231212/202312122055.m7s1ccIE-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312122055.m7s1ccIE-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> arch/x86/Kconfig:2443: syntax error
arch/x86/Kconfig:2442: invalid statement
arch/x86/Kconfig:2443: invalid statement
make[3]: *** [scripts/kconfig/Makefile:77: oldconfig] Error 1
make[2]: *** [Makefile:685: oldconfig] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Target 'oldconfig' not remade because of errors.
make: *** [Makefile:234: __sub-make] Error 2
make: Target 'oldconfig' not remade because of errors.
--
>> arch/x86/Kconfig:2443: syntax error
arch/x86/Kconfig:2442: invalid statement
arch/x86/Kconfig:2443: invalid statement
make[3]: *** [scripts/kconfig/Makefile:77: olddefconfig] Error 1
make[2]: *** [Makefile:685: olddefconfig] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Target 'olddefconfig' not remade because of errors.
make: *** [Makefile:234: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.


vim +2443 arch/x86/Kconfig

2431
2432 config CC_HAS_SLS
2433 def_bool $(cc-option,-mharden-sls=all)
2434
2435 config CC_HAS_RETURN_THUNK
2436 def_bool $(cc-option,-mfunction-return=thunk-extern)
2437
2438 config CC_HAS_ENTRY_PADDING
2439 def_bool $(cc-option,-fpatchable-function-entry=16,16)
2440
2441 config RUSTC_HAS_ENTRY_PADDING
2442 depends RUST
> 2443 def_bool $(rs-option,-Zpatchable-function-entry=16,16)
2444

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki