From 6a8f43587522058d7b7b15bb41c5b182c6018a82 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 20 Nov 2021 18:41:15 -0500 Subject: [PATCH] Fix various typos Found via `codespell -q 3 -S ./scripts/spelling.txt` --- .github/actions/build_ci/README.md | 2 +- README.md | 4 ++-- cmake/platforms/template-freertos.cmake | 2 +- cmake/platforms/template-generic.cmake | 2 +- cmake/platforms/zynqmp-r5-generic.cmake | 2 +- examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/common.h | 4 ++-- .../freertos/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c | 2 +- .../zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c | 2 +- .../zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c | 4 ++-- examples/system/generic/zynqmp_r5/zynqmp_amp_demo/common.h | 4 ++-- .../generic/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c | 2 +- .../generic/zynqmp_r5/zynqmp_amp_demo/libmetal_amp_demod.c | 2 +- .../generic/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c | 2 +- .../zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c | 4 ++-- examples/system/linux/zynqmp/zynqmp_amp_demo/common.h | 6 +++--- .../system/linux/zynqmp/zynqmp_amp_demo/ipi_latency_demo.c | 2 +- .../system/linux/zynqmp/zynqmp_amp_demo/ipi_shmem_demo.c | 2 +- examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_demo.c | 2 +- .../linux/zynqmp/zynqmp_amp_demo/shmem_throughput_demo.c | 4 ++-- lib/compiler.h | 2 +- lib/irq_controller.h | 2 +- lib/list.h | 2 +- lib/log.h | 2 +- lib/processor/aarch64/cpu.h | 2 +- lib/processor/arm/cpu.h | 2 +- lib/processor/microblaze/cpu.h | 2 +- lib/processor/x86/cpu.h | 2 +- lib/processor/x86_64/cpu.h | 2 +- lib/processor/xtensa/cpu.h | 2 +- lib/system/freertos/zynqmp_a53/sys.c | 2 +- lib/system/generic/zynqmp_a53/sys.c | 2 +- lib/system/linux/mutex.h | 2 +- lib/system/nuttx/mutex.h | 2 +- lib/system/zephyr/mutex.h | 2 +- scripts/checkpatch.pl | 6 +++--- scripts/ci/check_compliance.py | 2 +- test/metal-test.c | 2 +- test/system/freertos/alloc.c | 2 +- test/system/generic/alloc.c | 2 +- test/system/linux/alloc.c | 2 +- test/system/linux/threads.c | 2 +- test/system/zephyr/alloc.c | 2 +- 42 files changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/actions/build_ci/README.md b/.github/actions/build_ci/README.md index 3b0d5312..098c7bdb 100644 --- a/.github/actions/build_ci/README.md +++ b/.github/actions/build_ci/README.md @@ -7,7 +7,7 @@ This action test builds for a specified target. ### `target` **Required** the build target. Default `"linux"`. -The supported taget are: +The supported targets are: linux generic arm freertos diff --git a/README.md b/README.md index d6be115f..14159a64 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ own project. * **WITH_DOC** (default ON): Build with documentation. Add -DWITH_DOC=OFF in cmake command line to disable. -* **WITH_EXAMPLES** (default ON): Build with application exemples. Add +* **WITH_EXAMPLES** (default ON): Build with application examples. Add -DWITH_DOC=OFF in cmake command line to disable the option. * **WITH_TESTS** (default ON): Build with application tests. Add -DWITH_DOC=OFF in cmake command line to disable the option. @@ -231,7 +231,7 @@ handler registered by the user application. libmetal provides APIs to flush and invalidate caches. The cache APIs for Linux userspace are empty functions for now as cache -operations system calls are not avaiable for all architectures. +operations system calls are not available for all architectures. ### DMA diff --git a/cmake/platforms/template-freertos.cmake b/cmake/platforms/template-freertos.cmake index 385655ee..f8ea7d09 100644 --- a/cmake/platforms/template-freertos.cmake +++ b/cmake/platforms/template-freertos.cmake @@ -1,4 +1,4 @@ -# Modify to match your needs. These setttings can also be overridden at the +# Modify to match your needs. These settings can also be overridden at the # command line. (eg. cmake -DCMAKE_C_FLAGS="-O3") set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "") diff --git a/cmake/platforms/template-generic.cmake b/cmake/platforms/template-generic.cmake index 3905cf10..acb1011c 100644 --- a/cmake/platforms/template-generic.cmake +++ b/cmake/platforms/template-generic.cmake @@ -1,4 +1,4 @@ -# Modify to match your needs. These setttings can also be overridden at the +# Modify to match your needs. These settings can also be overridden at the # command line. (eg. cmake -DCMAKE_C_FLAGS="-O3") set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "") diff --git a/cmake/platforms/zynqmp-r5-generic.cmake b/cmake/platforms/zynqmp-r5-generic.cmake index 291d28b1..8a3b0f40 100644 --- a/cmake/platforms/zynqmp-r5-generic.cmake +++ b/cmake/platforms/zynqmp-r5-generic.cmake @@ -2,7 +2,7 @@ set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "") set (MACHINE "zynqmp_r5" CACHE STRING "") set (CROSS_PREFIX "armr5-none-eabi-" CACHE STRING "") -# Xilinx SDK version earlier than 2017.2 use mfloat-abi=soft by default to generat libxil +# Xilinx SDK version earlier than 2017.2 use mfloat-abi=soft by default to generate libxil set (CMAKE_C_FLAGS "-mfloat-abi=hard -mfpu=vfpv3-d16 -mcpu=cortex-r5" CACHE STRING "") include (cross-generic-gcc) diff --git a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/common.h b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/common.h index 9a9ed4c9..d6e29c7a 100644 --- a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/common.h +++ b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/common.h @@ -34,7 +34,7 @@ #define IPI_ISR_OFFSET 0x10 /* IPI interrupt status reg offset */ #define IPI_IMR_OFFSET 0x14 /* IPI interrupt mask reg offset */ #define IPI_IER_OFFSET 0x18 /* IPI interrupt enable reg offset */ -#define IPI_IDR_OFFSET 0x1C /* IPI interrup disable reg offset */ +#define IPI_IDR_OFFSET 0x1C /* IPI interrupt disable reg offset */ #define IPI_MASK 0x1000000 /* IPI mask for kick from APU. We use PL0 IPI in this demo. */ @@ -139,7 +139,7 @@ static inline void wait_for_interrupt() } /** - * @breif wait_for_notified() - Loop until notified bit + * @brief wait_for_notified() - Loop until notified bit * in channel is set. * * @param[in] notified - pointer to the notified variable diff --git a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c index f6f490ad..16a21058 100644 --- a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c +++ b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c @@ -7,7 +7,7 @@ /***************************************************************************** * ipi_latency_demod.c * This is the remote side of the IPI latency measurement demo. - * This demo does the follwing steps: + * This demo does the following steps: * * 1. Open the shared memory device. * 1. Open the TTC timer device. diff --git a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c index 53a8643f..2f6c9d7c 100644 --- a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c +++ b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c @@ -7,7 +7,7 @@ /***************************************************************************** * shmem_latency_demod.c * This is the remote side of the IPI latency measurement demo. - * This demo does the follwing steps: + * This demo does the following steps: * * 1. Get the shared memory device libmetal I/O region. * 1. Get the TTC timer device libemtal I/O region. diff --git a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c index 1ce18c1c..4fc5b537 100644 --- a/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c +++ b/examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c @@ -16,7 +16,7 @@ * 6. Download throughput measurement: * Start TTC RPU counter, wait for IPI kick, check if data is available, * if yes, read as much data as possible from shared memory. It will - * iterates untill 1000 packages have been received, stop TTC RPU counter + * iterates until 1000 packages have been received, stop TTC RPU counter * and kick IPI to notify the remote. Repeat for different package size. * 7. Upload throughput measurement: * Start TTC RPU counter, write data to shared memory and kick IPI to @@ -144,7 +144,7 @@ static int ipi_irq_handler (int vect_id, void *priv) * - Download throughput measurement: * Start TTC RPU counter, wait for IPI kick, check if data is * available, if yes, read as much data as possible from shared - * memory. It will iterates untill 1000 packages have been received, + * memory. It will iterates until 1000 packages have been received, * stop TTC RPU counter and kick IPI to notify the remote. Repeat * for different package size. * - Upload throughput measurement: diff --git a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/common.h b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/common.h index ebb9769a..bd120601 100644 --- a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/common.h +++ b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/common.h @@ -35,7 +35,7 @@ #define IPI_ISR_OFFSET 0x10 /* IPI interrupt status reg offset */ #define IPI_IMR_OFFSET 0x14 /* IPI interrupt mask reg offset */ #define IPI_IER_OFFSET 0x18 /* IPI interrupt enable reg offset */ -#define IPI_IDR_OFFSET 0x1C /* IPI interrup disable reg offset */ +#define IPI_IDR_OFFSET 0x1C /* IPI interrupt disable reg offset */ #define IPI_MASK 0x1000000 /* IPI mask for kick from APU. We use PL0 IPI in this demo. */ @@ -140,7 +140,7 @@ static inline void wait_for_interrupt() } /** - * @breif wait_for_notified() - Loop until notified bit + * @brief wait_for_notified() - Loop until notified bit * in channel is set. * * @param[in] notified - pointer to the notified variable diff --git a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c index f6f490ad..16a21058 100644 --- a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c +++ b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c @@ -7,7 +7,7 @@ /***************************************************************************** * ipi_latency_demod.c * This is the remote side of the IPI latency measurement demo. - * This demo does the follwing steps: + * This demo does the following steps: * * 1. Open the shared memory device. * 1. Open the TTC timer device. diff --git a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/libmetal_amp_demod.c b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/libmetal_amp_demod.c index 045f61fe..d22f8aa7 100644 --- a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/libmetal_amp_demod.c +++ b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/libmetal_amp_demod.c @@ -14,7 +14,7 @@ * 1. Initialize the platform hardware such as UART, GIC. * 2. Connect the IPI interrupt. * 3. Register IPI device, shared memory descriptor device and shared memory - * device with libmetal in the intialization. + * device with libmetal in the initialization. * 4. In the main application it does the following, * * open the registered libmetal devices: IPI device, shared memory * descriptor device and shared memory device. diff --git a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c index 53a8643f..2f6c9d7c 100644 --- a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c +++ b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c @@ -7,7 +7,7 @@ /***************************************************************************** * shmem_latency_demod.c * This is the remote side of the IPI latency measurement demo. - * This demo does the follwing steps: + * This demo does the following steps: * * 1. Get the shared memory device libmetal I/O region. * 1. Get the TTC timer device libemtal I/O region. diff --git a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c index 1ce18c1c..4fc5b537 100644 --- a/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c +++ b/examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c @@ -16,7 +16,7 @@ * 6. Download throughput measurement: * Start TTC RPU counter, wait for IPI kick, check if data is available, * if yes, read as much data as possible from shared memory. It will - * iterates untill 1000 packages have been received, stop TTC RPU counter + * iterates until 1000 packages have been received, stop TTC RPU counter * and kick IPI to notify the remote. Repeat for different package size. * 7. Upload throughput measurement: * Start TTC RPU counter, write data to shared memory and kick IPI to @@ -144,7 +144,7 @@ static int ipi_irq_handler (int vect_id, void *priv) * - Download throughput measurement: * Start TTC RPU counter, wait for IPI kick, check if data is * available, if yes, read as much data as possible from shared - * memory. It will iterates untill 1000 packages have been received, + * memory. It will iterates until 1000 packages have been received, * stop TTC RPU counter and kick IPI to notify the remote. Repeat * for different package size. * - Upload throughput measurement: diff --git a/examples/system/linux/zynqmp/zynqmp_amp_demo/common.h b/examples/system/linux/zynqmp/zynqmp_amp_demo/common.h index 3c9e6487..3a55d473 100644 --- a/examples/system/linux/zynqmp/zynqmp_amp_demo/common.h +++ b/examples/system/linux/zynqmp/zynqmp_amp_demo/common.h @@ -33,7 +33,7 @@ #define IPI_ISR_OFFSET 0x10 /* IPI interrupt status reg offset */ #define IPI_IMR_OFFSET 0x14 /* IPI interrupt mask reg offset */ #define IPI_IER_OFFSET 0x18 /* IPI interrupt enable reg offset */ -#define IPI_IDR_OFFSET 0x1C /* IPI interrup disable reg offset */ +#define IPI_IDR_OFFSET 0x1C /* IPI interrupt disable reg offset */ #define IPI_MASK 0x100 /* IPI mask for kick from RPU. */ @@ -146,7 +146,7 @@ int shmem_latency_demo(); int shmem_throughput_demo(); /** - * @breif wait_for_notified() - Loop until notified bit in channel is set. + * @brief wait_for_notified() - Loop until notified bit in channel is set. * * @param[in] notified - pointer to the notified variable */ @@ -167,7 +167,7 @@ static inline void wait_for_notified(atomic_int *notified) } /** - * @breif dump_buffer() - print hex value of each byte in the buffer + * @brief dump_buffer() - print hex value of each byte in the buffer * * @param[in] buf - pointer to the buffer * @param[in] len - len of the buffer diff --git a/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_latency_demo.c b/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_latency_demo.c index c4d25e43..eca7237d 100644 --- a/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_latency_demo.c +++ b/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_latency_demo.c @@ -7,7 +7,7 @@ /***************************************************************************** * ipi_latency_demo.c * This demo measures the IPI latency between the APU and RPU. - * This demo does the follwing steps: + * This demo does the following steps: * * 1. Get the shared memory device I/O region. * 1. Get the TTC timer device I/O region. diff --git a/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_shmem_demo.c b/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_shmem_demo.c index 5dbc554d..ed3f7782 100644 --- a/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_shmem_demo.c +++ b/examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_shmem_demo.c @@ -71,7 +71,7 @@ static atomic_int remote_nkicked; /* is remote kicked, 0 - kicked, 1 - not-kicked */ /** - * @breif get_timestamp() - Get the timestamp + * @brief get_timestamp() - Get the timestamp * IT gets the timestamp and return nanoseconds. * * @return nano seconds. diff --git a/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_demo.c b/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_demo.c index 439bdc93..bf576a79 100644 --- a/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_demo.c +++ b/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_demo.c @@ -69,7 +69,7 @@ struct msg_hdr_s { * If messages differ, report error. * * Steps: - * 1. Clear demo control and TX/RX avaiable values + * 1. Clear demo control and TX/RX available values * * @param[in] shm_io - metal i/o region of the shared memory * @return - return 0 on success, otherwise return error number indicating diff --git a/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_throughput_demo.c b/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_throughput_demo.c index aba0684d..95874046 100644 --- a/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_throughput_demo.c +++ b/examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_throughput_demo.c @@ -24,7 +24,7 @@ * 7. Download throughput measurement: * Start TTC APU counter, wait for IPI kick, check if data is available, * if yes, read as much data as possible from shared memory. It will - * iterates untill 1000 packages have been received, stop TTC APU counter. + * iterates until 1000 packages have been received, stop TTC APU counter. * Wait for RPU IPI kick so that APU can get the TTC RPU TX counter * value. Kick IPI to notify the remote it has read the TTCi counter. * Repeat for different package size. @@ -182,7 +182,7 @@ static int ipi_irq_handler (int vect_id, void *priv) * - Download throughput measurement: * Start TTC APU counter, wait for IPI kick, check if data is * available, if yes, read as much data as possible from shared - * memory. It will iterates untill 1000 packages have been received, + * memory. It will iterates until 1000 packages have been received, * stop TTC APU counter. Wait for RPU IPI kick so that APU can get * the TTC RPU TX counter value. Kick IPI to notify the remote it * has read the TTCi counter. Repeat for different package size. diff --git a/lib/compiler.h b/lib/compiler.h index 35dc490f..08c20943 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -17,7 +17,7 @@ #elif defined(__ICCARM__) # include #elif defined(__CC_ARM) -# error "MDK-ARM ARMCC compiler requires the GNU extentions to work correctly" +# error "MDK-ARM ARMCC compiler requires the GNU extensions to work correctly" #else # error "Missing compiler support" #endif diff --git a/lib/irq_controller.h b/lib/irq_controller.h index c0b4734b..c821ef48 100644 --- a/lib/irq_controller.h +++ b/lib/irq_controller.h @@ -69,7 +69,7 @@ struct metal_irq_controller { */ int irq_num; /**< Number of IRQs managed by the IRQ controller */ void *arg; /**< Argument to pass to interrupt controller function */ - metal_irq_set_enable irq_set_enable; /**< function to set IRQ eanble */ + metal_irq_set_enable irq_set_enable; /**< function to set IRQ enable */ metal_cntr_irq_register irq_register; /**< function to register IRQ * handler */ diff --git a/lib/list.h b/lib/list.h index 055803a2..d1286c30 100644 --- a/lib/list.h +++ b/lib/list.h @@ -27,7 +27,7 @@ struct metal_list { }; /* - * METAL_INIT_LIST - used for initializing an list elmenet in a static struct + * METAL_INIT_LIST - used for initializing an list element in a static struct * or global */ #define METAL_INIT_LIST(name) { .next = &name, .prev = &name } diff --git a/lib/log.h b/lib/log.h index 387dfad6..c1c91e58 100644 --- a/lib/log.h +++ b/lib/log.h @@ -63,7 +63,7 @@ extern enum metal_log_level metal_get_log_level(void); /** * @brief Default libmetal log handler. This handler prints libmetal log - * mesages to stderr. + * messages to stderr. * @param[in] level log message level. * @param[in] format log message format string. * @return 0 on success, or -errno on failure. diff --git a/lib/processor/aarch64/cpu.h b/lib/processor/aarch64/cpu.h index 88ae715a..df9bc60a 100644 --- a/lib/processor/aarch64/cpu.h +++ b/lib/processor/aarch64/cpu.h @@ -6,7 +6,7 @@ /* * @file cpu.h - * @brief CPU specific primatives + * @brief CPU specific primitives */ #ifndef __METAL_AARCH64_CPU__H__ diff --git a/lib/processor/arm/cpu.h b/lib/processor/arm/cpu.h index 2141fb39..0ea96102 100644 --- a/lib/processor/arm/cpu.h +++ b/lib/processor/arm/cpu.h @@ -6,7 +6,7 @@ /* * @file cpu.h - * @brief CPU specific primatives + * @brief CPU specific primitives */ #ifndef __METAL_ARM_CPU__H__ diff --git a/lib/processor/microblaze/cpu.h b/lib/processor/microblaze/cpu.h index 669c8da3..012df465 100644 --- a/lib/processor/microblaze/cpu.h +++ b/lib/processor/microblaze/cpu.h @@ -6,7 +6,7 @@ /* * @file cpu.h - * @brief CPU specific primatives on microblaze platform. + * @brief CPU specific primitives on microblaze platform. */ #ifndef __METAL_MICROBLAZE__H__ diff --git a/lib/processor/x86/cpu.h b/lib/processor/x86/cpu.h index 2aad338b..aeb0ff19 100644 --- a/lib/processor/x86/cpu.h +++ b/lib/processor/x86/cpu.h @@ -6,7 +6,7 @@ /* * @file cpu.h - * @brief CPU specific primatives + * @brief CPU specific primitives */ #ifndef __METAL_X86_CPU__H__ diff --git a/lib/processor/x86_64/cpu.h b/lib/processor/x86_64/cpu.h index b9e02c4d..2db6e9d7 100644 --- a/lib/processor/x86_64/cpu.h +++ b/lib/processor/x86_64/cpu.h @@ -6,7 +6,7 @@ /* * @file cpu.h - * @brief CPU specific primatives + * @brief CPU specific primitives */ #ifndef __METAL_X86_64_CPU__H__ diff --git a/lib/processor/xtensa/cpu.h b/lib/processor/xtensa/cpu.h index 719f9c1d..3b40f5bd 100644 --- a/lib/processor/xtensa/cpu.h +++ b/lib/processor/xtensa/cpu.h @@ -6,7 +6,7 @@ /* * @file cpu.h - * @brief CPU specific primatives + * @brief CPU specific primitives */ #ifndef __METAL_XTENSA_CPU__H__ diff --git a/lib/system/freertos/zynqmp_a53/sys.c b/lib/system/freertos/zynqmp_a53/sys.c index 826f51d9..a09f922e 100644 --- a/lib/system/freertos/zynqmp_a53/sys.c +++ b/lib/system/freertos/zynqmp_a53/sys.c @@ -75,7 +75,7 @@ void *metal_machine_io_mem_map(void *va, metal_phys_addr_t pa, if (!flags) return va; - /* Ensure alignement on a section boundary */ + /* Ensure alignment on a section boundary */ pa &= ~(ttb_size-1UL); /* diff --git a/lib/system/generic/zynqmp_a53/sys.c b/lib/system/generic/zynqmp_a53/sys.c index d7f24bfd..1a244ed4 100644 --- a/lib/system/generic/zynqmp_a53/sys.c +++ b/lib/system/generic/zynqmp_a53/sys.c @@ -75,7 +75,7 @@ void *metal_machine_io_mem_map(void *va, metal_phys_addr_t pa, if (!flags) return va; - /* Ensure alignement on a section boundary */ + /* Ensure alignment on a section boundary */ pa &= ~(ttb_size-1UL); /* diff --git a/lib/system/linux/mutex.h b/lib/system/linux/mutex.h index 8b2862e9..f12d84f1 100644 --- a/lib/system/linux/mutex.h +++ b/lib/system/linux/mutex.h @@ -31,7 +31,7 @@ typedef struct { } metal_mutex_t; /* - * METAL_MUTEX_INIT - used for initializing an mutex elmenet in a static struct + * METAL_MUTEX_INIT - used for initializing an mutex element in a static struct * or global */ #define METAL_MUTEX_INIT(m) { ATOMIC_VAR_INIT(0) } diff --git a/lib/system/nuttx/mutex.h b/lib/system/nuttx/mutex.h index e07f447d..17e1352e 100644 --- a/lib/system/nuttx/mutex.h +++ b/lib/system/nuttx/mutex.h @@ -25,7 +25,7 @@ extern "C" { typedef mutex_t metal_mutex_t; /* - * METAL_MUTEX_INIT - used for initializing an mutex elmenet in a static struct + * METAL_MUTEX_INIT - used for initializing an mutex element in a static struct * or global */ #define METAL_MUTEX_INIT(m) MUTEX_INITIALIZER diff --git a/lib/system/zephyr/mutex.h b/lib/system/zephyr/mutex.h index 5eb68562..35724941 100644 --- a/lib/system/zephyr/mutex.h +++ b/lib/system/zephyr/mutex.h @@ -26,7 +26,7 @@ extern "C" { typedef struct k_sem metal_mutex_t; /* - * METAL_MUTEX_INIT - used for initializing an mutex elmenet in a static struct + * METAL_MUTEX_INIT - used for initializing an mutex element in a static struct * or global */ #define METAL_MUTEX_INIT(m) _K_SEM_INITIALIZER(m, 1, 1) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0e1e9159..e033f7be 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1188,7 +1188,7 @@ sub sanitise_line { for ($off = 1; $off < length($line); $off++) { $c = substr($line, $off, 1); - # Comments we are wacking completly including the begin + # Comments we are wacking completely including the begin # and end, all to $;. if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') { $sanitise_quote = '*/'; @@ -4413,7 +4413,7 @@ sub process { ## $line !~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Type\s*$Ident.*/) { ## ## # Remove any bracketed sections to ensure we do not -## # falsly report the parameters of functions. +## # falsely report the parameters of functions. ## my $ln = $line; ## while ($ln =~ s/\([^\(\)]*\)//g) { ## } @@ -4904,7 +4904,7 @@ sub process { { } - # Flatten any obvious string concatentation. + # Flatten any obvious string concatenation. while ($dstat =~ s/($String)\s*$Ident/$1/ || $dstat =~ s/$Ident\s*($String)/$1/) { diff --git a/scripts/ci/check_compliance.py b/scripts/ci/check_compliance.py index e48f347e..5339f0d9 100755 --- a/scripts/ci/check_compliance.py +++ b/scripts/ci/check_compliance.py @@ -244,7 +244,7 @@ class Identity(ComplianceTest): """ name = "Identity" # git rev-list and git log don't depend on the current (sub)directory - # unless explicited + # unless explicit path_hint = "" def run(self): diff --git a/test/metal-test.c b/test/metal-test.c index 34bfe819..a5a4f2b0 100644 --- a/test/metal-test.c +++ b/test/metal-test.c @@ -16,7 +16,7 @@ static METAL_DECLARE_LIST(test_cases); /* - * Not every enviornment has strerror() implemented. + * Not every environment has strerror() implemented. */ #ifdef NOT_HAVE_STRERROR char metal_weak *strerror(int errnum) diff --git a/test/system/freertos/alloc.c b/test/system/freertos/alloc.c index 2e02dc4a..620c0e5a 100644 --- a/test/system/freertos/alloc.c +++ b/test/system/freertos/alloc.c @@ -28,7 +28,7 @@ static void *alloc_thread(void *arg) /* expecting the implementation to be thread safe */ ptr = metal_allocate_memory(256 /*10*i*/); if (!ptr) { - metal_log(METAL_LOG_DEBUG, "failed to allocate memmory\n"); + metal_log(METAL_LOG_DEBUG, "failed to allocate memory\n"); rv = (void *)-ENOMEM; break; } diff --git a/test/system/generic/alloc.c b/test/system/generic/alloc.c index 2c308b3b..692e67d9 100644 --- a/test/system/generic/alloc.c +++ b/test/system/generic/alloc.c @@ -18,7 +18,7 @@ static int alloc(void) ptr = metal_allocate_memory(1000); if (!ptr) { - metal_log(METAL_LOG_DEBUG, "failed to allocate memmory\n"); + metal_log(METAL_LOG_DEBUG, "failed to allocate memory\n"); return errno; } diff --git a/test/system/linux/alloc.c b/test/system/linux/alloc.c index 2c308b3b..692e67d9 100644 --- a/test/system/linux/alloc.c +++ b/test/system/linux/alloc.c @@ -18,7 +18,7 @@ static int alloc(void) ptr = metal_allocate_memory(1000); if (!ptr) { - metal_log(METAL_LOG_DEBUG, "failed to allocate memmory\n"); + metal_log(METAL_LOG_DEBUG, "failed to allocate memory\n"); return errno; } diff --git a/test/system/linux/threads.c b/test/system/linux/threads.c index b1e0c3fd..1382d28f 100644 --- a/test/system/linux/threads.c +++ b/test/system/linux/threads.c @@ -27,7 +27,7 @@ int metal_run_noblock(int threads, metal_thread_t child, pthread_t *tid_p = (pthread_t *)tids; if (!tids) { - metal_log(METAL_LOG_ERROR, "invalid arguement, tids is NULL.\n"); + metal_log(METAL_LOG_ERROR, "invalid argument, tids is NULL.\n"); return -EINVAL; } diff --git a/test/system/zephyr/alloc.c b/test/system/zephyr/alloc.c index 2944b62e..d96c2571 100644 --- a/test/system/zephyr/alloc.c +++ b/test/system/zephyr/alloc.c @@ -19,7 +19,7 @@ static int alloc(void) ptr = metal_allocate_memory(1000); if (!ptr) { - metal_log(METAL_LOG_DEBUG, "failed to allocate memmory\n"); + metal_log(METAL_LOG_DEBUG, "failed to allocate memory\n"); return -errno; }