[PATCH 3/5] lib: fix typos in comments
From: Hemanth Selam
Date: Fri Sep 04 2026 - 07:00:16 EST
Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt. Only touches comments, no code
changes.
Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@xxxxxxxxx>
---
lib/flex_proportions.c | 2 +-
lib/rcuref.c | 4 ++--
lib/textsearch.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/flex_proportions.c b/lib/flex_proportions.c
index 012d5614efb9..21d074dcec2e 100644
--- a/lib/flex_proportions.c
+++ b/lib/flex_proportions.c
@@ -54,7 +54,7 @@ void fprop_global_destroy(struct fprop_global *p)
}
/*
- * Declare @periods new periods. It is upto the caller to make sure period
+ * Declare @periods new periods. It is up to the caller to make sure period
* transitions cannot happen in parallel.
*
* The function returns true if the proportions are still defined and false
diff --git a/lib/rcuref.c b/lib/rcuref.c
index 5bd726b71e39..55f7796703c7 100644
--- a/lib/rcuref.c
+++ b/lib/rcuref.c
@@ -4,7 +4,7 @@
* rcuref - A scalable reference count implementation for RCU managed objects
*
* rcuref is provided to replace open coded reference count implementations
- * based on atomic_t. It protects explicitely RCU managed objects which can
+ * based on atomic_t. It protects explicitly RCU managed objects which can
* be visible even after the last reference has been dropped and the object
* is heading towards destruction.
*
@@ -147,7 +147,7 @@
* All reference count increment/decrement operations are unconditional and
* only verified after the fact. This optimizes for the good case and takes
* the occasional race vs. a dead or already saturated refcount into
- * account. The saturation and dead zones are large enough to accomodate
+ * account. The saturation and dead zones are large enough to accommodate
* for that.
*
* Memory ordering
diff --git a/lib/textsearch.c b/lib/textsearch.c
index f68dea8806be..3ac47026d6ab 100644
--- a/lib/textsearch.c
+++ b/lib/textsearch.c
@@ -60,7 +60,7 @@
* to perform case insensitive matching. But it might slow down
* performance of algorithm, so you should use it at own your risk.
* The returned configuration may then be used for an arbitrary
- * amount of times and even in parallel as long as a separate struct
+ * number of times and even in parallel as long as a separate struct
* ts_state variable is provided to every instance.
*
* The actual search is performed by either calling
--
2.48.1