Commit 12fe4343 authored by Dov Murik's avatar Dov Murik Committed by Jonathan Corbet

Documentation: siphash: Fix typo in the name of offsetofend macro

The siphash documentation misspelled "offsetendof" instead of
"offsetofend".

Fixes: 2c956a60 ("siphash: add cryptographically secure PRF")
Signed-off-by: default avatarDov Murik <dovmurik@linux.ibm.com>
Acked-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20220712104455.1408150-1-dovmurik@linux.ibm.comSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent d5a0cdb8
...@@ -85,7 +85,7 @@ Often times the XuY functions will not be large enough, and instead you'll ...@@ -85,7 +85,7 @@ Often times the XuY functions will not be large enough, and instead you'll
want to pass a pre-filled struct to siphash. When doing this, it's important want to pass a pre-filled struct to siphash. When doing this, it's important
to always ensure the struct has no padding holes. The easiest way to do this to always ensure the struct has no padding holes. The easiest way to do this
is to simply arrange the members of the struct in descending order of size, is to simply arrange the members of the struct in descending order of size,
and to use offsetendof() instead of sizeof() for getting the size. For and to use offsetofend() instead of sizeof() for getting the size. For
performance reasons, if possible, it's probably a good thing to align the performance reasons, if possible, it's probably a good thing to align the
struct to the right boundary. Here's an example:: struct to the right boundary. Here's an example::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment