Re: Speed up KConfig - fix hashtable confusion

From: Sasha Levin

Date: Mon Nov 02 2026 - 05:26:33 EST


On Sun, Nov 01, 2026 at 12:08:15PM -0800, Linus Torvalds wrote:
> The reason is that it's called just a lot, but it *really* doesn't
> help that the scripting versions of the hashtable functions has not
> understood the subtler issues of the hashing code that it took from
> the kernel side, and in the process got things very very wrong.

I'm not sure why we have a copy of include/linux/hashtable.h in
scripts/, but it's silly that it has diverged slightly from what we do
in-kernel, and now we're chasing bugs caused by that divergence.

Can we instead align both back to be the same, or even use
include/linux/hashtable.h directly from scripts/?

--
Thanks,
Sasha