summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-01-10 12:53:20 -0800
committerKees Cook <keescook@chromium.org>2018-01-15 12:07:46 -0800
commit4229a470175be14e1d2648713be8a5e8e8fbea02 (patch)
tree9800d572b0046b2226f1b853f15c3055e304078e /mm/slub.c
parentc75886862480bb243833e94292db9c44b8af9868 (diff)
downloadlinux-4229a470175be14e1d2648713be8a5e8e8fbea02.tar.bz2
stddef.h: Introduce sizeof_field()
The size of fields within a structure is needed in a few places in the kernel already, and will be needed for the usercopy whitelisting when declaring whitelist regions within structures. This creates a dedicated macro and redefines offsetofend() to use it. Existing usage, ignoring the 1200+ lustre assert uses: $ git grep -E 'sizeof\(\(\((struct )?[a-zA-Z_]+ \*\)0\)->' | \ grep -v staging/lustre | wc -l 65 Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions