diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-07-22 12:06:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-22 13:39:42 -0700 |
commit | 0bec8c88dc2b076a0a4a0437e1e878026cbaccb4 (patch) | |
tree | 9befba0c7dc9370016019015248ffbf06b0a80cb /include/linux | |
parent | 526cbef778ad8e763b95608d7e5c988b96bf4af5 (diff) | |
download | linux-0bec8c88dc2b076a0a4a0437e1e878026cbaccb4.tar.gz linux-0bec8c88dc2b076a0a4a0437e1e878026cbaccb4.tar.bz2 linux-0bec8c88dc2b076a0a4a0437e1e878026cbaccb4.zip |
net: skbuff: Use ALIGN macro instead of open coding it
Use ALIGN from linux/kernel.h to define SKB_DATA_ALIGN instead of open
coding it.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/skbuff.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 369430340ed9..b613557132b9 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -112,8 +112,7 @@ #define CHECKSUM_COMPLETE 2 #define CHECKSUM_PARTIAL 3 -#define SKB_DATA_ALIGN(X) (((X) + (SMP_CACHE_BYTES - 1)) & \ - ~(SMP_CACHE_BYTES - 1)) +#define SKB_DATA_ALIGN(X) ALIGN(X, SMP_CACHE_BYTES) #define SKB_WITH_OVERHEAD(X) \ ((X) - SKB_DATA_ALIGN(sizeof(struct skb_shared_info))) #define SKB_MAX_ORDER(X, ORDER) \ |