diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-05-03 14:56:57 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-05-06 12:06:27 +0200 |
commit | beb016c8fa9ae8f6d66f50b618398e36c9b7b1f7 (patch) | |
tree | 66ed96b2b24e13aaddb104e07c6d19825f92ac17 /include | |
parent | Merge pull request #11145 from donaldsharp/bgp_capability (diff) | |
download | frr-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.h | 3 |
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))) |