Re: [PATCH 00/10] String hash improvements
From: George Spelvin
Date: Wed May 25 2016 - 04:11:37 EST
Geert Uytterhoeven wrote:
> Usually this is handled through include/asm-generic/.
> Put the generic default implementation in include/asm-generic/hash.h.
>
> Architectures that need to override provide their own version, e.g.
> arch/m68k/include/asm/hash.h. They may #include <asm-generic/hash.h>
> if they still want to reuse parts of the generic implementation.
>
> Other architectures add "generic-y += hash.h" to their
> arch/<ARCH>/include/asm/Kbuild.
I thought about that, but then I'd have to edit *every* architecture,
and might need acks from all the maintainers.
I was looking for something that was a total no-op on most architectures.
But if this is preferred, it's not technically difficult at all.
If asm-generic were in the <asm/*.h> search path, it would magically
Just Work, but leftover files from a broken checkout would be a big
potential problem.