From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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)
Date: Tue, 6 Jun 2023 11:00:59 +0800 [thread overview]
Message-ID: <202306061031.SNHAdqUm-lkp@intel.com> (raw)
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
next reply other threads:[~2023-06-06 3:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-06 3:00 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202306061031.SNHAdqUm-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.