Linux Hardening
 help / color / mirror / Atom feed
From: Sang-Heon Jeon <ekffu200098@gmail.com>
To: kees@kernel.org, gustavoars@kernel.org
Cc: linux-hardening@vger.kernel.org, Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: [PATCH] overflow: Fix kernel-doc typos in overflows_type and __set_flex_counter
Date: Sun,  3 May 2026 22:48:14 +0900	[thread overview]
Message-ID: <20260503134814.473307-1-ekffu200098@gmail.com> (raw)

Replace stale @x reference with @n in overflows_type() kernel-doc,
and fix "annoated" -> "annotated" in __set_flex_counter() kernel-doc.

Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
Hello,

I found these minor typos while reading the code. The change is trivial,
but I hope it helps reduce a bit of confusion for future readers.

Best Regards,
Sang-Heon Jeon
---
 include/linux/overflow.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/overflow.h b/include/linux/overflow.h
index a8cb6319b4fb..ec279c8c637b 100644
--- a/include/linux/overflow.h
+++ b/include/linux/overflow.h
@@ -218,11 +218,11 @@ static __always_inline bool __must_check __must_check_overflow(bool overflow)
  *		    or data type
  *
  * @n: source constant value or variable to be checked
- * @T: destination variable or data type proposed to store @x
+ * @T: destination variable or data type proposed to store @n
  *
- * Compares the @x expression for whether or not it can safely fit in
- * the storage of the type in @T. @x and @T can have different types.
- * If @x is a constant expression, this will also resolve to a constant
+ * Compares the @n expression for whether or not it can safely fit in
+ * the storage of the type in @T. @n and @T can have different types.
+ * If @n is a constant expression, this will also resolve to a constant
  * expression.
  *
  * Returns: true if overflow can occur, false otherwise.
@@ -574,7 +574,7 @@ static __always_inline size_t __must_check size_sub(size_t minuend, size_t subtr
 
 /**
  * __set_flex_counter() - Set the counter associated with the given flexible
- *                        array member that has been annoated by __counted_by().
+ *                        array member that has been annotated by __counted_by().
  * @FAM: Instance of flexible array member within a given struct.
  * @COUNT: Value to store to the __counted_by annotated @FAM_PTR's counter.
  *
-- 
2.43.0


                 reply	other threads:[~2026-05-03 13:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260503134814.473307-1-ekffu200098@gmail.com \
    --to=ekffu200098@gmail.com \
    --cc=gustavoars@kernel.org \
    --cc=kees@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox