projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7304fe4
)
netlink: Use PAGE_ALIGNED macro
author
Tobias Klauser
<tklauser@distanz.ch>
Thu, 31 Jul 2014 10:17:08 +0000
(12:17 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 1 Aug 2014 05:05:28 +0000
(22:05 -0700)
Use PAGE_ALIGNED(...) instead of IS_ALIGNED(..., PAGE_SIZE).
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c
patch
|
blob
|
history
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index
1b38f7f
..
ce82722
100644
(file)
--- a/
net/netlink/af_netlink.c
+++ b/
net/netlink/af_netlink.c
@@
-374,7
+374,7
@@
static int netlink_set_ring(struct sock *sk, struct nl_mmap_req *req,
if ((int)req->nm_block_size <= 0)
return -EINVAL;
- if (!
IS_ALIGNED(req->nm_block_size, PAGE_SIZE
))
+ if (!
PAGE_ALIGNED(req->nm_block_size
))
return -EINVAL;
if (req->nm_frame_size < NL_MMAP_HDRLEN)
return -EINVAL;