On Wed, Mar 4, 2020 at 3:04 PM Greg Rose <[email protected]> wrote: > > From: Pankaj Bharadiya <[email protected]> > > Upstream commit: > commit c593642c8be046915ca3a4a300243a68077cd207 > Author: Pankaj Bharadiya <[email protected]> > Date: Mon Dec 9 10:31:43 2019 -0800 > > treewide: Use sizeof_field() macro > > Replace all the occurrences of FIELD_SIZEOF() with sizeof_field() except > at places where these are defined. Later patches will remove the unused > definition of FIELD_SIZEOF(). > > This patch is generated using following script: > > EXCLUDE_FILES="include/linux/stddef.h|include/linux/kernel.h" > > git grep -l -e "\bFIELD_SIZEOF\b" | while read file; > do > > if [[ "$file" =~ $EXCLUDE_FILES ]]; then > continue > fi > sed -i -e 's/\bFIELD_SIZEOF\b/sizeof_field/g' $file; > done > > Signed-off-by: Pankaj Bharadiya <[email protected]> > Link: > https://lore.kernel.org/r/[email protected] > Co-developed-by: Kees Cook <[email protected]> > Signed-off-by: Kees Cook <[email protected]> > Acked-by: David Miller <[email protected]> # for net > > Also added a compatibility layer macro for older kernels that still > use SIZEOF_FIELD > > Signed-off-by: Greg Rose <[email protected]> > --- > V3 - As suggested by Yi-Hung go ahead and just do the sizeof_field > backport rather than the cheap and easy way done in previous > versions of this patch. > ---
Acked-by: Yi-Hung Wei <[email protected]> _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
