diff options
| author | Julia Lawall <[email protected]> | 2008-03-29 08:21:08 +1100 |
|---|---|---|
| committer | Paul Mackerras <[email protected]> | 2008-04-01 20:43:10 +1100 |
| commit | ea6728c11f3afa15a9c7c50a6c9ae061fe5a9d00 (patch) | |
| tree | 779deb5e7f8495174919fabaa86ed54f5b1fc979 /tools/perf/scripts/python/bin | |
| parent | 1d18a602e9116dc89da6750dcbda44bb1eb82b8e (diff) | |
[POWERPC] Use FIELD_SIZEOF in drivers/block/viodasd.c
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]>
Cc: Jens Axboe <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Acked-by: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions