Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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()

-9
-9
include/linux/kernel.h
··· 79 79 */ 80 80 #define round_down(x, y) ((x) & ~__round_mask(x, y)) 81 81 82 - /** 83 - * FIELD_SIZEOF - get the size of a struct's field 84 - * @t: the target struct 85 - * @f: the target struct's field 86 - * Return: the size of @f in the struct definition without having a 87 - * declared instance of @t. 88 - */ 89 - #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) 90 - 91 82 #define typeof_member(T, m) typeof(((T*)0)->m) 92 83 93 84 #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP