diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-08-28 18:50:33 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:37 -0400 |
commit | 172589ccdde41b59861c92c4a971b95514ef24e3 (patch) | |
tree | ae775e6db4cb85aad1c74b6d93ba359f9dfe88ea /include | |
parent | c45248c70125cc374fdf264659643276c72801bf (diff) |
[NET]: DIV_ROUND_UP cleanup (part two)
Hopefully captured all single statement cases under net/. I'm
not too sure if there is some policy about #includes that are
"guaranteed" (ie., in the current tree) to be available through
some other #included header, so I just added linux/kernel.h to
each changed file that didn't #include it previously.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index dfeb8b13024f..802c670ba820 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #ifndef _SOCK_H | 40 | #ifndef _SOCK_H |
41 | #define _SOCK_H | 41 | #define _SOCK_H |
42 | 42 | ||
43 | #include <linux/kernel.h> | ||
43 | #include <linux/list.h> | 44 | #include <linux/list.h> |
44 | #include <linux/timer.h> | 45 | #include <linux/timer.h> |
45 | #include <linux/cache.h> | 46 | #include <linux/cache.h> |
@@ -702,7 +703,7 @@ extern int sk_stream_mem_schedule(struct sock *sk, int size, int kind); | |||
702 | 703 | ||
703 | static inline int sk_stream_pages(int amt) | 704 | static inline int sk_stream_pages(int amt) |
704 | { | 705 | { |
705 | return (amt + SK_STREAM_MEM_QUANTUM - 1) / SK_STREAM_MEM_QUANTUM; | 706 | return DIV_ROUND_UP(amt, SK_STREAM_MEM_QUANTUM); |
706 | } | 707 | } |
707 | 708 | ||
708 | static inline void sk_stream_mem_reclaim(struct sock *sk) | 709 | static inline void sk_stream_mem_reclaim(struct sock *sk) |