diff mbox series

scripts: modpost.c: Fix a few typos

Message ID 20210326055219.6448-1-unixbhaskar@gmail.com (mailing list archive)
State New
Headers show
Series scripts: modpost.c: Fix a few typos | expand

Commit Message

Bhaskar Chowdhury March 26, 2021, 5:52 a.m. UTC
s/agorithm/algorithm/
s/criterias/criteria/
s/targetting/targeting/   ....two different places.

Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
 scripts/mod/modpost.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--
2.26.2

Comments

Masahiro Yamada April 7, 2021, 12:10 p.m. UTC | #1
On Fri, Mar 26, 2021 at 2:54 PM Bhaskar Chowdhury <unixbhaskar@gmail.com> wrote:
>
>
> s/agorithm/algorithm/
> s/criterias/criteria/
> s/targetting/targeting/   ....two different places.
>
> Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
> ---

Applied to linux-kbuild. Thanks.



>  scripts/mod/modpost.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
> index 24725e50c7b4..9b971ec9e58d 100644
> --- a/scripts/mod/modpost.c
> +++ b/scripts/mod/modpost.c
> @@ -202,7 +202,7 @@ struct symbol {
>
>  static struct symbol *symbolhash[SYMBOL_HASH_SIZE];
>
> -/* This is based on the hash agorithm from gdbm, via tdb */
> +/* This is based on the hash algorithm from gdbm, via tdb */
>  static inline unsigned int tdb_hash(const char *name)
>  {
>         unsigned value; /* Used to compute the hash value.  */
> @@ -985,7 +985,7 @@ enum mismatch {
>  };
>
>  /**
> - * Describe how to match sections on different criterias:
> + * Describe how to match sections on different criteria:
>   *
>   * @fromsec: Array of sections to be matched.
>   *
> @@ -993,12 +993,12 @@ enum mismatch {
>   * this array is forbidden (black-list).  Can be empty.
>   *
>   * @good_tosec: Relocations applied to a section in @fromsec must be
> - * targetting sections in this array (white-list).  Can be empty.
> + * targeting sections in this array (white-list).  Can be empty.
>   *
>   * @mismatch: Type of mismatch.
>   *
>   * @symbol_white_list: Do not match a relocation to a symbol in this list
> - * even if it is targetting a section in @bad_to_sec.
> + * even if it is targeting a section in @bad_to_sec.
>   *
>   * @handler: Specific handler to call when a match is found.  If NULL,
>   * default_mismatch_handler() will be called.
> --
> 2.26.2
>
diff mbox series

Patch

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 24725e50c7b4..9b971ec9e58d 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -202,7 +202,7 @@  struct symbol {

 static struct symbol *symbolhash[SYMBOL_HASH_SIZE];

-/* This is based on the hash agorithm from gdbm, via tdb */
+/* This is based on the hash algorithm from gdbm, via tdb */
 static inline unsigned int tdb_hash(const char *name)
 {
 	unsigned value;	/* Used to compute the hash value.  */
@@ -985,7 +985,7 @@  enum mismatch {
 };

 /**
- * Describe how to match sections on different criterias:
+ * Describe how to match sections on different criteria:
  *
  * @fromsec: Array of sections to be matched.
  *
@@ -993,12 +993,12 @@  enum mismatch {
  * this array is forbidden (black-list).  Can be empty.
  *
  * @good_tosec: Relocations applied to a section in @fromsec must be
- * targetting sections in this array (white-list).  Can be empty.
+ * targeting sections in this array (white-list).  Can be empty.
  *
  * @mismatch: Type of mismatch.
  *
  * @symbol_white_list: Do not match a relocation to a symbol in this list
- * even if it is targetting a section in @bad_to_sec.
+ * even if it is targeting a section in @bad_to_sec.
  *
  * @handler: Specific handler to call when a match is found.  If NULL,
  * default_mismatch_handler() will be called.