Re: [paulmck-rcu:dev.2022.05.26a] BUILD REGRESSION 2ba9ea99370a332f696257f3e4ab417d883f1aa4
From: Paul E. McKenney
Date: Thu Jun 02 2022 - 12:10:32 EST
On Thu, Jun 02, 2022 at 03:32:56PM +0800, kernel test robot wrote:
> tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2022.05.26a
> branch HEAD: 2ba9ea99370a332f696257f3e4ab417d883f1aa4 fixup! rcu-tasks: Handle idle tasks for recently offlined CPUs
>
> Unverified Error/Warning (likely false positive, please contact us if interested):
>
> ERROR: modpost: "rcu_trc_cmpxchg_need_qs" [kernel/rcu/rcuscale.ko] undefined!
> ERROR: modpost: "rcu_trc_cmpxchg_need_qs" [kernel/torture.ko] undefined!
Good catch, I am folding a fix in with attribution.
Thanx, Paul
> arch/alpha/include/asm/cmpxchg.h:62:17: error: cast to union type from type not present in union
> arch/arm/include/asm/cmpxchg.h:211:9: error: cast to union type from type not present in union
> arch/arm64/include/asm/cmpxchg.h:182:17: error: cast to union type from type not present in union
> arch/m68k/include/asm/cmpxchg.h:121:11: error: cast to union type from type not present in union
> arch/parisc/include/asm/cmpxchg.h:85:9: error: cast to union type from type not present in union
> arch/powerpc/include/asm/cmpxchg.h:474:6: error: cast to union type from type not present in union
> arch/s390/include/asm/cmpxchg.h:160:17: error: cast to union type from type not present in union
> arch/sparc/include/asm/cmpxchg_64.h:175:6: error: cast to union type from type not present in union
> include/asm-generic/cmpxchg.h:92:10: error: cast to union type from type not present in union
> include/linux/atomic/atomic-instrumented.h:1912:1: error: incompatible types when assigning to type 'union rcu_special' from type 'int'
> kernel/rcu/tasks.h:1243:8: error: initializing 'typeof (*(__ai_ptr))' (aka 'union rcu_special') with an expression of incompatible type 'int'
> kernel/rcu/tasks.h:1243:8: error: operand of type 'union rcu_special' where arithmetic or pointer type is required
> kernel/rcu/tasks.h:1243:9: error: aggregate value used where an integer was expected
>
> Error/Warning ids grouped by kconfigs:
>
> gcc_recent_errors
> |-- alpha-allyesconfig
> | `-- arch-alpha-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> |-- arm-randconfig-r005-20220531
> | |-- arch-arm-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> | `-- include-linux-atomic-atomic-instrumented.h:error:incompatible-types-when-assigning-to-type-union-rcu_special-from-type-int
> |-- arm64-randconfig-r013-20220531
> | `-- arch-arm64-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> |-- i386-randconfig-a003
> | |-- ERROR:rcu_trc_cmpxchg_need_qs-kernel-rcu-rcuscale.ko-undefined
> | `-- ERROR:rcu_trc_cmpxchg_need_qs-kernel-torture.ko-undefined
> |-- m68k-allmodconfig
> | `-- arch-m68k-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> |-- m68k-defconfig
> | |-- include-asm-generic-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> | `-- kernel-rcu-tasks.h:error:aggregate-value-used-where-an-integer-was-expected
> |-- parisc-allyesconfig
> | `-- arch-parisc-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> |-- powerpc-allyesconfig
> | `-- arch-powerpc-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> |-- s390-randconfig-r044-20220531
> | `-- arch-s390-include-asm-cmpxchg.h:error:cast-to-union-type-from-type-not-present-in-union
> |-- sparc-allyesconfig
> | `-- arch-sparc-include-asm-cmpxchg_64.h:error:cast-to-union-type-from-type-not-present-in-union
> `-- x86_64-randconfig-a004
> |-- ERROR:rcu_trc_cmpxchg_need_qs-kernel-rcu-rcuscale.ko-undefined
> `-- ERROR:rcu_trc_cmpxchg_need_qs-kernel-torture.ko-undefined
>
> clang_recent_errors
> |-- arm64-buildonly-randconfig-r002-20220531
> | `-- kernel-rcu-tasks.h:error:operand-of-type-union-rcu_special-where-arithmetic-or-pointer-type-is-required
> `-- hexagon-randconfig-r033-20220531
> `-- kernel-rcu-tasks.h:error:initializing-typeof-(-(__ai_ptr))-(aka-union-rcu_special-)-with-an-expression-of-incompatible-type-int
>
> elapsed time: 741m
>
> configs tested: 84
> configs skipped: 3
>
> gcc tested configs:
> arm allmodconfig
> arm allyesconfig
> arm64 allyesconfig
> arm defconfig
> arm64 defconfig
> ia64 defconfig
> ia64 allmodconfig
> ia64 allyesconfig
> m68k defconfig
> m68k allmodconfig
> m68k allyesconfig
> alpha defconfig
> csky defconfig
> nios2 allyesconfig
> alpha allyesconfig
> sh allmodconfig
> arc defconfig
> h8300 allyesconfig
> xtensa allyesconfig
> parisc defconfig
> s390 allmodconfig
> parisc allyesconfig
> s390 defconfig
> s390 allyesconfig
> parisc64 defconfig
> nios2 defconfig
> arc allyesconfig
> i386 debian-10.3-kselftests
> i386 debian-10.3
> i386 defconfig
> i386 allyesconfig
> sparc allyesconfig
> sparc defconfig
> mips allyesconfig
> mips allmodconfig
> powerpc allnoconfig
> powerpc allmodconfig
> powerpc allyesconfig
> x86_64 randconfig-a002
> x86_64 randconfig-a006
> x86_64 randconfig-a004
> i386 randconfig-a001
> i386 randconfig-a003
> i386 randconfig-a005
> x86_64 randconfig-a015
> x86_64 randconfig-a013
> x86_64 randconfig-a011
> i386 randconfig-a014
> i386 randconfig-a012
> i386 randconfig-a016
> arc randconfig-r043-20220531
> riscv randconfig-r042-20220531
> s390 randconfig-r044-20220531
> riscv allnoconfig
> riscv allyesconfig
> riscv allmodconfig
> riscv nommu_k210_defconfig
> riscv rv32_defconfig
> riscv nommu_virt_defconfig
> riscv defconfig
> um i386_defconfig
> um x86_64_defconfig
> x86_64 defconfig
> x86_64 kexec
> x86_64 rhel-8.3
> x86_64 allyesconfig
> x86_64 rhel-8.3-kselftests
> x86_64 rhel-8.3-syz
> x86_64 rhel-8.3-func
> x86_64 rhel-8.3-kunit
>
> clang tested configs:
> x86_64 randconfig-a001
> x86_64 randconfig-a003
> x86_64 randconfig-a005
> i386 randconfig-a002
> i386 randconfig-a004
> i386 randconfig-a006
> x86_64 randconfig-a012
> x86_64 randconfig-a014
> x86_64 randconfig-a016
> i386 randconfig-a013
> i386 randconfig-a015
> i386 randconfig-a011
> hexagon randconfig-r041-20220531
> hexagon randconfig-r045-20220531
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp