diff options
author | Kees Cook <keescook@chromium.org> | 2019-12-30 23:01:56 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2019-12-30 23:01:56 +0300 |
commit | 1f07dcc459d5f2c639f185f6e94829a0c79f2b4c (patch) | |
tree | 67c84035ed17ee5388ead1e0816b87905a14aad7 /include/linux/kernel.h | |
parent | fd6988496e79a6a4bdb514a4655d2920209eb85d (diff) | |
download | linux-1f07dcc459d5f2c639f185f6e94829a0c79f2b4c.tar.xz |
kernel.h: Remove unused FIELD_SIZEOF()
Now that all callers of FIELD_SIZEOF() have been converted to
sizeof_field(), remove the unused prior macro.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 3adcb39fa6f5..0d9db2a14f44 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -79,15 +79,6 @@ */ #define round_down(x, y) ((x) & ~__round_mask(x, y)) -/** - * FIELD_SIZEOF - get the size of a struct's field - * @t: the target struct - * @f: the target struct's field - * Return: the size of @f in the struct definition without having a - * declared instance of @t. - */ -#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) - #define typeof_member(T, m) typeof(((T*)0)->m) #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP |