diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2019-10-03 20:56:06 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-10-07 23:58:35 +0200 |
commit | 3fbd6c4513b5c27465a1dcf2e4286e6c3183bb1f (patch) | |
tree | c04206d150a979e7000af3da7c2811cac4ce7150 /include | |
parent | 856391854ce73015fbe2b235f5886205aab166b0 (diff) | |
download | linux-stable-3fbd6c4513b5c27465a1dcf2e4286e6c3183bb1f.tar.gz linux-stable-3fbd6c4513b5c27465a1dcf2e4286e6c3183bb1f.tar.bz2 linux-stable-3fbd6c4513b5c27465a1dcf2e4286e6c3183bb1f.zip |
netfilter: ipset: move function to ip_set_bitmap_ip.c.
One inline function in ip_set_bitmap.h is only called in
ip_set_bitmap_ip.c: move it and remove inline function specifier.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Acked-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/ipset/ip_set_bitmap.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/netfilter/ipset/ip_set_bitmap.h b/include/linux/netfilter/ipset/ip_set_bitmap.h index 2dddbc6dcac7..fcc4d214a788 100644 --- a/include/linux/netfilter/ipset/ip_set_bitmap.h +++ b/include/linux/netfilter/ipset/ip_set_bitmap.h @@ -12,18 +12,4 @@ enum { IPSET_ADD_START_STORED_TIMEOUT, }; -/* Common functions */ - -static inline u32 -range_to_mask(u32 from, u32 to, u8 *bits) -{ - u32 mask = 0xFFFFFFFE; - - *bits = 32; - while (--(*bits) > 0 && mask && (to & mask) != from) - mask <<= 1; - - return mask; -} - #endif /* __IP_SET_BITMAP_H */ |