diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-02-27 17:28:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-27 21:43:46 -0500 |
commit | 03440c4e5e2f167764997a7e0f2dbb279d8078e6 (patch) | |
tree | 1b9f757b8e2bd8ad105246aea9dd88d27a5edb8c | |
parent | 9332ef9dbd172d4ab0a0141df7cb21c696a5ce96 (diff) |
scripts/spelling.txt: add "an union" pattern and fix typo instances
Fix typos and add the following to the scripts/spelling.txt:
an union||a union
Link: http://lkml.kernel.org/r/1481573103-11329-5-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | Documentation/media/uapi/dvb/dvb-frontend-parameters.rst | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/desc_defs.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/dbconvert.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/nspredef.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsxfeval.c | 4 | ||||
-rw-r--r-- | drivers/staging/lustre/lustre/include/lustre/lustre_idl.h | 2 | ||||
-rw-r--r-- | include/linux/dcache.h | 4 | ||||
-rw-r--r-- | include/media/v4l2-ctrls.h | 4 | ||||
-rw-r--r-- | include/xen/interface/grant_table.h | 2 | ||||
-rw-r--r-- | scripts/spelling.txt | 1 | ||||
-rw-r--r-- | sound/pci/ice1712/wm8766.c | 2 | ||||
-rw-r--r-- | sound/pci/ice1712/wm8776.c | 2 | ||||
-rw-r--r-- | tools/perf/util/probe-finder.c | 4 | ||||
-rw-r--r-- | tools/perf/util/sort.h | 2 |
14 files changed, 19 insertions, 18 deletions
diff --git a/Documentation/media/uapi/dvb/dvb-frontend-parameters.rst b/Documentation/media/uapi/dvb/dvb-frontend-parameters.rst index bf31411fc9df..899fd5c3545e 100644 --- a/Documentation/media/uapi/dvb/dvb-frontend-parameters.rst +++ b/Documentation/media/uapi/dvb/dvb-frontend-parameters.rst | |||
@@ -9,7 +9,7 @@ frontend parameters | |||
9 | The kind of parameters passed to the frontend device for tuning depend | 9 | The kind of parameters passed to the frontend device for tuning depend |
10 | on the kind of hardware you are using. | 10 | on the kind of hardware you are using. |
11 | 11 | ||
12 | The struct ``dvb_frontend_parameters`` uses an union with specific | 12 | The struct ``dvb_frontend_parameters`` uses a union with specific |
13 | per-system parameters. However, as newer delivery systems required more | 13 | per-system parameters. However, as newer delivery systems required more |
14 | data, the structure size weren't enough to fit, and just extending its | 14 | data, the structure size weren't enough to fit, and just extending its |
15 | size would break the existing applications. So, those parameters were | 15 | size would break the existing applications. So, those parameters were |
@@ -23,7 +23,7 @@ So, newer applications should use | |||
23 | instead, in order to be able to support the newer System Delivery like | 23 | instead, in order to be able to support the newer System Delivery like |
24 | DVB-S2, DVB-T2, DVB-C2, ISDB, etc. | 24 | DVB-S2, DVB-T2, DVB-C2, ISDB, etc. |
25 | 25 | ||
26 | All kinds of parameters are combined as an union in the | 26 | All kinds of parameters are combined as a union in the |
27 | FrontendParameters structure: | 27 | FrontendParameters structure: |
28 | 28 | ||
29 | 29 | ||
diff --git a/arch/x86/include/asm/desc_defs.h b/arch/x86/include/asm/desc_defs.h index eb5deb42484d..49265345d4d2 100644 --- a/arch/x86/include/asm/desc_defs.h +++ b/arch/x86/include/asm/desc_defs.h | |||
@@ -15,7 +15,7 @@ | |||
15 | * FIXME: Accessing the desc_struct through its fields is more elegant, | 15 | * FIXME: Accessing the desc_struct through its fields is more elegant, |
16 | * and should be the one valid thing to do. However, a lot of open code | 16 | * and should be the one valid thing to do. However, a lot of open code |
17 | * still touches the a and b accessors, and doing this allow us to do it | 17 | * still touches the a and b accessors, and doing this allow us to do it |
18 | * incrementally. We keep the signature as a struct, rather than an union, | 18 | * incrementally. We keep the signature as a struct, rather than a union, |
19 | * so we can get rid of it transparently in the future -- glommer | 19 | * so we can get rid of it transparently in the future -- glommer |
20 | */ | 20 | */ |
21 | /* 8 byte segment descriptor */ | 21 | /* 8 byte segment descriptor */ |
diff --git a/drivers/acpi/acpica/dbconvert.c b/drivers/acpi/acpica/dbconvert.c index 251f9477a984..857dbc43a9b1 100644 --- a/drivers/acpi/acpica/dbconvert.c +++ b/drivers/acpi/acpica/dbconvert.c | |||
@@ -242,7 +242,7 @@ acpi_status acpi_db_convert_to_package(char *string, union acpi_object *object) | |||
242 | * | 242 | * |
243 | * RETURN: Status | 243 | * RETURN: Status |
244 | * | 244 | * |
245 | * DESCRIPTION: Convert a typed and tokenized string to an union acpi_object. Typing: | 245 | * DESCRIPTION: Convert a typed and tokenized string to a union acpi_object. Typing: |
246 | * 1) String objects were surrounded by quotes. | 246 | * 1) String objects were surrounded by quotes. |
247 | * 2) Buffer objects were surrounded by parentheses. | 247 | * 2) Buffer objects were surrounded by parentheses. |
248 | * 3) Package objects were surrounded by brackets "[]". | 248 | * 3) Package objects were surrounded by brackets "[]". |
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c index 3dbbecf22087..9d14b509529e 100644 --- a/drivers/acpi/acpica/nspredef.c +++ b/drivers/acpi/acpica/nspredef.c | |||
@@ -323,7 +323,7 @@ acpi_ns_check_reference(struct acpi_evaluate_info *info, | |||
323 | 323 | ||
324 | /* | 324 | /* |
325 | * Check the reference object for the correct reference type (opcode). | 325 | * Check the reference object for the correct reference type (opcode). |
326 | * The only type of reference that can be converted to an union acpi_object is | 326 | * The only type of reference that can be converted to a union acpi_object is |
327 | * a reference to a named object (reference class: NAME) | 327 | * a reference to a named object (reference class: NAME) |
328 | */ | 328 | */ |
329 | if (return_object->reference.class == ACPI_REFCLASS_NAME) { | 329 | if (return_object->reference.class == ACPI_REFCLASS_NAME) { |
diff --git a/drivers/acpi/acpica/nsxfeval.c b/drivers/acpi/acpica/nsxfeval.c index 8e365c0e766b..c944ff5c9c3d 100644 --- a/drivers/acpi/acpica/nsxfeval.c +++ b/drivers/acpi/acpica/nsxfeval.c | |||
@@ -495,9 +495,9 @@ static void acpi_ns_resolve_references(struct acpi_evaluate_info *info) | |||
495 | /* | 495 | /* |
496 | * Two types of references are supported - those created by Index and | 496 | * Two types of references are supported - those created by Index and |
497 | * ref_of operators. A name reference (AML_NAMEPATH_OP) can be converted | 497 | * ref_of operators. A name reference (AML_NAMEPATH_OP) can be converted |
498 | * to an union acpi_object, so it is not dereferenced here. A ddb_handle | 498 | * to a union acpi_object, so it is not dereferenced here. A ddb_handle |
499 | * (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to | 499 | * (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to |
500 | * an union acpi_object. | 500 | * a union acpi_object. |
501 | */ | 501 | */ |
502 | switch (info->return_object->reference.class) { | 502 | switch (info->return_object->reference.class) { |
503 | case ACPI_REFCLASS_INDEX: | 503 | case ACPI_REFCLASS_INDEX: |
diff --git a/drivers/staging/lustre/lustre/include/lustre/lustre_idl.h b/drivers/staging/lustre/lustre/include/lustre/lustre_idl.h index b0eb80d70c23..60b827eeefe2 100644 --- a/drivers/staging/lustre/lustre/include/lustre/lustre_idl.h +++ b/drivers/staging/lustre/lustre/include/lustre/lustre_idl.h | |||
@@ -1704,7 +1704,7 @@ struct ost_lvb { | |||
1704 | * lquota data structures | 1704 | * lquota data structures |
1705 | */ | 1705 | */ |
1706 | 1706 | ||
1707 | /* The lquota_id structure is an union of all the possible identifier types that | 1707 | /* The lquota_id structure is a union of all the possible identifier types that |
1708 | * can be used with quota, this includes: | 1708 | * can be used with quota, this includes: |
1709 | * - 64-bit user ID | 1709 | * - 64-bit user ID |
1710 | * - 64-bit group ID | 1710 | * - 64-bit group ID |
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index c965e4469499..591b6c16f9c1 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
@@ -562,7 +562,7 @@ static inline struct dentry *d_backing_dentry(struct dentry *upper) | |||
562 | * @inode: inode to select the dentry from multiple layers (can be NULL) | 562 | * @inode: inode to select the dentry from multiple layers (can be NULL) |
563 | * @flags: open flags to control copy-up behavior | 563 | * @flags: open flags to control copy-up behavior |
564 | * | 564 | * |
565 | * If dentry is on an union/overlay, then return the underlying, real dentry. | 565 | * If dentry is on a union/overlay, then return the underlying, real dentry. |
566 | * Otherwise return the dentry itself. | 566 | * Otherwise return the dentry itself. |
567 | * | 567 | * |
568 | * See also: Documentation/filesystems/vfs.txt | 568 | * See also: Documentation/filesystems/vfs.txt |
@@ -581,7 +581,7 @@ static inline struct dentry *d_real(struct dentry *dentry, | |||
581 | * d_real_inode - Return the real inode | 581 | * d_real_inode - Return the real inode |
582 | * @dentry: The dentry to query | 582 | * @dentry: The dentry to query |
583 | * | 583 | * |
584 | * If dentry is on an union/overlay, then return the underlying, real inode. | 584 | * If dentry is on a union/overlay, then return the underlying, real inode. |
585 | * Otherwise return d_inode(). | 585 | * Otherwise return d_inode(). |
586 | */ | 586 | */ |
587 | static inline struct inode *d_real_inode(const struct dentry *dentry) | 587 | static inline struct inode *d_real_inode(const struct dentry *dentry) |
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index e1006b391cdc..bee1404391dd 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2-ctrls.h | |||
@@ -174,10 +174,10 @@ typedef void (*v4l2_ctrl_notify_fnc)(struct v4l2_ctrl *ctrl, void *priv); | |||
174 | * not freed when the control is deleted. Should this be needed | 174 | * not freed when the control is deleted. Should this be needed |
175 | * then a new internal bitfield can be added to tell the framework | 175 | * then a new internal bitfield can be added to tell the framework |
176 | * to free this pointer. | 176 | * to free this pointer. |
177 | * @p_cur: The control's current value represented via an union with | 177 | * @p_cur: The control's current value represented via a union with |
178 | * provides a standard way of accessing control types | 178 | * provides a standard way of accessing control types |
179 | * through a pointer. | 179 | * through a pointer. |
180 | * @p_new: The control's new value represented via an union with provides | 180 | * @p_new: The control's new value represented via a union with provides |
181 | * a standard way of accessing control types | 181 | * a standard way of accessing control types |
182 | * through a pointer. | 182 | * through a pointer. |
183 | */ | 183 | */ |
diff --git a/include/xen/interface/grant_table.h b/include/xen/interface/grant_table.h index 56806bc90c2f..7fb7112d667c 100644 --- a/include/xen/interface/grant_table.h +++ b/include/xen/interface/grant_table.h | |||
@@ -181,7 +181,7 @@ struct grant_entry_header { | |||
181 | }; | 181 | }; |
182 | 182 | ||
183 | /* | 183 | /* |
184 | * Version 2 of the grant entry structure, here is an union because three | 184 | * Version 2 of the grant entry structure, here is a union because three |
185 | * different types are suppotted: full_page, sub_page and transitive. | 185 | * different types are suppotted: full_page, sub_page and transitive. |
186 | */ | 186 | */ |
187 | union grant_entry_v2 { | 187 | union grant_entry_v2 { |
diff --git a/scripts/spelling.txt b/scripts/spelling.txt index 13794532c3fa..27991a91de6f 100644 --- a/scripts/spelling.txt +++ b/scripts/spelling.txt | |||
@@ -86,6 +86,7 @@ alue||value | |||
86 | ambigious||ambiguous | 86 | ambigious||ambiguous |
87 | amoung||among | 87 | amoung||among |
88 | amout||amount | 88 | amout||amount |
89 | an union||a union | ||
89 | an user||a user | 90 | an user||a user |
90 | an userspace||a userspace | 91 | an userspace||a userspace |
91 | analysator||analyzer | 92 | analysator||analyzer |
diff --git a/sound/pci/ice1712/wm8766.c b/sound/pci/ice1712/wm8766.c index f7ac8d5e862c..27c03e40c9b1 100644 --- a/sound/pci/ice1712/wm8766.c +++ b/sound/pci/ice1712/wm8766.c | |||
@@ -254,7 +254,7 @@ static int snd_wm8766_ctl_put(struct snd_kcontrol *kcontrol, | |||
254 | int n = kcontrol->private_value; | 254 | int n = kcontrol->private_value; |
255 | u16 val, regval1, regval2; | 255 | u16 val, regval1, regval2; |
256 | 256 | ||
257 | /* this also works for enum because value is an union */ | 257 | /* this also works for enum because value is a union */ |
258 | regval1 = ucontrol->value.integer.value[0]; | 258 | regval1 = ucontrol->value.integer.value[0]; |
259 | regval2 = ucontrol->value.integer.value[1]; | 259 | regval2 = ucontrol->value.integer.value[1]; |
260 | if (wm->ctl[n].flags & WM8766_FLAG_INVERT) { | 260 | if (wm->ctl[n].flags & WM8766_FLAG_INVERT) { |
diff --git a/sound/pci/ice1712/wm8776.c b/sound/pci/ice1712/wm8776.c index ebd2fe4b4a57..553669b103c2 100644 --- a/sound/pci/ice1712/wm8776.c +++ b/sound/pci/ice1712/wm8776.c | |||
@@ -528,7 +528,7 @@ static int snd_wm8776_ctl_put(struct snd_kcontrol *kcontrol, | |||
528 | int n = kcontrol->private_value; | 528 | int n = kcontrol->private_value; |
529 | u16 val, regval1, regval2; | 529 | u16 val, regval1, regval2; |
530 | 530 | ||
531 | /* this also works for enum because value is an union */ | 531 | /* this also works for enum because value is a union */ |
532 | regval1 = ucontrol->value.integer.value[0]; | 532 | regval1 = ucontrol->value.integer.value[0]; |
533 | regval2 = ucontrol->value.integer.value[1]; | 533 | regval2 = ucontrol->value.integer.value[1]; |
534 | if (wm->ctl[n].flags & WM8776_FLAG_INVERT) { | 534 | if (wm->ctl[n].flags & WM8776_FLAG_INVERT) { |
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 0d9d6e0803b8..57cd268d4275 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -464,7 +464,7 @@ static int convert_variable_fields(Dwarf_Die *vr_die, const char *varname, | |||
464 | /* Verify it is a data structure */ | 464 | /* Verify it is a data structure */ |
465 | tag = dwarf_tag(&type); | 465 | tag = dwarf_tag(&type); |
466 | if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { | 466 | if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { |
467 | pr_warning("%s is not a data structure nor an union.\n", | 467 | pr_warning("%s is not a data structure nor a union.\n", |
468 | varname); | 468 | varname); |
469 | return -EINVAL; | 469 | return -EINVAL; |
470 | } | 470 | } |
@@ -479,7 +479,7 @@ static int convert_variable_fields(Dwarf_Die *vr_die, const char *varname, | |||
479 | } else { | 479 | } else { |
480 | /* Verify it is a data structure */ | 480 | /* Verify it is a data structure */ |
481 | if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { | 481 | if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { |
482 | pr_warning("%s is not a data structure nor an union.\n", | 482 | pr_warning("%s is not a data structure nor a union.\n", |
483 | varname); | 483 | varname); |
484 | return -EINVAL; | 484 | return -EINVAL; |
485 | } | 485 | } |
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index 7aff317fc7c4..796c847e2f00 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h | |||
@@ -108,7 +108,7 @@ struct hist_entry { | |||
108 | /* | 108 | /* |
109 | * Since perf diff only supports the stdio output, TUI | 109 | * Since perf diff only supports the stdio output, TUI |
110 | * fields are only accessed from perf report (or perf | 110 | * fields are only accessed from perf report (or perf |
111 | * top). So make it an union to reduce memory usage. | 111 | * top). So make it a union to reduce memory usage. |
112 | */ | 112 | */ |
113 | struct hist_entry_diff diff; | 113 | struct hist_entry_diff diff; |
114 | struct /* for TUI */ { | 114 | struct /* for TUI */ { |