git: dbb74dd891e5 - stable/13 - Fix some common typos in source code comments
Gordon Bergling
gbe at FreeBSD.org
Tue Aug 31 06:13:32 UTC 2021
The branch stable/13 has been updated by gbe (doc committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=dbb74dd891e55d945cef3b31b5f788a30cbbd820
commit dbb74dd891e55d945cef3b31b5f788a30cbbd820
Author: Gordon Bergling <gbe at FreeBSD.org>
AuthorDate: 2021-08-28 16:57:23 +0000
Commit: Gordon Bergling <gbe at FreeBSD.org>
CommitDate: 2021-08-31 06:13:15 +0000
Fix some common typos in source code comments
- s/priviledged/privileged/
- s/funtion/function/
- s/doens't/doesn't/
- s/sychronization/synchronization/
(cherry picked from commit 5bdf58e196096993758b3e50291db17104025b65)
---
sys/arm/arm/trap-v6.c | 4 ++--
sys/dev/cxgbe/cudbg/fastlz_api.c | 2 +-
sys/dev/mii/lxtphy.c | 2 +-
sys/dev/oce/oce_mbox.c | 2 +-
sys/dev/qlnx/qlnxe/ecore.h | 2 +-
sys/dev/rtsx/rtsx.c | 2 +-
sys/dev/sfxge/sfxge.c | 2 +-
sys/geom/journal/g_journal.c | 2 +-
sys/i386/i386/perfmon.c | 2 +-
usr.bin/tip/tip/tip.h | 2 +-
10 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/sys/arm/arm/trap-v6.c b/sys/arm/arm/trap-v6.c
index cd141376d381..7bd5780af338 100644
--- a/sys/arm/arm/trap-v6.c
+++ b/sys/arm/arm/trap-v6.c
@@ -114,7 +114,7 @@ struct abort {
* for cache operations working on virtual addresses. For now, we will
* consider this abort as fatal. In fact, no cache maintenance on
* not mapped virtual addresses should be called. As cache maintenance
- * operation (except DMB, DSB, and Flush Prefetch Buffer) are priviledged,
+ * operation (except DMB, DSB, and Flush Prefetch Buffer) are privileged,
* the abort is fatal for user mode as well for now. (This is good place to
* note that cache maintenance on virtual address fill TLB.)
* Acces Bit (L1 & L2):
@@ -654,7 +654,7 @@ abort_align(struct trapframe *tf, u_int idx, u_int fsr, u_int far,
* According to manual, FAULT_ICACHE is translation fault during cache
* maintenance operation. In fact, no cache maintenance operation on
* not mapped virtual addresses should be called. As cache maintenance
- * operation (except DMB, DSB, and Flush Prefetch Buffer) are priviledged,
+ * operation (except DMB, DSB, and Flush Prefetch Buffer) are privileged,
* the abort is concider as fatal for now. However, all the matter with
* cache maintenance operation on virtual addresses could be really complex
* and fuzzy in SMP case, so maybe in future standard fault mechanism
diff --git a/sys/dev/cxgbe/cudbg/fastlz_api.c b/sys/dev/cxgbe/cudbg/fastlz_api.c
index a513557ad352..7a8131f6da3e 100644
--- a/sys/dev/cxgbe/cudbg/fastlz_api.c
+++ b/sys/dev/cxgbe/cudbg/fastlz_api.c
@@ -442,7 +442,7 @@ int decompress_buffer(struct cudbg_buffer *pc_buff,
remaining = chunk_size;
checksum = 1L;
for (;;) {
- /* Write a funtion for this */
+ /* Write a function for this */
r = (CUDBG_BLOCK_SIZE < remaining) ?
CUDBG_BLOCK_SIZE : remaining;
bytes_read =
diff --git a/sys/dev/mii/lxtphy.c b/sys/dev/mii/lxtphy.c
index 699c1d6f83b6..31900cc5a34b 100644
--- a/sys/dev/mii/lxtphy.c
+++ b/sys/dev/mii/lxtphy.c
@@ -203,7 +203,7 @@ lxtphy_status(struct mii_softc *sc)
/*
* Get link status from the CSR; we need to read the CSR
* for media type anyhow, and the link status in the CSR
- * doens't latch, so fewer register reads are required.
+ * doesn't latch, so fewer register reads are required.
*/
csr = PHY_READ(sc, MII_LXTPHY_CSR);
if (csr & CSR_LINK)
diff --git a/sys/dev/oce/oce_mbox.c b/sys/dev/oce/oce_mbox.c
index 7470d7a13b07..321775c13d1e 100644
--- a/sys/dev/oce/oce_mbox.c
+++ b/sys/dev/oce/oce_mbox.c
@@ -118,7 +118,7 @@ oce_reset_fun(POCE_SOFTC sc)
}
/**
- * @brief This funtions tells firmware we are
+ * @brief This functions tells firmware we are
* done with commands.
* @param sc software handle to the device
* @returns 0 on success, ETIMEDOUT on failure
diff --git a/sys/dev/qlnx/qlnxe/ecore.h b/sys/dev/qlnx/qlnxe/ecore.h
index 33af8f124658..32a6b98156c5 100644
--- a/sys/dev/qlnx/qlnxe/ecore.h
+++ b/sys/dev/qlnx/qlnxe/ecore.h
@@ -702,7 +702,7 @@ struct ecore_hwfn {
struct ecore_ptt *p_main_ptt;
struct ecore_ptt *p_dpc_ptt;
- /* PTP will be used only by the leading funtion.
+ /* PTP will be used only by the leading function.
* Usage of all PTP-apis should be synchronized as result.
*/
struct ecore_ptt *p_ptp_ptt;
diff --git a/sys/dev/rtsx/rtsx.c b/sys/dev/rtsx/rtsx.c
index 4400fbef5412..5f6aa04835ef 100644
--- a/sys/dev/rtsx/rtsx.c
+++ b/sys/dev/rtsx/rtsx.c
@@ -624,7 +624,7 @@ rtsx_handle_card_present(struct rtsx_softc *sc)
}
/*
- * This funtion is called at startup.
+ * This function is called at startup.
*/
static void
rtsx_card_task(void *arg, int pending __unused)
diff --git a/sys/dev/sfxge/sfxge.c b/sys/dev/sfxge/sfxge.c
index 866f940a7b29..62daadf35ae5 100644
--- a/sys/dev/sfxge/sfxge.c
+++ b/sys/dev/sfxge/sfxge.c
@@ -984,7 +984,7 @@ sfxge_vpd_init(struct sfxge_softc *sc)
if ((rc = efx_vpd_size(sc->enp, &sc->vpd_size)) != 0) {
/*
- * Unpriviledged functions deny VPD access.
+ * Unprivileged functions deny VPD access.
* Simply skip VPD in this case.
*/
if (rc == EACCES)
diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c
index 7c8c60183bff..97516ed293e7 100644
--- a/sys/geom/journal/g_journal.c
+++ b/sys/geom/journal/g_journal.c
@@ -256,7 +256,7 @@ struct meminfo {
#endif
/*
- * We use our own malloc/realloc/free funtions, so we can collect statistics
+ * We use our own malloc/realloc/free functions, so we can collect statistics
* and force journal switch when we're running out of cache.
*/
static void *
diff --git a/sys/i386/i386/perfmon.c b/sys/i386/i386/perfmon.c
index 3f35b59faa80..cb8c0acfc0dc 100644
--- a/sys/i386/i386/perfmon.c
+++ b/sys/i386/i386/perfmon.c
@@ -62,7 +62,7 @@ static d_open_t perfmon_open;
static d_ioctl_t perfmon_ioctl;
/*
- * XXX perfmon_init_dev(void *) is a split from the perfmon_init() funtion.
+ * XXX perfmon_init_dev(void *) is a split from the perfmon_init() function.
* This solves a problem for DEVFS users. It loads the "perfmon" driver after
* the DEVFS subsystem has been kicked into action. The SI_ORDER_ANY is to
* assure that it is the most lowest priority task which, guarantees the
diff --git a/usr.bin/tip/tip/tip.h b/usr.bin/tip/tip/tip.h
index ab6b2c4cd9a0..51178cb08365 100644
--- a/usr.bin/tip/tip/tip.h
+++ b/usr.bin/tip/tip/tip.h
@@ -249,7 +249,7 @@ EXTERN int gotdefterm;
EXTERN FILE *fscript; /* FILE for scripting */
EXTERN int fildes[2]; /* file transfer synchronization channel */
-EXTERN int repdes[2]; /* read process sychronization channel */
+EXTERN int repdes[2]; /* read process synchronization channel */
EXTERN int FD; /* open file descriptor to remote host */
EXTERN int AC; /* open file descriptor to dialer (v831 only) */
EXTERN int vflag; /* print .tiprc initialization sequence */
More information about the dev-commits-src-all
mailing list