[PATCH] bitops: use safer link explaining the algorithm
Geert Uytterhoeven
geert at linux-m68k.org
Sat Jan 25 07:10:36 PST 2025
Hi Wolfram,
CC Linus (the funloop one ;-)
On Sat, Jan 25, 2025 at 2:03 PM Wolfram Sang
<wsa+renesas at sang-engineering.com> wrote:
> During review, a concern was raised that the link explaining the
> algorithm might get stale. Meanwhile, the site has been archived in the
> WayBack machine. So, use their link which is hopefully more stable.
>
> Fixes: c320592f3f2a ("bitops: add generic parity calculation for u8")
> Signed-off-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
Thanks for your patch!
> --- a/include/linux/bitops.h
> +++ b/include/linux/bitops.h
> @@ -254,7 +254,7 @@ static inline int parity8(u8 val)
> {
> /*
> * One explanation of this algorithm:
> - * https://funloop.org/codex/problem/parity/README.html
> + * http://web.archive.org/web/20250105093316/https://funloop.org/codex/problem/parity/README.html
Is the plan to replace all weblinks by webarchive links as a precaution?
Even websites backed by big companies may disappear[1]...
Putting the webarchive link here also impacts the funloop.org server
statistics, downplaying its relevance, and possibly even causing an
earlier shutdown.
The URL can always be updated when the original site disappears.
> */
> val ^= val >> 4;
> return (0x6996 >> (val & 0xf)) & 1;
[1] The "LessWatts.org" T-shirt I got from Intel survived the
corresponding website by many years ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the linux-i3c
mailing list