diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-02 17:04:43 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-02 17:04:43 -0800 |
commit | 7ca4ad5ba886557b67d42242a80f303c3a99ded1 (patch) | |
tree | abb9fec45dc4bb919485fb19759f8720315f1a81 | |
parent | 90e0a47be934644944e7c6a29b8fc561be168ee1 (diff) | |
parent | 1f07dcc459d5f2c639f185f6e94829a0c79f2b4c (diff) | |
download | linux-stable-7ca4ad5ba886557b67d42242a80f303c3a99ded1.tar.gz linux-stable-7ca4ad5ba886557b67d42242a80f303c3a99ded1.tar.bz2 linux-stable-7ca4ad5ba886557b67d42242a80f303c3a99ded1.zip |
Merge tag 'sizeof_field-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull final sizeof_field conversion from Kees Cook:
"Remove now unused FIELD_SIZEOF() macro (Kees Cook)"
* tag 'sizeof_field-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
kernel.h: Remove unused FIELD_SIZEOF()
-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 |