Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix common misspellings from codespell project #258

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/cxl/cxl-reserve-dpa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ include::bus-option.txt[]
-t::
--type::
Select the partition for the allocation. CXL devices implement a
partition that divdes 'ram' and 'pmem' capacity, where 'pmem' capacity
partition that divides 'ram' and 'pmem' capacity, where 'pmem' capacity
consumes the higher DPA capacity above the partition boundary. The type
defaults to 'pmem'. Note that given CXL DPA allocation constraints, once
any 'pmem' allocation is established then all remaining 'ram' capacity
Expand Down
2 changes: 1 addition & 1 deletion Documentation/cxl/lib/libcxl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ use generic port APIs on root objects.
Ports are hierarchical. All but the a root object have another CXL port
as a parent object retrievable via cxl_port_get_parent().

The root port of a hiearchy can be retrieved via any port instance in
The root port of a hierarchy can be retrieved via any port instance in
that hierarchy via cxl_port_get_bus().

The host of a port is the corresponding device name of the PCIe Root
Expand Down
2 changes: 1 addition & 1 deletion Documentation/daxctl/daxctl-create-device.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ DESCRIPTION
-----------

Creates dax device in 'devdax' mode in dynamic regions. The resultant can also
be convereted to the 'system-ram' mode which arranges for the dax range to be
be converted to the 'system-ram' mode which arranges for the dax range to be
hot-plugged into the system as regular memory.

'daxctl create-device' expects that the BIOS or kernel defines a range in the
Expand Down
4 changes: 2 additions & 2 deletions Documentation/ndctl/ndctl-create-namespace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OPTIONS
-m::
--mode=::
- "raw": expose the namespace capacity directly with
limitations. A raw pmem namepace namespace does not support
limitations. A raw pmem namespace does not support
sector atomicity (see "sector" mode below). A raw pmem
namespace may have limited to no dax support depending the
kernel. In other words operations like direct-I/O targeting a
Expand Down Expand Up @@ -95,7 +95,7 @@ OPTIONS
suffixes "k" or "K" for KiB, "m" or "M" for MiB, "g" or "G" for
GiB and "t" or "T" for TiB.

For pmem namepsaces the size must be a multiple of the
For pmem namespaces the size must be a multiple of the
interleave-width and the namespace alignment (see
below).

