Commit 08a01c11 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nftables: statify nft_parse_register()

This function is not used anymore by any extension, statify it.
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 345023b0
...@@ -200,7 +200,6 @@ static inline enum nft_registers nft_type_to_reg(enum nft_data_types type) ...@@ -200,7 +200,6 @@ static inline enum nft_registers nft_type_to_reg(enum nft_data_types type)
} }
int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest); int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest);
unsigned int nft_parse_register(const struct nlattr *attr);
int nft_dump_register(struct sk_buff *skb, unsigned int attr, unsigned int reg); int nft_dump_register(struct sk_buff *skb, unsigned int attr, unsigned int reg);
int nft_parse_register_load(const struct nlattr *attr, u8 *sreg, u32 len); int nft_parse_register_load(const struct nlattr *attr, u8 *sreg, u32 len);
......
...@@ -8595,7 +8595,7 @@ EXPORT_SYMBOL_GPL(nft_parse_u32_check); ...@@ -8595,7 +8595,7 @@ EXPORT_SYMBOL_GPL(nft_parse_u32_check);
* Registers used to be 128 bit wide, these register numbers will be * Registers used to be 128 bit wide, these register numbers will be
* mapped to the corresponding 32 bit register numbers. * mapped to the corresponding 32 bit register numbers.
*/ */
unsigned int nft_parse_register(const struct nlattr *attr) static unsigned int nft_parse_register(const struct nlattr *attr)
{ {
unsigned int reg; unsigned int reg;
...@@ -8607,7 +8607,6 @@ unsigned int nft_parse_register(const struct nlattr *attr) ...@@ -8607,7 +8607,6 @@ unsigned int nft_parse_register(const struct nlattr *attr)
return reg + NFT_REG_SIZE / NFT_REG32_SIZE - NFT_REG32_00; return reg + NFT_REG_SIZE / NFT_REG32_SIZE - NFT_REG32_00;
} }
} }
EXPORT_SYMBOL_GPL(nft_parse_register);
/** /**
* nft_dump_register - dump a register value to a netlink attribute * nft_dump_register - dump a register value to a netlink attribute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment