summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2026-10-13 20:31:46 +0000
committerKees Cook <kees@kernel.org>2026-10-14 18:05:52 -0700
commit2f70a9b7e9c74b92a85a2584090f0f5c4cbaa4be (patch)
treecb2bc10d9296610c9cb73e113b1542ef2aa9e54e /scripts/basic/split-include.c
parente2cd253cb31bb0da4bcc512e20bfeebf76880891 (diff)
downloadlinux-next-2f70a9b7e9c74b92a85a2584090f0f5c4cbaa4be.tar.gz
linux-next-2f70a9b7e9c74b92a85a2584090f0f5c4cbaa4be.zip
overflow: Match arithmetic in both parts of __builtin_choose_expr
The two parts of '__builtin_choose_expr()' had different arithmetic expressions. This patch corrects it so that both parts calculate: COUNT * sizeof(*MEMBER) + __must_be_array(MEMBER) In practice, '__must_be_array' is meant to assert if 'MEMBER' isn't an array and return '0' otherwise. However, symmetry is less prone to subtle errors (and far more satisfying). Signed-off-by: Bill Wendling <morbo@google.com> Link: https://patch.msgid.link/20261013203146.387344-1-morbo@google.com Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions