git: 54e111ec0c74 - stable/12 - Fix some common typos in source code comments

Gordon Bergling gbe at FreeBSD.org
Thu Aug 19 07:35:21 UTC 2021


The branch stable/12 has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=54e111ec0c74dc7ae50758aaaa8d34571a3bc3b0

commit 54e111ec0c74dc7ae50758aaaa8d34571a3bc3b0
Author:     Gordon Bergling <gbe at FreeBSD.org>
AuthorDate: 2021-08-14 06:55:58 +0000
Commit:     Gordon Bergling <gbe at FreeBSD.org>
CommitDate: 2021-08-19 07:35:05 +0000

    Fix some common typos in source code comments
    
    - s/struture/structure/
    - s/structre/structure/
    
    (cherry picked from commit 17db4b52fb41aeabeb945c68c1b5edd4db4eac31)
---
 sys/dev/bce/if_bce.c                             | 4 ++--
 sys/dev/drm2/drm_platform.c                      | 2 +-
 sys/dev/isci/scil/intel_ata.h                    | 2 +-
 sys/dev/isci/scil/sci_overview.h                 | 2 +-
 sys/dev/liquidio/base/lio_device.h               | 2 +-
 sys/dev/pms/RefTisa/sallsdk/api/sa.h             | 2 +-
 sys/dev/pms/RefTisa/sallsdk/spc/sallist.h        | 2 +-
 sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c | 2 +-
 sys/dev/pms/freebsd/driver/common/lxcommon.h     | 2 +-
 sys/sys/jail.h                                   | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index 3d5c0742580c..5277e8f59cc6 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -3227,7 +3227,7 @@ bce_init_media(struct bce_softc *sc)
 /****************************************************************************/
 /* Free any DMA memory owned by the driver.                                 */
 /*                                                                          */
-/* Scans through each data structre that requires DMA memory and frees      */
+/* Scans through each data structure that requires DMA memory and frees     */
 /* the memory if allocated.                                                 */
 /*                                                                          */
 /* Returns:                                                                 */
@@ -5657,7 +5657,7 @@ bce_init_tx_chain(struct bce_softc *sc)
 	DBRUN(sc->tx_full_count = 0);
 
 	/*
-	 * The NetXtreme II supports a linked-list structre called
+	 * The NetXtreme II supports a linked-list structure called
 	 * a Buffer Descriptor Chain (or BD chain).  A BD chain
 	 * consists of a series of 1 or more chain pages, each of which
 	 * consists of a fixed number of BD entries.
diff --git a/sys/dev/drm2/drm_platform.c b/sys/dev/drm2/drm_platform.c
index a8972b44f5f1..17f3367719e2 100644
--- a/sys/dev/drm2/drm_platform.c
+++ b/sys/dev/drm2/drm_platform.c
@@ -107,7 +107,7 @@ static struct drm_bus drm_platform_bus = {
 /**
  * Register.
  *
- * \param platdev - Platform device struture
+ * \param platdev - Platform device structure
  * \return zero on success or a negative number on failure.
  *
  * Attempt to gets inter module "drm" information. If we are first
diff --git a/sys/dev/isci/scil/intel_ata.h b/sys/dev/isci/scil/intel_ata.h
index 86f584b35d61..e213d0efcb06 100644
--- a/sys/dev/isci/scil/intel_ata.h
+++ b/sys/dev/isci/scil/intel_ata.h
@@ -244,7 +244,7 @@
  *
  * The following constants define bit masks utilized to determine if a
  * feature is supported/enabled or if a bit is simply set inside of the
- * IDENTIFY DEVICE data structre.
+ * IDENTIFY DEVICE data structure.
  */
 /*@{*/
 #define ATA_IDENTIFY_REMOVABLE_MEDIA_ENABLE              0x0080
diff --git a/sys/dev/isci/scil/sci_overview.h b/sys/dev/isci/scil/sci_overview.h
index 3cde341efb1f..cba4f8351fbd 100644
--- a/sys/dev/isci/scil/sci_overview.h
+++ b/sys/dev/isci/scil/sci_overview.h
@@ -216,7 +216,7 @@ associate one object to another.  An SCI object can be made to have an
 association to another SCI object.  Additionally, an SCI object can be
 made to have an association to a non-SCI based object.  For example, an SCI
 Framework library can have it's association set to an operating system
