]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: ipset: Remove unused htable_bits in macro ahash_region
authorZhen Ni <zhen.ni@easystack.cn>
Fri, 29 Aug 2025 08:36:21 +0000 (16:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:33 +0000 (11:56 +0200)
commit78b39e6ec0c75bd1293eac5375837e43e2d86ab7
tree0f2ce73d2bc8fe9b4ad4a27525971a534c960bf7
parent8bcc2be422920ae5fb2197c1b1a79926dc8681e5
netfilter: ipset: Remove unused htable_bits in macro ahash_region

[ Upstream commit ba941796d7cd1e81f51eed145dad1b47240ff420 ]

Since the ahash_region() macro was redefined to calculate the region
index solely from HTABLE_REGION_BITS, the htable_bits parameter became
unused.

Remove the unused htable_bits argument and its call sites, simplifying
the code without changing semantics.

Fixes: 8478a729c046 ("netfilter: ipset: fix region locking in hash types")
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Reviewed-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/ipset/ip_set_hash_gen.h