projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e38bb3
)
[NEIGHBOUR]: Use ALIGN() macro.
author
Stephen Hemminger
<shemminger@osdl.org>
Fri, 11 Aug 2006 06:03:23 +0000
(23:03 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:54:23 +0000
(14:54 -0700)
Rather than opencoding the mask, it looks better to use ALIGN()
macro from kernel.h.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/neighbour.h
b/include/net/neighbour.h
index 74c4b6ff8a5c52b8c3cd8af39d40c07ef2b97de4..bd187daffdb9f51decc99b6ac90b7de778db267c 100644
(file)
--- a/
include/net/neighbour.h
+++ b/
include/net/neighbour.h
@@
-101,7
+101,7
@@
struct neighbour
__u8 dead;
atomic_t probes;
rwlock_t lock;
- unsigned char ha[
(MAX_ADDR_LEN+sizeof(unsigned long)-1)&~(sizeof(unsigned long)-1
)];
+ unsigned char ha[
ALIGN(MAX_ADDR_LEN, sizeof(unsigned long)
)];
struct hh_cache *hh;
atomic_t refcnt;
int (*output)(struct sk_buff *skb);