]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Address all codespell (flagged) typos
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 16 Aug 2024 13:28:11 +0000 (14:28 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 16 Aug 2024 22:05:43 +0000 (17:05 -0500)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/76
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
NEWS
libkmod/libkmod-module.c
libkmod/libkmod.c
tools/depmod.c

diff --git a/NEWS b/NEWS
index 01dff548f6a0216825d3cd6bf225e8f9dc444ca5..09a74cc466ae011d507890788867b05ce9b8a7a9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -91,7 +91,7 @@ kmod 32
          to update the mapping
 
        - Teach kmod to load modprobe.d/depmod.d configuration from ${prefix}/lib
-         and allow it to be overriden during build with --with-distconfdir=DIR
+         and allow it to be overridden during build with --with-distconfdir=DIR
 
        - Make kernel modules directory configurable. This allows distro to
          make kmod use only files from /usr regardless of having a compat
@@ -147,7 +147,7 @@ kmod 31
        - Make modprobe fallback to syslog when stderr is not available, as was
          documented in the man page, but not implemented
 
-       - Better explaing `modprobe -r` and how it differentiates from rmmod
+       - Better explaining `modprobe -r` and how it differentiates from rmmod
 
        - depmod learned a `-o <dir>` option to allow using a separate output
          directory. With this, it's possible to split the output files from
@@ -200,7 +200,7 @@ kmod 30
          module name, without considering the aliases. Other than that search
          order is similar to kmod_module_new_from_lookup().
 
-       - modinfo learned the --modname option to explicitely show information
+       - modinfo learned the --modname option to explicitly show information
          about the module, even if there is an alias with the same name. This
          allows showing information about e.g. kernel/lib/crc32.ko, even if
          kernel also exports a crc32 alias in modules.alias:
@@ -225,7 +225,7 @@ kmod 30
          The wait behavior provided by the kernel when not passing O_NONBLOCK
          to delete_module() was removed in v3.13 due to not be used and the
          consequences of having to support it in the kernel. However there may
-         be some users, particularly on testsuites for individual susbsystems, that
+         be some users, particularly on testsuites for individual subsystems, that
          would want that. So provide a userspace implementation inside modprobe for
          such users. "rmmod" doesn't have a --wait as it remains a bare minimal over
          the API provided by the kernel. In future the --wait behavior can be added
@@ -415,7 +415,7 @@ kmod 26
                  sig_key:        51:C4:0C:6D:7E:A5:6C:D8:8F:B4:3A:DF:91:78:4F:18:BC:D5:E4:C5
                  sig_hashalgo:   sha256
 
-         If kmod is not linked to openssl we just start printing "unknonwn" in the
+         If kmod is not linked to openssl we just start printing "unknown" in the
          sig_hashalgo field rather than the bogus value.
 
 
@@ -493,7 +493,7 @@ kmod 22
 =======
 
 - Tools:
-       - Change defaul log level for tools to WARNING rather than ERROR and update
+       - Change default log level for tools to WARNING rather than ERROR and update
          some log levels for current messages
 
        - depmod doesn't fallback to uname if a bad version is passed in the command
@@ -958,7 +958,7 @@ matched more than one module.
   The only missing things are the options '--showconfig' and '-t / -l'. These
   last ones have been deprecated long ago and they will be removed from
   modprobe. A lot of effort has been put on kmod-modprobe to ensure it
-  maintains compabitility with modprobe.
+  maintains compatibility with modprobe.
 
 - linux-modules@vger.kernel.org became the official mailing list for kmod
 
index c9ec85c8ebfb603fa9689830c45f153a0d420e87..c23159fbdcc580d0001120536f66d79d3ac94464 100644 (file)
@@ -857,7 +857,7 @@ static int do_finit_module(struct kmod_module *mod, unsigned int flags,
        /*
         * When module is not compressed or its compression type matches the
         * one in use by the kernel, there is no need to read the file
-        * in userspace. Otherwise, re-use ENOSYS to trigger the same fallback
+        * in userspace. Otherwise, reuse ENOSYS to trigger the same fallback
         * as when finit_module() is not supported.
         */
        compression = kmod_file_get_compression(mod->file);
index 79537165acb532342563609a4566b01f8f376687..0478093f4ef097bda4232442bf9100d1afa0df37 100644 (file)
@@ -457,7 +457,7 @@ static int kmod_lookup_alias_from_alias_bin(struct kmod_ctx *ctx,
        struct index_value *realnames, *realname;
 
        if (ctx->indexes[index_number] != NULL) {
-               DBG(ctx, "use mmaped index '%s' for name=%s\n",
+               DBG(ctx, "use mmapped index '%s' for name=%s\n",
                        index_files[index_number].fn, name);
                realnames = index_mm_searchwild(ctx->indexes[index_number],
                                                                        name);
@@ -523,7 +523,7 @@ static char *lookup_builtin_file(struct kmod_ctx *ctx, const char *name)
        char *line;
 
        if (ctx->indexes[KMOD_INDEX_MODULES_BUILTIN]) {
-               DBG(ctx, "use mmaped index '%s' modname=%s\n",
+               DBG(ctx, "use mmapped index '%s' modname=%s\n",
                                index_files[KMOD_INDEX_MODULES_BUILTIN].fn,
                                name);
                line = index_mm_search(ctx->indexes[KMOD_INDEX_MODULES_BUILTIN],
@@ -618,7 +618,7 @@ char *kmod_search_moddep(struct kmod_ctx *ctx, const char *name)
        char *line;
 
        if (ctx->indexes[KMOD_INDEX_MODULES_DEP]) {
-               DBG(ctx, "use mmaped index '%s' modname=%s\n",
+               DBG(ctx, "use mmapped index '%s' modname=%s\n",
                                index_files[KMOD_INDEX_MODULES_DEP].fn, name);
                return index_mm_search(ctx->indexes[KMOD_INDEX_MODULES_DEP],
                                                                        name);
@@ -874,7 +874,7 @@ KMOD_EXPORT int kmod_validate_resources(struct kmod_ctx *ctx)
  *
  * If user will do more than one or two lookups, insertions, deletions, most
  * likely it's good to call this function first. Particularly in a daemon like
- * udev that on bootup issues hundreds of calls to lookup the index, calling
+ * udev that on boot issues hundreds of calls to lookup the index, calling
  * this function will speedup the searches.
  *
  * Returns: 0 on success or < 0 otherwise.
@@ -977,7 +977,7 @@ KMOD_EXPORT int kmod_dump_index(struct kmod_ctx *ctx, enum kmod_index type,
                return -ENOENT;
 
        if (ctx->indexes[type] != NULL) {
-               DBG(ctx, "use mmaped index '%s'\n", index_files[type].fn);
+               DBG(ctx, "use mmapped index '%s'\n", index_files[type].fn);
                index_mm_dump(ctx->indexes[type], fd,
                                                index_files[type].prefix);
        } else {
index dd18f9cab16d8d29529335fe0ed997d7802718cd..f2f3c7c17b94e50b87ea0d0f9f4e0f74e85ad4d6 100644 (file)
@@ -2865,7 +2865,7 @@ static int depfile_up_to_date_dir(DIR *d, time_t mtime, size_t baselen, char *pa
        return err;
 }
 
-/* uptodate: 1, outdated: 0, errors < 0 */
+/* up-to-date: 1, outdated: 0, errors < 0 */
 static int depfile_up_to_date(const char *dirname)
 {
        char path[PATH_MAX + 1];