summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-05-03 14:56:57 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2022-05-06 12:06:27 +0200
commitbeb016c8fa9ae8f6d66f50b618398e36c9b7b1f7 (patch)
tree66ed96b2b24e13aaddb104e07c6d19825f92ac17 /include
parentMerge pull request #11145 from donaldsharp/bgp_capability (diff)
downloadfrr-beb016c8fa9ae8f6d66f50b618398e36c9b7b1f7.tar.xz
frr-beb016c8fa9ae8f6d66f50b618398e36c9b7b1f7.zip
pim6d: fix Linux kernel header macro
__KERNEL_DIV_ROUND_UP isn't in older versions of linux/const.h. Rather than pull in more headers, just inline the definition. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mroute6.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mroute6.h b/include/linux/mroute6.h
index 1fb90ec02..8c0640671 100644
--- a/include/linux/mroute6.h
+++ b/include/linux/mroute6.h
@@ -63,7 +63,8 @@ typedef uint32_t if_mask;
#define NIFBITS (sizeof(if_mask) * 8) /* bits per mask */
typedef struct if_set {
- if_mask ifs_bits[__KERNEL_DIV_ROUND_UP(IF_SETSIZE, NIFBITS)];
+ /* __KERNEL_DIV_ROUND_UP() */
+ if_mask ifs_bits[(IF_SETSIZE + NIFBITS - 1) / NIFBITS];
} if_set;
#define IF_SET(n, p) ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS)))