Expand Down
2 changes: 1 addition & 1 deletion ccan/list/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ static inline void list_prepend_list_(struct list_head *to,
* @off: offset(relative to @i) at which list node data resides.
*
* This is a low-level wrapper to iterate @i over the entire list, used to
* implement all oher, more high-level, for-each constructs. It's a for loop,
* implement all other, more high-level, for-each constructs. It's a for loop,
* so you can break and continue as normal.
*
* WARNING! Being the low-level macro that it is, this wrapper doesn't know
Expand Down
2 changes: 1 addition & 1 deletion cxl/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int bus_action(int argc, const char **argv, struct cxl_ctx *ctx,
if (sscanf(argv[i], "%lu", &id) == 1)
continue;

log_err(&bl, "'%s' is not a valid bus identifer\n", argv[i]);
log_err(&bl, "'%s' is not a valid bus identifier\n", argv[i]);
err++;
}

Expand Down
2 changes: 1 addition & 1 deletion cxl/lib/libcxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ static void bus_invalidate(struct cxl_bus *bus)
struct cxl_memdev *memdev;

/*
* Something happend to cause the state of all ports to be
* Something happened to cause the state of all ports to be
* indeterminate, delete them all and start over.
*/
cxl_memdev_foreach(ctx, memdev)
Expand Down
2 changes: 1 addition & 1 deletion cxl/memdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ param_size_to_volatile_size(const char *devname, enum cxl_setpart_type type,
}

/*
* Return the volatile_size to use in the CXL set paritition
* Return the volatile_size to use in the CXL set partition
* command, or ULLONG_MAX if unable to validate the partition
* request.
*/
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ keyutils = cc.find_library('keyutils', required : get_option('keyutils'))

# iniparser lacks pkgconfig and its header files are either at '/usr/include' or '/usr/include/iniparser'
# Use the path provided by user via meson configure -Diniparserdir=<somepath>
# if thats not provided then try searching for 'iniparser.h' in default system include path
# if that's not provided then try searching for 'iniparser.h' in default system include path
# and if that not found then as a last resort try looking at '/usr/include/iniparser'
iniparser_headers = ['iniparser.h', 'dictionary.h']

Expand Down
2 changes: 1 addition & 1 deletion ndctl/dimm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ static int action_sanitize_dimm(struct ndctl_dimm *dimm,
if (!param.crypto_erase && !param.overwrite) {
param.crypto_erase = true;
if (param.verbose)
fprintf(stderr, "No santize method passed in, default to crypto-erase\n");
fprintf(stderr, "No sanitize method passed in, default to crypto-erase\n");
}

if (param.crypto_erase) {
Expand Down
4 changes: 2 additions & 2 deletions ndctl/lib/ars.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static bool __validate_ars_cap(struct ndctl_cmd *ars_cap)
({ \
bool __valid = __validate_ars_cap(ars_cap); \
if (!__valid) \
dbg(ctx, "expected sucessfully completed ars_cap command\n"); \
dbg(ctx, "expected successfully completed ars_cap command\n"); \
__valid; \
})

Expand Down Expand Up @@ -224,7 +224,7 @@ static bool __validate_ars_stat(struct ndctl_cmd *ars_stat)
({ \
bool __valid = __validate_ars_stat(ars_stat); \
if (!__valid) \
dbg(ctx, "expected sucessfully completed ars_stat command\n"); \
dbg(ctx, "expected successfully completed ars_stat command\n"); \
__valid; \
})

Expand Down
8 changes: 4 additions & 4 deletions ndctl/lib/libndctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ NDCTL_EXPORT size_t ndctl_sizeof_namespace_index(void)
}

/**
* ndctl_min_namespace_size - minimum namespace size that btt suports
* ndctl_min_namespace_size - minimum namespace size that btt supports
*/
NDCTL_EXPORT size_t ndctl_min_namespace_size(void)
{
Expand Down Expand Up @@ -3183,7 +3183,7 @@ NDCTL_EXPORT struct ndctl_cmd *ndctl_dimm_cmd_new_cfg_read(struct ndctl_cmd *cfg

if (cfg_size->type != ND_CMD_GET_CONFIG_SIZE
|| cfg_size->status != 0) {
dbg(ctx, "expected sucessfully completed cfg_size command\n");
dbg(ctx, "expected successfully completed cfg_size command\n");
return NULL;
}

Expand Down Expand Up @@ -3274,7 +3274,7 @@ NDCTL_EXPORT struct ndctl_cmd *ndctl_dimm_cmd_new_cfg_write(struct ndctl_cmd *cf
/* enforce rmw */
if (cfg_read->type != ND_CMD_GET_CONFIG_DATA
|| cfg_read->status != 0) {
dbg(ctx, "expected sucessfully completed cfg_read command\n");
dbg(ctx, "expected successfully completed cfg_read command\n");
return NULL;
}

Expand Down Expand Up @@ -4693,7 +4693,7 @@ NDCTL_EXPORT int ndctl_namespace_disable_safe(struct ndctl_namespace *ndns)
* Yes, TOCTOU hole, but if you're racing namespace
* creation you have other problems, and there's nothing
* stopping the !bdev case from racing to mount an fs or
* re-enabling the namepace.
* re-enabling the namespace.
*/
dbg(ctx, "%s: %s failed exclusive open: %s\n",
devname, bdev, strerror(errno));
Expand Down
8 changes: 4 additions & 4 deletions ndctl/lib/papr_pdsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*
* PDSM Header:
* This is papr-scm specific header that precedes the payload. This is defined
* as nd_cmd_pdsm_pkg. Following fields aare available in this header:
* as nd_cmd_pdsm_pkg. Following fields are available in this header:
*
* 'cmd_status' : (Out) Errors if any encountered while servicing PDSM.
* 'reserved' : Not used, reserved for future and should be set to 0.
Expand Down Expand Up @@ -83,11 +83,11 @@
* Various flags indicate the health status of the dimm.
*
* extension_flags : Any extension fields present in the struct.
* dimm_unarmed : Dimm not armed. So contents wont persist.
* dimm_unarmed : Dimm not armed. So contents won't persist.
* dimm_bad_shutdown : Previous shutdown did not persist contents.
* dimm_bad_restore : Contents from previous shutdown werent restored.
* dimm_bad_restore : Contents from previous shutdown weren't restored.
* dimm_scrubbed : Contents of the dimm have been scrubbed.
* dimm_locked : Contents of the dimm cant be modified until CEC reboot
* dimm_locked : Contents of the dimm can't be modified until CEC reboot
* dimm_encrypted : Contents of dimm are encrypted.
* dimm_health : Dimm health indicator. One of PAPR_PDSM_DIMM_XXXX
* dimm_fuel_gauge : Life remaining of DIMM as a percentage from 0-100
Expand Down
4 changes: 2 additions & 2 deletions ndctl/libndctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ typedef unsigned char uuid_t[16];
*
* Notes:
* 1/ The object ids are not guaranteed to be stable from boot to boot
* 2/ While regions and busses are numbered in sequential/bus-discovery
* 2/ While regions and buses are numbered in sequential/bus-discovery
* order, the resulting block devices may appear to have random ids.
* Use static attributes of the devices/device-path to generate a
* persistent name.
Expand Down Expand Up @@ -258,7 +258,7 @@ int ndctl_cmd_ars_stat_get_flag_overflow(struct ndctl_cmd *ars_stat);

/*
* the ndctl.h definition of these are deprecated, libndctl.h is the
* authoritative defintion.
* authoritative definition.
*/
#define ND_SMART_HEALTH_VALID (1 << 0)
#define ND_SMART_SPARES_VALID (1 << 1)
Expand Down
6 changes: 3 additions & 3 deletions scripts/daxctl-qemu-hmat-setup
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cat <<EOF > hmat.dsl
Asl Compiler Revision : 20170929
Reserved : 00000000

Structure Type : 0000 [Memory Subystem Address Range]
Structure Type : 0000 [Memory Subsystem Address Range]
Reserved : 0000
Length : 00000028
Flags (decoded below) : 0003
Expand All @@ -42,7 +42,7 @@ Processor Proximity Domain Valid : 1
Physical Address Range Base : 0000000000000000
Physical Address Range Size : 00000000000A0000

Structure Type : 0000 [Memory Subystem Address Range]
Structure Type : 0000 [Memory Subsystem Address Range]
Reserved : 0000
Length : 00000028
Flags (decoded below) : 0003
Expand All @@ -61,7 +61,7 @@ for i in $(seq 1 $((TARGETS - 1))); do
BASE=$(printf "%016x" $((0x8000000 * i)))
cat <<EOF >> hmat.dsl

Structure Type : 0000 [Memory Subystem Address Range]
Structure Type : 0000 [Memory Subsystem Address Range]
Reserved : 0000
Length : 00000028
Flags (decoded below) : 0003
Expand Down
4 changes: 2 additions & 2 deletions test/daxctl-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ daxctl_test_adjust()
}

# Test 0:
# Sucessfully zero out the region device and allocate the whole space again.
# Successfully zero out the region device and allocate the whole space again.
daxctl_test0()
{
clear_dev
test_pass
}

# Test 1:
# Sucessfully creates and destroys a device with the whole available space
# Successfully creates and destroys a device with the whole available space
daxctl_test1()
{
local daxdev
Expand Down
4 changes: 2 additions & 2 deletions test/daxctl-devices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ daxctl_test()
if ! "$NDCTL" disable-namespace "$testdev"; then
echo "disable-namespace failed as expected"
else
echo "disable-namespace succeded, expected failure"
echo "disable-namespace succeeded, expected failure"
echo "reboot required to recover from this state"
return 1
fi
Expand All @@ -127,7 +127,7 @@ daxctl_test()
if ! "$DAXCTL" reconfigure-device -N -m system-ram "$daxdev"; then
echo "reconfigure failed as expected"
else
echo "reconfigure succeded, expected failure"
echo "reconfigure succeeded, expected failure"
restore_online_policy
return 1
fi
Expand Down
2 changes: 1 addition & 1 deletion test/libndctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ static int check_namespaces(struct ndctl_region *region,
* On the second time through this loop we skip
* establishing btt|pfn since
* check_{btt|pfn}_autodetect() destroyed the
* inital instance.
* initial instance.
*/
if (mode == BTT) {
btt_s = namespace->do_configure > 0
Expand Down
2 changes: 1 addition & 1 deletion test/security.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ echo "Test 5, freeze security"
test_5_security_freeze

# Load-keys is independent of actual nvdimm security and is part of key
# mangement testing.
# management testing.
echo "Test 6, test load-keys"
test_6_load_keys

Expand Down
6 changes: 3 additions & 3 deletions util/parse-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);
*
* `flags`::
* mask of parse_opt_option_flags.
* PARSE_OPT_OPTARG: says that the argument is optionnal (not for BOOLEANs)
* PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs)
* PARSE_OPT_NOARG: says that this option takes no argument, for CALLBACKs
* PARSE_OPT_NONEG: says that this option cannot be negated
* PARSE_OPT_HIDDEN this option is skipped in the default usage, showed in
Expand Down Expand Up @@ -141,7 +141,7 @@ struct option {
.flags = PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NOARG}

/* parse_options() will filter out the processed options and leave the
* non-option argments in argv[].
* non-option arguments in argv[].
* Returns the number of arguments left in argv[].
*/
extern int parse_options(int argc, const char **argv,
Expand All @@ -160,7 +160,7 @@ extern int parse_options_subcommand(int argc, const char **argv,
extern NORETURN void usage_with_options(const char * const *usagestr,
const struct option *options);

/*----- incremantal advanced APIs -----*/
/*----- incremental advanced APIs -----*/

enum {
PARSE_OPT_HELP = -1,
Expand Down
2 changes: 1 addition & 1 deletion util/strbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* build complex strings/buffers whose final size isn't easily known.
*
* It is NOT legal to copy the ->buf pointer away.
* `strbuf_detach' is the operation that detachs a buffer from its shell
* `strbuf_detach' is the operation that detaches a buffer from its shell
* while keeping the shell valid wrt its invariants.
*
* 2. the ->buf member is a byte array that has at least ->len + 1 bytes
Expand Down