Skip to contentSkip to conversation

docs: packaging: fix brackets

PATCH Superseded Manuel Ebner 2 participants 2 messages Jul 9

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs: packaging: fix brackets

Add two ')' to nested functions in code block.

Fixes a9ad2a8dfb43 ("lib: packing: document recently added APIs")

---
[v2]
add Fixes tag.
add Reviewed-by.
[v1]
https://lore.kernel.org/all/[email protected]/

---
 Documentation/core-api/packing.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/core-api/packing.rst +2 -2
index f68f1e08fef9..cff1a262efce 100644
@@ -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);
Signature · 1 line
2.54.0
reviewer Acked-by on v2 1/1
#1 lore raw
Quoted 5 lines · Manuel Ebner

Add two ')' to nested functions in code block.

Fixes a9ad2a8dfb43 ("lib: packing: document recently added APIs")

Subject is now incorrect; should be packing:

Quoted 32 lines

---
[v2]
add Fixes tag.
add Reviewed-by.
[v1]
https://lore.kernel.org/all/[email protected]/

---
 Documentation/core-api/packing.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/core-api/packing.rst +2 -2
index f68f1e08fef9..cff1a262efce 100644
@@ -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);
Signature · 1 line
~Randy