The patch titled Subject: include/linux/kernel.h: add typeof_member() macro has been added to the -mm tree. Its filename is add-typeof_member-macro.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/add-typeof_member-macro.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/add-typeof_member-macro.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexey Dobriyan <adobriyan@xxxxxxxxx> Subject: include/linux/kernel.h: add typeof_member() macro Add typeof_member() macro so that types can be extracted without introducing dummy variables. Link: http://lkml.kernel.org/r/20190529190720.GA5703@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) --- a/include/linux/kernel.h~add-typeof_member-macro +++ a/include/linux/kernel.h @@ -88,6 +88,8 @@ */ #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 #define DIV_ROUND_DOWN_ULL(ll, d) \ _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are ramfs-support-o_tmpfile.patch swap-ifdef-struct-vm_area_struct-swap_readahead_info.patch proc-hide-segfault-at-ffffffffff600000-dmesg-spam.patch add-typeof_member-macro.patch proc-use-typeof_member-macro.patch tweak-list_poison2-for-better-code-generation-on-x86_64.patch elf-delete-stale-comment.patch signal-reorder-struct-sighand_struct.patch