diff options
| author | Julia Lawall <[email protected]> | 2008-02-11 07:07:59 +1100 |
|---|---|---|
| committer | Paul Mackerras <[email protected]> | 2008-02-26 22:17:03 +1100 |
| commit | 4217c7b529af3abea090d875f0ef133ed2d44285 (patch) | |
| tree | 2e2e455f4084083028c283a2bd614675a4ca8007 /tools/perf/scripts/python/bin | |
| parent | 445857e0fc16ba3f74e778dd5a8707459c84f933 (diff) | |
[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/)
// <smpl>
@haskernel@
@@
#include <linux/kernel.h>
@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)
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions