Re: [PATCH 1/5] linux/kernel.h: Add sizeof_member macro

2019-09-24 Thread Bharadiya,Pankaj
On Tue, Sep 24, 2019 at 09:22:10AM -0700, Kees Cook wrote: > On Tue, Sep 24, 2019 at 04:28:35PM +0530, Pankaj Bharadiya wrote: > > At present we have 3 different macros to calculate the size of a > > member of a struct: > > - SIZEOF_FIELD > > - FIELD_SIZEOF > > - sizeof_field > > > > To brin

Re: [PATCH 1/5] linux/kernel.h: Add sizeof_member macro

2019-09-24 Thread Kees Cook
On Tue, Sep 24, 2019 at 04:28:35PM +0530, Pankaj Bharadiya wrote: > At present we have 3 different macros to calculate the size of a > member of a struct: > - SIZEOF_FIELD > - FIELD_SIZEOF > - sizeof_field > > To bring uniformity in entire kernel source tree let's add > sizeof_member macro.

[PATCH 1/5] linux/kernel.h: Add sizeof_member macro

2019-09-24 Thread Pankaj Bharadiya
At present we have 3 different macros to calculate the size of a member of a struct: - SIZEOF_FIELD - FIELD_SIZEOF - sizeof_field To bring uniformity in entire kernel source tree let's add sizeof_member macro. Replace all occurrences of above 3 macro's with sizeof_member in future patches.