>
> From: Julia Lawall <julia@diku.dk>
>=20
> Robert P.J. Day proposed to use the macro FIELD_SIZEOF in replace of code
> that matches its definition.
>=20
> The modification was made using the following semantic patch
> (
http://www.emn.fr/x-info/coccinelle/)
>=20
> // <smpl>
> @haskernel@
> @@
>=20
> #include <linux/kernel.h>
>=20
> @depends on haskernel@
> type t;
> identifier f;
> @@
>=20
> - (sizeof(((t*)0)->f))
> + FIELD_SIZEOF(t, f)
>=20
> @depends on haskernel@
> type t;
> identifier f;
> @@
>=20
> - sizeof(((t*)0)->f)
> + FIELD_SIZEOF(t, f)
> // </smpl>
>=20
> Signed-off-by: Julia Lawall <julia@diku.dk>