* [PATCH net-next] netfilter: nf_tables: Remove unused nft_reduce_is_readonly()
@ 2025-06-24 1:48 Yue Haibing
2025-06-24 11:00 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Yue Haibing @ 2025-06-24 1:48 UTC (permalink / raw)
To: pablo, kadlec, davem, edumazet, kuba, pabeni, horms, fw
Cc: netfilter-devel, coreteam, netdev, linux-kernel, yuehaibing
Since commit 9e539c5b6d9c ("netfilter: nf_tables: disable expression
reduction infra") this is unused.
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
include/net/netfilter/nf_tables.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index e4d8e451e935..8e487cd1ef7b 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -1944,11 +1944,6 @@ static inline u64 nft_net_tstamp(const struct net *net)
#define __NFT_REDUCE_READONLY 1UL
#define NFT_REDUCE_READONLY (void *)__NFT_REDUCE_READONLY
-static inline bool nft_reduce_is_readonly(const struct nft_expr *expr)
-{
- return expr->ops->reduce == NFT_REDUCE_READONLY;
-}
-
void nft_reg_track_update(struct nft_regs_track *track,
const struct nft_expr *expr, u8 dreg, u8 len);
void nft_reg_track_cancel(struct nft_regs_track *track, u8 dreg, u8 len);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] netfilter: nf_tables: Remove unused nft_reduce_is_readonly()
2025-06-24 1:48 [PATCH net-next] netfilter: nf_tables: Remove unused nft_reduce_is_readonly() Yue Haibing
@ 2025-06-24 11:00 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2025-06-24 11:00 UTC (permalink / raw)
To: Yue Haibing
Cc: pablo, kadlec, davem, edumazet, kuba, pabeni, fw, netfilter-devel,
coreteam, netdev, linux-kernel
On Tue, Jun 24, 2025 at 09:48:18AM +0800, Yue Haibing wrote:
> Since commit 9e539c5b6d9c ("netfilter: nf_tables: disable expression
> reduction infra") this is unused.
>
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-24 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 1:48 [PATCH net-next] netfilter: nf_tables: Remove unused nft_reduce_is_readonly() Yue Haibing
2025-06-24 11:00 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).