]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Fix typos
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 13 Aug 2024 17:20:12 +0000 (19:20 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 16 Aug 2024 04:06:21 +0000 (23:06 -0500)
Typos found with codespell.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c
libkmod/libkmod-index.c
libkmod/libkmod-module.c
man/depmod.d.5.scd
man/modprobe.d.5.scd
shared/util.h
testsuite/test-blacklist.c
testsuite/testsuite.c
tools/depmod.c

index 06a9876660449695b10fbac1808a8995ebfdd55e..9f6ad941eb982a7be110de4f02cd5d3e1669984f 100644 (file)
@@ -749,7 +749,7 @@ static uint64_t kmod_elf_resolve_crc(const struct kmod_elf *elf, uint64_t crc, u
 
        err = elf_get_section_info(elf, shndx, &off, &size, &nameoff);
        if (err < 0) {
-               ELFDBG("Cound not find section index %"PRIu16" for crc", shndx);
+               ELFDBG("Could not find section index %"PRIu16" for crc", shndx);
                return (uint64_t)-1;
        }
 
index b7f8bd37a0ddd5bbfcf7e63ffd0751d25f988866..5fd61379e4521f8e8e2759b86ff1bc2efc3e298a 100644 (file)
  * We still use arrays of child pointers indexed by a single character;
  * the remaining characters of the label are stored as a "prefix" in the child.
  *
- * The paper describing the original Patrica trie works on individiual bits -
+ * The paper describing the original Patrica trie works on individual bits -
  * each node has a maximum of two children, which increases space efficiency.
  * However for this application it is simpler to use the ASCII character set.
  * Since the index file is read-only, it can be compressed by omitting null
index c095e634892f0f8352d34491cba04c3e00a1e7c7..c9ec85c8ebfb603fa9689830c45f153a0d420e87 100644 (file)
@@ -585,7 +585,7 @@ KMOD_EXPORT int kmod_module_new_from_lookup(struct kmod_ctx *ctx,
  *
  * Lookup by module name, without considering possible aliases. This is similar
  * to kmod_module_new_from_lookup(), but don't consider as source indexes and
- * configurations that work with aliases. When succesful, this always resolves
+ * configurations that work with aliases. When successful, this always resolves
  * to one and only one module.
  *
  * The search order is: 1. module names in modules.dep index;
@@ -1352,7 +1352,7 @@ KMOD_EXPORT int kmod_module_probe_insert_module(struct kmod_module *mod,
        }
 
        /*
-        * Ugly assignement + check. We need to check if we were told to check
+        * Ugly assignment + check. We need to check if we were told to check
         * blacklist and also return the reason why we failed.
         * KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY will take effect only if the
         * module is an alias, so we also need to check it
index ec1b0322c34b6ad7e05e3c924f268adcf559f256..b94d1987615b772f784c5745f618211bd45064f7 100644 (file)
@@ -37,7 +37,7 @@ See the COMMANDS section below for more.
 
 # CONFIGURATION DIRECTORIES AND PRECEDENCE
 
-Configuration files are read from directories in listed in SYNOPSYS in that
+Configuration files are read from directories in listed in SYNOPSIS in that
 order of precedence. Once a file of a given filename is loaded, any file of the
 same name in subsequent directories is ignored.
 
index e6e9c515270979c4167a057afa977dca57734307..4807506633e2317ba7ddbce79a82acfb9e54cd73 100644 (file)
@@ -39,7 +39,7 @@ See the COMMANDS section below for more.
 
 # CONFIGURATION DIRECTORIES AND PRECEDENCE
 
-Configuration files are read from directories in listed in SYNOPSYS in that
+Configuration files are read from directories in listed in SYNOPSIS in that
 order of precedence. Once a file of a given filename is loaded, any file of the
 same name in subsequent directories is ignored.
 
index 2a377dd649ba2201f7fc62d569d6adb7505a9f4d..f479b94fead66f5068049a506e53d02fd96cd24a 100644 (file)
@@ -59,7 +59,7 @@ unsigned long long get_backoff_delta_msec(unsigned long long t0,
                                          unsigned long long *delta);
 
 
-/* endianess and alignments                                                 */
+/* endianness and alignments                                                */
 /* ************************************************************************ */
 #define get_unaligned(ptr)                     \
 ({                                             \
index 64dc58e0b95c90769bddf03cb551407fa5705097..3fb6d3b1b9096cb1f2755c9b4139cbbde68174d4 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <libkmod/libkmod.h>
 
-/* good luck bulding a kmod_list outside of the library... makes this blacklist
+/* good luck building a kmod_list outside of the library... makes this blacklist
  * function rather pointless */
 #include <libkmod/libkmod-internal.h>
 
index a567839f512c7f174a868ab0233c0393d5b44ebe..c1a74a751c9d2eedae07e3d87a6b39d209980073 100644 (file)
@@ -239,7 +239,7 @@ static inline int test_run_child(const struct test *t, int fdout[2],
                }
 
                if (stat_mstamp(&rootfsst) > stat_mstamp(&stampst)) {
-                       ERR("rootfs %s is dirty, please run 'make rootfs' before runnning this test\n",
+                       ERR("rootfs %s is dirty, please run 'make rootfs' before running this test\n",
                                                                rootfs);
                        exit(EXIT_FAILURE);
                }
index 8b0a428f2982463ae72daafa80bae70fd6465fbc..bd9df207cd0adf2eb55e73a822330cc2fb36adbb 100644 (file)
@@ -1384,7 +1384,7 @@ static int depmod_modules_search(struct depmod *depmod)
        for (ext = depmod->cfg->externals; ext != NULL; ext = ext->next) {
                err = depmod_modules_search_path(depmod, ext->path);
                if (err < 0 && err == -ENOENT)
-                       /* ignore external dir absense */
+                       /* ignore external dir absence */
                        continue;
        }