Date: Tue, 24 Sep 2019 16:21:13 +0530 From: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@...el.com> To: pankaj.bharadiya@...il.com, andriy.shevchenko@...ux.intel.com, kernel-hardening@...ts.openwall.com, keescook@...omium.org, akpm@...ux-foundation.org, mayhs11saini@...il.com Cc: pankaj.laxminarayan.bharadiya@...el.com Subject: [PATCH 4/5] linux/kernel.h: Remove FIELD_SIZEOF macro Now we have sizeof_member macro to find the size of a member of a struct. FIELD_SIZEOF macro is not getting used any more hence remove it. Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@...el.com> --- include/linux/kernel.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 0b80d8bb3978..064497792c70 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -88,15 +88,6 @@ */ #define sizeof_member(T, m) (sizeof(((T *)0)->m)) -/** - * 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 -- 2.17.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.