From: Emil Velikov Date: Fri, 16 Aug 2024 13:28:11 +0000 (+0100) Subject: Address all codespell (flagged) typos X-Git-Tag: v34~507 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcc367f990c74b57c77009d6846b0dfd1aef7494;p=thirdparty%2Fkmod.git Address all codespell (flagged) typos Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/76 Signed-off-by: Lucas De Marchi --- diff --git a/NEWS b/NEWS index 01dff548..09a74cc4 100644 --- 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 ` 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 diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index c9ec85c8..c23159fb 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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); diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 79537165..0478093f 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -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 { diff --git a/tools/depmod.c b/tools/depmod.c index dd18f9ca..f2f3c7c1 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -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];