* [tglx-devel:timers/posix 54/61] arch/x86/kernel/signal_32.c:459:1: error: static assertion failed due to requirement 'sizeof ((((struct siginfo *)0)->_sifields._timer)) == 4 * sizeof(int)': sizeof_field(siginfo32_t, _sifields._timer) == 4*sizeof(int)
@ 2023-06-06 3:01 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-06-06 3:01 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/posix
head: 16a20adb1e0ae19ad42041a7d1b5583e4705ca0c
commit: 7980f85caabff6a355848d2d3cd50acbb38b44b3 [54/61] signal: Add sys_private_ptr to siginfo::timer
config: i386-randconfig-i062-20230605 (https://download.01.org/0day-ci/archive/20230606/202306061017.X48OHhzM-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build):
mkdir -p ~/bin
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/tglx/devel.git/commit/?id=7980f85caabff6a355848d2d3cd50acbb38b44b3
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel timers/posix
git checkout 7980f85caabff6a355848d2d3cd50acbb38b44b3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/ kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306061017.X48OHhzM-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kernel/signal_32.c:459:1: error: static assertion failed due to requirement 'sizeof ((((struct siginfo *)0)->_sifields._timer)) == 4 * sizeof(int)': sizeof_field(siginfo32_t, _sifields._timer) == 4*sizeof(int)
CHECK_SI_SIZE (_timer, 4*sizeof(int));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/signal_32.c:447:2: note: expanded from macro 'CHECK_SI_SIZE'
static_assert(sizeof_field(siginfo32_t, _sifields.name) == size)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:77:34: note: expanded from macro 'static_assert'
#define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:41: note: expanded from macro '__static_assert'
#define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
^ ~~~~
1 error generated.
vim +459 arch/x86/kernel/signal_32.c
f6e2a56c2bad10 Brian Gerst 2022-12-19 453
f6e2a56c2bad10 Brian Gerst 2022-12-19 454 CHECK_SI_OFFSET(_timer);
f6e2a56c2bad10 Brian Gerst 2022-12-19 455 #ifdef CONFIG_COMPAT
f6e2a56c2bad10 Brian Gerst 2022-12-19 456 /* compat_siginfo_t doesn't have si_sys_private */
f6e2a56c2bad10 Brian Gerst 2022-12-19 457 CHECK_SI_SIZE (_timer, 3*sizeof(int));
f6e2a56c2bad10 Brian Gerst 2022-12-19 458 #else
f6e2a56c2bad10 Brian Gerst 2022-12-19 @459 CHECK_SI_SIZE (_timer, 4*sizeof(int));
f6e2a56c2bad10 Brian Gerst 2022-12-19 460 #endif
f6e2a56c2bad10 Brian Gerst 2022-12-19 461 static_assert(offsetof(siginfo32_t, si_tid) == 0x0C);
f6e2a56c2bad10 Brian Gerst 2022-12-19 462 static_assert(offsetof(siginfo32_t, si_overrun) == 0x10);
f6e2a56c2bad10 Brian Gerst 2022-12-19 463 static_assert(offsetof(siginfo32_t, si_value) == 0x14);
f6e2a56c2bad10 Brian Gerst 2022-12-19 464
:::::: The code at line 459 was first introduced by commit
:::::: f6e2a56c2bad10dd4381d5ab021332ef70d81990 x86/signal: Move siginfo field tests
:::::: TO: Brian Gerst <brgerst@gmail.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tglx-devel:timers/posix 54/61] arch/x86/kernel/signal_32.c:459:1: error: static assertion failed due to requirement 'sizeof ((((struct siginfo *)0)->_sifields._timer)) == 4 * sizeof(int)': sizeof_field(siginfo32_t, _sifields._timer) == 4*sizeof(int)
@ 2023-06-06 3:00 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-06-06 3:00 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/posix
head: 16a20adb1e0ae19ad42041a7d1b5583e4705ca0c
commit: 7980f85caabff6a355848d2d3cd50acbb38b44b3 [54/61] signal: Add sys_private_ptr to siginfo::timer
config: i386-buildonly-randconfig-r001-20230605 (https://download.01.org/0day-ci/archive/20230606/202306061031.SNHAdqUm-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build):
mkdir -p ~/bin
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/tglx/devel.git/commit/?id=7980f85caabff6a355848d2d3cd50acbb38b44b3
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel timers/posix
git checkout 7980f85caabff6a355848d2d3cd50acbb38b44b3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306061031.SNHAdqUm-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kernel/signal_32.c:459:1: error: static assertion failed due to requirement 'sizeof ((((struct siginfo *)0)->_sifields._timer)) == 4 * sizeof(int)': sizeof_field(siginfo32_t, _sifields._timer) == 4*sizeof(int)
CHECK_SI_SIZE (_timer, 4*sizeof(int));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/signal_32.c:447:2: note: expanded from macro 'CHECK_SI_SIZE'
static_assert(sizeof_field(siginfo32_t, _sifields.name) == size)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:77:34: note: expanded from macro 'static_assert'
#define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:41: note: expanded from macro '__static_assert'
#define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
^ ~~~~
1 error generated.
vim +459 arch/x86/kernel/signal_32.c
f6e2a56c2bad10d Brian Gerst 2022-12-19 453
f6e2a56c2bad10d Brian Gerst 2022-12-19 454 CHECK_SI_OFFSET(_timer);
f6e2a56c2bad10d Brian Gerst 2022-12-19 455 #ifdef CONFIG_COMPAT
f6e2a56c2bad10d Brian Gerst 2022-12-19 456 /* compat_siginfo_t doesn't have si_sys_private */
f6e2a56c2bad10d Brian Gerst 2022-12-19 457 CHECK_SI_SIZE (_timer, 3*sizeof(int));
f6e2a56c2bad10d Brian Gerst 2022-12-19 458 #else
f6e2a56c2bad10d Brian Gerst 2022-12-19 @459 CHECK_SI_SIZE (_timer, 4*sizeof(int));
f6e2a56c2bad10d Brian Gerst 2022-12-19 460 #endif
f6e2a56c2bad10d Brian Gerst 2022-12-19 461 static_assert(offsetof(siginfo32_t, si_tid) == 0x0C);
f6e2a56c2bad10d Brian Gerst 2022-12-19 462 static_assert(offsetof(siginfo32_t, si_overrun) == 0x10);
f6e2a56c2bad10d Brian Gerst 2022-12-19 463 static_assert(offsetof(siginfo32_t, si_value) == 0x14);
f6e2a56c2bad10d Brian Gerst 2022-12-19 464
:::::: The code at line 459 was first introduced by commit
:::::: f6e2a56c2bad10dd4381d5ab021332ef70d81990 x86/signal: Move siginfo field tests
:::::: TO: Brian Gerst <brgerst@gmail.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-06 3:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06 3:01 [tglx-devel:timers/posix 54/61] arch/x86/kernel/signal_32.c:459:1: error: static assertion failed due to requirement 'sizeof ((((struct siginfo *)0)->_sifields._timer)) == 4 * sizeof(int)': sizeof_field(siginfo32_t, _sifields._timer) == 4*sizeof(int) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-06-06 3:00 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.