Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

Fixes: 2c956a60778cbb ("siphash: add cryptographically secure PRF")
Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20220712104455.1408150-1-dovmurik@linux.ibm.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Dov Murik and committed by
Jonathan Corbet
12fe4343 d5a0cdb8

+1 -1
+1 -1
Documentation/security/siphash.rst
··· 85 85 want to pass a pre-filled struct to siphash. When doing this, it's important 86 86 to always ensure the struct has no padding holes. The easiest way to do this 87 87 is to simply arrange the members of the struct in descending order of size, 88 - and to use offsetendof() instead of sizeof() for getting the size. For 88 + and to use offsetofend() instead of sizeof() for getting the size. For 89 89 performance reasons, if possible, it's probably a good thing to align the 90 90 struct to the right boundary. Here's an example:: 91 91