From: Julia Lawall Date: Sun, 10 Feb 2008 20:07:59 +0000 (+1100) Subject: [POWERPC] Use FIELD_SIZEOF in arch/ppc X-Git-Tag: v2.6.26-rc1~1125^2~154 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4217c7b529af3abea090d875f0ef133ed2d44285;p=pandora-kernel.git [POWERPC] Use FIELD_SIZEOF in arch/ppc Robert P.J. Day proposed to use the macro FIELD_SIZEOF in replace of code that matches its definition. The modification was made using the following semantic patch (http://www.emn.fr/x-info/coccinelle/) // @haskernel@ @@ #include @depends on haskernel@ type t; identifier f; @@ - (sizeof(((t*)0)->f)) + FIELD_SIZEOF(t, f) @depends on haskernel@ type t; identifier f; @@ - sizeof(((t*)0)->f) + FIELD_SIZEOF(t, f) // Signed-off-by: Julia Lawall Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed