git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe82dce
)
tile: use ARRAY_SIZE
author
Himangi Saraogi
<himangi774@gmail.com>
Mon, 16 Jun 2014 20:12:24 +0000
(
01:42
+0530)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Thu, 2 Oct 2014 14:19:32 +0000
(10:19 -0400)
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The semantic patch that makes this change is as follows:
// <smpl>
@i@
@@
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)
// </smpl>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/traps.c
patch
|
blob
|
history
diff --cc
arch/tile/kernel/traps.c
Simple merge