-specific adapter/device driver structre.
+specific adapter/device driver structure.
 
 Simply put, the association that an object has is a handle (i.e. a void pointer)
 to a user structure.  This enables the user of the SCI object to
diff --git a/sys/dev/liquidio/base/lio_device.h b/sys/dev/liquidio/base/lio_device.h
index d5ba3361b2fc..de07f604fd9c 100644
--- a/sys/dev/liquidio/base/lio_device.h
+++ b/sys/dev/liquidio/base/lio_device.h
@@ -799,7 +799,7 @@ void	*lio_get_config_info(struct octeon_device *oct, uint16_t card_type);
 
 /*
  *  Gets the octeon device configuration
- *  @return - pointer to the octeon configuration struture
+ *  @return - pointer to the octeon configuration structure
  */
 struct lio_config	*lio_get_conf(struct octeon_device *oct);
 
diff --git a/sys/dev/pms/RefTisa/sallsdk/api/sa.h b/sys/dev/pms/RefTisa/sallsdk/api/sa.h
index e13db5390f4e..e702dd4fb23a 100644
--- a/sys/dev/pms/RefTisa/sallsdk/api/sa.h
+++ b/sys/dev/pms/RefTisa/sallsdk/api/sa.h
@@ -1660,7 +1660,7 @@ typedef struct agsaContext_s
   void  *sdkData; /**< Pointer-sized value used internally by the LL Layer */
 } agsaContext_t;
 
-/** \brief hold points to global data strutures used by the LL and OS Layers
+/** \brief hold points to global data structures used by the LL and OS Layers
  *
  * The agsaRoot_t data structure is used to hold pointer-sized values for
  * internal use by the LL and OS Layers. It is intended that the
diff --git a/sys/dev/pms/RefTisa/sallsdk/spc/sallist.h b/sys/dev/pms/RefTisa/sallsdk/spc/sallist.h
index 0203a64f6f65..8ed9fb325445 100644
--- a/sys/dev/pms/RefTisa/sallsdk/spc/sallist.h
+++ b/sys/dev/pms/RefTisa/sallsdk/spc/sallist.h
@@ -40,7 +40,7 @@
 /** \brief Structure of Link Data
  *
  *  link data, need to be included at the start (offset 0)
- *  of any strutures that are to be stored in the link list
+ *  of any structures that are to be stored in the link list
  *
  */
 typedef struct _SALINK
diff --git a/sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c b/sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
index 89ac376caaff..eeaac814d1c2 100644
--- a/sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
+++ b/sys/dev/pms/RefTisa/tisa/sassata/common/tdinit.c
@@ -2496,7 +2496,7 @@ tdsaSharedMemCalculate(
 #endif
 
 #ifdef TD_DISCOVER
-  /* adding expander data strutures */
+  /* adding expander data structures */
   tdSharedMem->tdSharedCachedMem1.singleElementLength +=
     sizeof(tdsaExpander_t) * MaxTargets;
 #endif
diff --git a/sys/dev/pms/freebsd/driver/common/lxcommon.h b/sys/dev/pms/freebsd/driver/common/lxcommon.h
index 71ce230c3812..3b12822fc8d1 100644
--- a/sys/dev/pms/freebsd/driver/common/lxcommon.h
+++ b/sys/dev/pms/freebsd/driver/common/lxcommon.h
@@ -614,7 +614,7 @@ bit8 *data; //buffer
 
 /*
 ** link data, need to be included at the start (offset 0) 
-** of any strutures that are to be stored in the link list
+** of any structures that are to be stored in the link list
 */
 typedef struct _LINK_NODE
 {
diff --git a/sys/sys/jail.h b/sys/sys/jail.h
index 8baf784d6b6d..590fb4488262 100644
--- a/sys/sys/jail.h
+++ b/sys/sys/jail.h
@@ -146,7 +146,7 @@ struct prison_racct;
 /*
  * This structure describes a prison.  It is pointed to by all struct
  * ucreds's of the inmates.  pr_ref keeps track of them and is used to
- * delete the struture when the last inmate is dead.
+ * delete the structure when the last inmate is dead.
  *
  * Lock key:
  *   (a) allprison_lock


More information about the dev-commits-src-all mailing list