summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Ebner <manuelebner@mailbox.org>2026-07-10 08:03:46 +0200
committerJonathan Corbet <corbet@lwn.net>2026-07-15 10:51:27 -0600
commit8ff722efae9fcf8b18bf17c4d81104b8864695de (patch)
treeae37f1d9721025105107b05e601b206bee1b5761
parent9b9fc6ab97cccd5f11ccec85333c67c3b3584253 (diff)
downloadlinux-8ff722efae9fcf8b18bf17c4d81104b8864695de.tar.gz
linux-8ff722efae9fcf8b18bf17c4d81104b8864695de.zip
docs: packing: fix brackets
Add two ')' to nested functions in code block. Fixes: a9ad2a8dfb43 ("lib: packing: document recently added APIs") Signed-off-by: Manuel Ebner <manuelebner@mailbox.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260710060346.417669-2-manuelebner@mailbox.org>
-rw-r--r--Documentation/core-api/packing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/core-api/packing.rst b/Documentation/core-api/packing.rst
index f68f1e08fef9..cff1a262efce 100644
--- a/Documentation/core-api/packing.rst
+++ b/Documentation/core-api/packing.rst
@@ -330,7 +330,7 @@ Here is an example of how to use the fields APIs:
void unpack_your_data(const packed_buf_t *buf, struct data *unpacked)
{
- BUILD_BUG_ON(sizeof(*buf) != SIZE;
+ BUILD_BUG_ON(sizeof(*buf) != SIZE);
unpack_fields(buf, sizeof(*buf), unpacked, fields,
QUIRK_LITTLE_ENDIAN);
@@ -338,7 +338,7 @@ Here is an example of how to use the fields APIs:
void pack_your_data(const struct data *unpacked, packed_buf_t *buf)
{
- BUILD_BUG_ON(sizeof(*buf) != SIZE;
+ BUILD_BUG_ON(sizeof(*buf) != SIZE);
pack_fields(buf, sizeof(*buf), unpacked, fields,
QUIRK_LITTLE_ENDIAN);