diff options
author | David Howells <dhowells@redhat.com> | 2011-12-13 10:07:49 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2011-12-13 10:07:49 -0500 |
commit | 1632b9e2a14ce9f4e08faf6c4380431d63319bd3 (patch) | |
tree | 572e45a2de74d233af5d98242bafbd193e074f43 /include/linux/mroute6.h | |
parent | fdc29805bd7cae133303045fc0249d76f3827613 (diff) |
UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
Split trivial #if defined(__KERNEL__) && X conditionals to make automated
disintegration easier.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/linux/mroute6.h')
-rw-r--r-- | include/linux/mroute6.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mroute6.h b/include/linux/mroute6.h index a3759cb0ac10..6d8c7251eb8d 100644 --- a/include/linux/mroute6.h +++ b/include/linux/mroute6.h | |||
@@ -43,9 +43,11 @@ typedef unsigned short mifi_t; | |||
43 | typedef __u32 if_mask; | 43 | typedef __u32 if_mask; |
44 | #define NIFBITS (sizeof(if_mask) * 8) /* bits per mask */ | 44 | #define NIFBITS (sizeof(if_mask) * 8) /* bits per mask */ |
45 | 45 | ||
46 | #if !defined(__KERNEL__) && !defined(DIV_ROUND_UP) | 46 | #if !defined(__KERNEL__) |
47 | #if !defined(DIV_ROUND_UP) | ||
47 | #define DIV_ROUND_UP(x,y) (((x) + ((y) - 1)) / (y)) | 48 | #define DIV_ROUND_UP(x,y) (((x) + ((y) - 1)) / (y)) |
48 | #endif | 49 | #endif |
50 | #endif | ||
49 | 51 | ||
50 | typedef struct if_set { | 52 | typedef struct if_set { |
51 | if_mask ifs_bits[DIV_ROUND_UP(IF_SETSIZE, NIFBITS)]; | 53 | if_mask ifs_bits[DIV_ROUND_UP(IF_SETSIZE, NIFBITS)]; |